Home › Forums › Calendar Products › Events Calendar PRO › Disable Filter and Navigation
- This topic has 6 replies, 2 voices, and was last updated 11 years, 8 months ago by
Barry.
-
AuthorPosts
-
July 2, 2014 at 2:04 pm #268139
erictanaka
ParticipantI 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!
July 3, 2014 at 2:52 am #270213Barry
MemberHi!
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?
July 3, 2014 at 4:54 pm #272490erictanaka
ParticipantHey 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.
July 3, 2014 at 10:56 pm #274272Barry
Memberas 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?
July 4, 2014 at 1:46 am #276044erictanaka
ParticipantThank 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.July 4, 2014 at 10:11 pm #282922Barry
MemberThanks 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!
August 26, 2014 at 8:38 am #701613Barry
MemberHi! 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!
-
AuthorPosts
- The topic ‘Disable Filter and Navigation’ is closed to new replies.
