Disable Filter and Navigation

Home Forums Calendar Products Events Calendar PRO Disable Filter and Navigation

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #268139
    erictanaka
    Participant

    I would like to disable the FILTER and MONTH NAVIGATION on my page. I just want it vanished from my MONTH view page. Can I tweak my [content.php] file on my [tribe-events/views/month] folder to do that?

    Can anyone help me? Any input is very much appreciated. Thank you!

    #270213
    Barry
    Member

    Hi!

    Our Themer’s Guide is well worth reading if you’re not already familiar with setting up template overrides and customizing the calendar generally – but if I’m understanding you correctly then perhaps all you need to do is override the main month.php template and remove the following line:

    <?php tribe_get_template_part( 'modules/bar' ); ?>

    Does that help in this situation?

    #272490
    erictanaka
    Participant

    Hey Barry,

    Thank you for your reply. I’ve read the Themer’s Guide and tried to follow it but I’m from Brazil and my english is very limited – as for your idea it worked for eliminating the filter but the month navigation is still on the page (the little link with month and two arrows [july>>])

    Can’t seem to find where to disable it. Maybe tweak the [nav.php] file?

    Thank you so much for your help.

    #274272
    Barry
    Member

    as for your idea it worked for eliminating the filter but the month navigation is still on the page (the little link with month and two arrows [july>>])

    Oh I see, yes that would require a further step.

    You’ve basically got the right idea, though – except instead of tweaking month/nav.php I would suggest simply adding an empty file of that name to your theme, ie:

    wp-content/themes/YOUR_THEME/tribe-events/month/nav.php

    If this file is completely empty then the previous/next month links should no longer appear. Does that help?

    #276044
    erictanaka
    Participant

    Thank you so much Barry, great idea, it did the job!
    Although this solution kinda “broke” the theme layout. Now my logo is off place and the menu button from my theme just disappeared. But I guess this is a theme issue, so I’ll go to the theme developer for help.
    I’d like to take this opportunity to thank you for your extremely kind attention and all your team for this great plugin and the facebook extension. It is brilliant. You guys are awesome.
    Best regards from Brazil.

    #282922
    Barry
    Member

    Thanks for the kind words, that is very much appreciated.

    I’m sorry to hear the solution I proposed broke the layout, though – I’m not sure why that would be (it seems to work nicely in a default theme like Twenty Thirteen for instance) but, just to be safe, here are two alternatives you could try:

    1. Instead of leaving your custom month/nav.php template empty you might try adding these two lines:

    <?php do_action( 'tribe_events_before_nav' ) ?>
    <?php do_action( 'tribe_events_after_nav' ) ?>

    2. If that doesn’t help, you could remove your custom template (or temporarily rename it to something like __nav.php so the plugin cannot find it) and then set up a custom tribe-events.css stylesheet instead. This would also live in your theme’s tribe-events directory, so the path would be something like:

    wp-content/themes/YOUR_THEME/tribe-events/tribe-events.css

    Within that you could add the following rule:

    .tribe-events-sub-nav { display: none }

    Which is an alternative way of hiding it.

    I hope one of those gets you a little closer and avoids breaking your layout – but just let me know if not.

    Thanks!

    #701613
    Barry
    Member

    Hi! It’s been a while so I’m going to go ahead and close this thread. If we can help with anything else, though, please don’t hesitate to create new threads as needed. Thanks!

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Disable Filter and Navigation’ is closed to new replies.