Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #757997

    Hello,

    I am trying to disable the top bar with social media icons on one specific page.
    What code should I use to be able to add this filter?

    Thank you so much in advance!

    #758699

    Hey bluelotus,

    Could you post a link to the site in question so that we can take a closer look please?

    Best regards,
    Rikard

    #759230

    Hi Rikard,

    Thanks for the reply.
    Info below.

    The homepage and the rest of the site has the social media top header bar

    I need the social media top header to be hidden on this specific page – ‘Music’ and on posts in the category ‘music’

    So far I have something similar already setup to change the header logo using this code:

    add_filter('avf_logo','av_change_logo');
    function av_change_logo($logo)
    {
        if(is_page(483) || has_category('music') )  {
        $logo = "/wp-content/uploads/2016/12/music-horiz.png";
        }
        return $logo;
    }
    
    add_filter('avf_logo_link','av_change_logo_link');
    function av_change_logo_link($link)
    {
        if(is_page(483) || has_category('music') ){
        $link = "/music/";
        }
        return $link;
    }
    #760731

    Hi,

    Please copy enfold/includes/helper-main-menu.php file to your child theme in the same path and then find following line in the file

    
    if($headerS['header_topbar'] == true)

    and change it to following

    
    if($headerS['header_topbar'] == true && !is_page(483) && has_category('music'))

    Best regards,
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.