Hide Filter Bar from main page (or maybe whole site)

Home Forums Calendar Products Events Calendar PRO Hide Filter Bar from main page (or maybe whole site)

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #967665
    Glenn
    Participant

    Hi – I am wanting to hide the Filter Bar.

    I looked at the post https://theeventscalendar.com/support/forums/topic/how-do-i-hide-the-horizontal-filter-bar/ but it didn’t work. (The location of the file confused me so I tried a few other locations also – but no luck. Also I couldn’t find the file “filter-view-horizontal.php” on my site.)

    I think I want to remove it from the whole site but might also be interested in seeing an option for just the main page. πŸ™‚

    How could I go about this?

    Regards,

    Glenn.

    #967666
    Glenn
    Participant

    Just in case I was a little ambiguous in what I was asking for – The bar that has “Find Events” and the “View As” dropdown.

    Glenn.

    #967811
    Brian
    Member

    Hi Glenn,

    Thanks for using our plugins I can help out here.

    That thread you referenced is for the Filter Bar Add on, but it appears you are looking to hide the Event Search Bar (sorry for the confusion!)

    This is actually the file you are looking for:

    the-events-calendar\views\modules\bar.php

    If you follow our themer’s guide to move and edit it in your theme:

    https://theeventscalendar.com/knowledgebase/themers-guide/

    Once in your theme you could remove all the coding for the tribe-events-bar div and that will hide it.

    If you want to selectively show on certain views you can use this conditionals to wrap it:

    https://gist.github.com/jo-snips/2415009

    Let me know if you have any follow up questions.

    Thanks

    #968036
    Glenn
    Participant

    Brian, Thanks for your reply.

    Now – I’m not sure if I am “thick” (this is quite possible!) but I have read the themer’s guide and it confuses me.

    For example:

    2. Locate the files you wish to edit

    The template view files are located in the following places:

    The Events Calendar template files
    /wp-content/plugins/the-events-calendar/src/views/

    Now – I don’t have a /src folder. And in the case I have the “modules” folder so do I make it:
    wp-content/themes/my-child-theme/views/
    or
    wp-content/themes/my-child-theme/src/views/
    or
    wp-content/themes/my-child-theme/views/modules
    or some other option?

    I have tried a number of the above but don’t seem to be getting anything.

    Feel free to call me thickhead in your reply. πŸ™‚

    Regards,

    Glenn.

    #968037
    Glenn
    Participant

    Hey – I wish you could edit posts!

    For the record:

    wp-content/themes/my-child-theme/tribe-events/ is where I am putting it (I forgot to add it in the reply)

    Glenn.

    #968109
    Brian
    Member

    Hi Glenn,

    Sorry for the confusion. Our guides already got switched over as we are releasing 3.10 this week so they are a little different.

    The file to move from the plugin is here in your version:

    the-events-calendar\views\modules\bar.php

    In 3.10 it will be here:

    the-events-calendar\src\views\modules\bar.php

    You will want to move that here:

    yourtheme\tribe-events\modules\bar.php

    Let me know if that helps.

    #968139
    Glenn
    Participant

    So really the only permutation I didn’t try! πŸ™‚

    After placing it there I can see the small “indicator” change has activated so it is in the right spot – thanks! I just need to play with the conditional part.

    And I guess that when the new version comes out with the different file structure that it won’t mess this up at all.

    Also – maybe it would help if the Themer’s Guide was was a little clearer – I can see a but of work has been put in but it is a little ambiguous for some files. (Modules for example. πŸ˜‰ )

    Thanks!!!

    Glenn.

    #968145
    Brian
    Member

    I am glad to see you were able to figure it out.

    Noted about the Themer’s Guide as well.

    I am going to go ahead and close this ticket. If you have a similar issue or another in the future, please do not hesitate to create a new ticket.

    Thanks!

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Hide Filter Bar from main page (or maybe whole site)’ is closed to new replies.