Forums

Give help. Get help.

  • # July 17, 2017 at 8:49 am

    Hi!

    How I can change the logo for one page on this wordpress site.
    http://www.frenchgoat.hu/?cat=8

    Basically for this subpage (man goat) I need a different logo.

    It’s a wordpress site (TRENDOMANIA template) and no plugins seem to work for it.

    I tried the snipets plugins but it is not work it. Why?

    Code:
    add_filter(‘avf_logo’,’av_change_logo’);
    function av_change_logo($logo)
    {
    if(is_page(8) )
    {
    $logo = “http://www.frenchgoat.hu/wp-content/uploads/2017/06/girl_goat.jpg”;
    }
    return $logo;
    }

    Thanks!!

    deb
    # July 19, 2017 at 12:13 am

    Hi

    You can do it simply through css. On header you have div named site-logo. Inside that div put two logos with different class names. Now 1 logo will be display none all the times except on your particular page. On body class wp automatically generated page id or cat id, in your case body.category-8 .(your normal logo classname) should be display none and other image should be display block.

    this is simple one, you can do it through jquery also.

    Thanks

    # July 19, 2017 at 12:43 am

    The trick above my deb will work, alternatively put a conditional statement in your page.php targeting the id of that subpage.

    Is this a new site? Maybe consider changing the permalink structure to have pretty url’s; just saying.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

icon-anchoricon-closeicon-emailicon-linkicon-logo-staricon-menuicon-nav-guideicon-searchicon-staricon-tag