Change URL for Site Header Image on certain page

Community Forums Forums General Discussion Change URL for Site Header Image on certain page

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  Sridhar Katakam 10 months, 3 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #59267

    tomchubb
    Participant

    Hi,
    I want to change the anchor link on the site header logo when on a particular page.
    I just wanted to know where it’s set and what filter I can use to change it?
    Something like;

    add_filter(??? , pstv_site_url);
    function pstv_site_url($url) {
    if (is_page(2) {
    $url = site_url() . “/uae/”;
    }
    return $url;
    }

    Any ideas?
    Thanks,

    Tom

    http://plainandsimple.tv
    #59849

    Sridhar Katakam
    Participant
    Post count: 923

    If you use this method, you will have control to do what you want regarding the URL for logo image conditionally.

    Give that a try and let me know if it’s not clear.


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

You must be logged in to reply to this topic.