• Hello,

    how can I change the url if you click on the site-logo in the header? It should relays to antother URL not to the site_url. As example https://www.site-url.de/abc should relay to https://www.site-url.de/
    How can I fix this? I use a child theme from Sydney. I guess it is in header.php, but not sure.
    Can you help me?

    thanks
    Ralf

    The page I need help with: [log in to see the link]

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

    Thank you for reaching out to us.

    To change the site’s URL on the main header, try doing these steps:

    1. Install and activate the TC Custom JavaScript plugin
    2. Go To Appearance > Custom JavaScript
    3. Paste the following code into the provided box

    
    ;(function($) {
    
      if ( $( '.site-header .col-md-4 > a' ).length ) {
    
        $( '.site-header .col-md-4 > a' ).attr('href', 'https://www.wuerdemenschen.de');
    
      }
    
    })(jQuery);
    

    4. Update

    Regards,
    Kharis

    Thread Starter feiaweng

    (@feiaweng)

    Hello Kharis,

    thanks for your fast answer.
    Unfortunately it does not work. If I click on the logo in the header it is still the same behaviour.
    Looks like, the javascript will not be loaded or something like that.
    Are there any other options to try?

    thanks in advance
    Ralf

    Hi Ralf,

    ?Please accept my apologies for belated response to this.

    As checked, now the the site’s logo at the top links to a custom URL. Perhaps there was a cache issue since your site has a caching plugin enabled.

    Please let me know whether you still need help with it or not.

    Have a nice day!

    Regards,
    Kharis

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘change get_theme_mod home_url with different URL’ is closed to new replies.