Filter bar customisations – adding to theme templates

Home Forums Calendar Products Filter Bar Filter bar customisations – adding to theme templates

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1159970
    antony
    Participant

    Hello, you recenty gave me some advice in the following thread that I raised:

    move filterbar to underneath page title

    You advised me to follow the advice in this support thread:

    Position of Filter bar in template

    The thread didn’t suggest where to put the code snippet but I found it worked fine when I tested it out in the plugin template file:

    filtebar/src/tribe/view.php

    But I don’t want to customise the plugin files, instead to deal with it in my theme files – but having problems with this. Following the instructions in the themers guide I created a new folder in my existing tribe-events folder in my theme

    tribe-events/filter-bar/src/Tribe/view.php and then added the snippet to view.php (having removed it from the original in the plugin folder). But no joy… must be missing something obvious but can’t figure out what? Can you offer some advice? Thanks,

    #1160506
    Cliff
    Member

    Hi Antony. Welcome to WordPress customizing!

    Best practice for adding custom code (like to implement a PHP snippet like https://theeventscalendar.com/support/forums/topic/position-of-filter-bar-in-template/#post-847145) is to create a functionality plugin, unless it’s something specific to your theme, in which case best practice is to make sure you’re using a child theme, then add the customization to your child theme’s functions.php file.

    If you’re new to this, it’s easiest to just add it to the bottom of your active theme’s functions.php file.

    I hope this information helps!

    #1160911
    antony
    Participant

    Many thanks Cliff!

    #1160956
    Cliff
    Member

    You bet. Have a great day!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Filter bar customisations – adding to theme templates’ is closed to new replies.