Switch to Photo View for default view for mobile and Month View on Desktop

Home Forums Calendar Products Events Calendar PRO Switch to Photo View for default view for mobile and Month View on Desktop

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1089789
    Brian
    Participant

    Is there a snippet, which i can add to the theme’s functions.php to redirect the month view to the photo view? I found one you posted for redirecting to list view in mobile:

    /*
    * The Events Calendar - Redirect Mobile Users to List View
    * @version 3.9
    * 
    * @link http://theeventscalendar.com/support/forums/topic/forcing-list-view-on-mobile-only/
    */
    add_action( 'template_redirect', 'tec_mobile_template_redirect' );
    function tec_mobile_template_redirect() {
    	if( tribe_is_month() && wp_is_mobile() ) {
    		wp_redirect( tribe_get_listview_link() );
    		exit();
    	}
    }

    Second, where is the CSS i can use to customize this photo view. I cannot find that CSS anywhere.

    Thank you.

    #1090069
    Hunter
    Moderator

    Hi and thanks for posting,

    Try the following snippet and let me know if it does the trick:

    /*
    * The Events Calendar - Redirect Mobile Users to List View
    * @version 3.9
    *
    * @link http://theeventscalendar.com/support/forums/topic/forcing-list-view-on-mobile-only/
    */
    add_action( 'template_redirect', 'tec_mobile_template_redirect' );
    function tec_mobile_template_redirect() {
    if( tribe_is_month() && wp_is_mobile() ) {
    wp_redirect( tribe_get_photo_permalink() );
    exit();
    }
    }

    To edit CSS, try right-clicking your mouse and opening up “Inspect” – you’ll be able to identify CSS classes and IDs and add edits accordingly.

    Again, thanks for the post and also for choosing PRO. Have a good week 🙂

    #1090290
    Brian
    Participant

    So that has activated the photo view on mobile. Thank you for helping with that.

    I still need to figure out what is going on with the photo view looking poorly. I really only care about how it looks on mobile, but it looks really bad on the desktop as well. I would like to somehow turn off the choice to change the view if possible. Here is the link: http://wavac.com/events/photo/

    Anyhow, I am attaching a picture of how it looks on mobile. The first 2 events look one way, and all of the events after that look even worse. There is a white background that I would like to change. I would like the images to be at 100% width. I managed to remove the description text by using that tutorial that is in the knowledge base. But I need the Event title fixed so all of them are uniform, as well as the date text to also be uniform for each event. I am not having much luck using the inspector in Chrome. I have used it before to find what I need to edit, but I am having some trouble here.

    I love this plugin, and I really appreciate your help here. Thank you! 🙂

    #1090298
    Brian
    Participant

    Here is the mobile screenshot

    View post on imgur.com

    #1090607
    Hunter
    Moderator

    Hey Brian,

    Glad to hear you got the photo view on mobile situated. I visited your site and unfortunately there’s not much I can do for you due to it basically being a question about theme customization which we’re unable to help with :-/

    Keep at it with Inspect and if you haven’t already, dig into our Knowledgebase for potential further guidance in getting your Photo view looking as you desire.

    Have a good weekend and thanks for choosing PRO.

    #1090750
    Brian
    Participant

    I have spent about 8+ hours trying to figure out how to customize this plugin. Usually I can just go in and edit some css and ad/remove some things with ease. Are you 100% sure the issue is this plugin doesn’t play well with the X Theme? I need to decide if we should ditch this plugin and use one that others with the X theme are using (I know Eventon is used alot with the X Theme). If it’s not possible for you to help me get this working will you guys refund the money we spent? We were under the impression that we were paying for some support, but it doesn’t seem as though you are able to offer much support for us. I don’t know what else to do if your plugin doesn’t allow me to customize it. You tell me to ask the creators of the theme, but it’s your plugin not working with my theme and I don’t have any issues with any other plugin. Just need to know what to do here. I feel like $150 was wasted on nothing.

    • This reply was modified 10 years, 1 month ago by Brian.
    #1091001
    Hunter
    Moderator

    Hello and welcome back,

    I completely understand your frustration, but with the sheer amount of themes it’s basically impossible to build software that fits 100% of them out-of-the-box. Every customer has a different style they’re aiming for and we do our best to set them all up for success. One thing I can think of would be trying different options found under Events > Settings > Display.

    Additionally, our New User Primer and Themer’s Guide are great resources for getting you started in the right direction.

    If it’s been less than or equal to 30 days since your purchase, we’ll gladly refund any products you’re unsatisfied with. If you’re interested in getting a refund, you can do so by visiting our Contact page and completing the form. To expedite the process, please attach a copy of your receipt with the email.

    I really wish I was able to provide more support but as I’ve mentioned, my hands are tied :-/ Regardless, have a great weekend and thanks for the communication and patience exercised on your end.

    #1097416
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Switch to Photo View for default view for mobile and Month View on Desktop’ is closed to new replies.