[Support request] Changing the Link Address of Sticky Logo

Home Forums Support [Support request] Changing the Link Address of Sticky Logo

Home Forums Support Changing the Link Address of Sticky Logo

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

    While I use this script to redirect the logo link to another url it works fine. But not on the sticky logo. This script crashes the site when the Header is disabled and use the sticky navigation with logo.

    <script src=”//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js”></script>
    <script>$(document).ready(function () {
    $(“.logo a[href]”).attr(“href”, “http://yourlink.com/&#8221;);
    });
    </script>

    Is this something I need to do in the HTACCESS file? or tweak the script?

    Thanks in advance

    #230541
    Tom
    Lead Developer
    Lead Developer

    Javascript isn’t the best method to do something like this.

    Use the built in filter instead: https://generatepress.com/forums/topic/how-do-i-change-the-blog-title-link/#post-150222

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