Archived topic
Changing the Link Address of Sticky Logo
1 reply · Started by Joseph on September 29, 2016
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/");
});
</script>
Is this something I need to do in the HTACCESS file? or tweak the script?
Thanks in advance
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