This topic has 4 replies, 2 voices, and was last updated 8 months, 1 weeks ago ago by Luca Rossi
Hi there. I would like the logo in the header to link to a different page. Not the site home. How can i achieve this?
Hi @Roobinda,
Please add the following code under functions.php file locates in your child theme:
add_action('wp_footer', 'n2t_wp_footer', 99);
function n2t_wp_footer() {
if(is_singular('product')){
?>
<script>
!function($) {
"use strict";
$(document).ready(function(){
$(".et_b_header-logo > a").attr('href', 'https://yourcustomlink.com');
});
}(jQuery);
</script>
<?php
}
}
Hope it helps!
That works perfectly. Thanks you!
Hi @Roobinda,
In the spirit of gratitude, we want to express our appreciation for your trust in our products. As a valued customer, your experience matters greatly. Would you consider sharing it by giving our theme a deserving 5-star rating on ThemeForest?
Click here to share your thoughts: https://themeforest.net/downloads
Being part of our community means a lot, and your feedback contributes immensely.
Best Regards,
The 8Theme Team
The issue related to '‘How do I Change Logo link URL? NOT Home Page…’' has been successfully resolved, and the topic is now closed for further responses