• Resolved Yuyu

    (@ytomikawa)


    Hello,
    I’m trying to add the plugin, beautiful taxonomy filters, just under the big title of the Zerif Lite template, so that the main page would look something like the AirBnB page, with the search bar right underneath the main title on the landing page.

    Where in the php file should I put the code for the ‘beautiful taxonomy filters’?
    The plugin’s explanation for how to use it is below.

    I saw this forum, but couldn’t figure out how that would apply to the taxonomy filter.

    Thank you!

    ——————————————————————
    How to use Beautiful Taxonomy Filters

    Select the post types you want to use the filtering on.
    Note: if the post type aren’t connected to one or more taxonomies you wont see any results.

    Exclude any taxonomies you don’t want the users to be able to filter on.
    Note: Only affects taxonomies that are connected to post types you have selected

    Save Changes.

    success! Your previously ugly taxonomy filtering is now oh so beautiful!

    To use the dropdown filter module you can either use the widgets, automagic feature or copy:

    <?php if(function_exists(‘show_beautiful_filters’)){ show_beautiful_filters(); } ?>
    and paste it in your archive.php file in your template. It should be placed somewhere above
    <?php if( have_posts() ) : ?>
    Note: The layout of archive.php may differ drastically between different themes. We can’t help you with the placement of the function in your theme so just try some locations (you can just remove the function again if something breaks) or ask in your themes support forum. Best of luck!

    To show the active filter info either use the widgets, automagic feature or copy:

    <?php if(function_exists(‘show_beautiful_filters_info’)){ show_beautiful_filters_info(); } ?>
    to wherever you want the filter info to appear.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    You can edit /sections/big_title.php file, and replace the following code:

    if( (!empty($zerif_bigtitle_redbutton_label) && !empty($zerif_bigtitle_redbutton_url)) ||
    
    		(!empty($zerif_bigtitle_greenbutton_label) && !empty($zerif_bigtitle_greenbutton_url))):
    
    			echo '<div class="buttons">';
    
    				if ( !empty($zerif_bigtitle_redbutton_label) && !empty($zerif_bigtitle_redbutton_url) ):
    
    					echo '<a href="'.$zerif_bigtitle_redbutton_url.'" class="btn btn-primary custom-button red-btn">'.__($zerif_bigtitle_redbutton_label,'zerif-lite').'</a>';
    
    				endif;
    
    				if ( !empty($zerif_bigtitle_greenbutton_label) && !empty($zerif_bigtitle_greenbutton_url) ):
    
    					echo '<a href="'.$zerif_bigtitle_greenbutton_url.'" class="btn btn-primary custom-button green-btn">'.__($zerif_bigtitle_greenbutton_label,'zerif-lite').'</a>';
    
    				endif;
    
    			echo '</div>';
    
    endif;

    with:

    <?php echo show_beautiful_filters('myposttype'); ?>

    And it should do the job. ??

    Regards,
    Hardeep

    Thread Starter Yuyu

    (@ytomikawa)

    Thank you!!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding taxonomy filter to big title section’ is closed to new replies.