How do I Change Logo link URL? NOT Home Page…

This topic has 4 replies, 2 voices, and was last updated 7 months, 1 weeks ago ago by Luca Rossi

  • Avatar: Roobinda
    Roobinda
    Participant
    April 12, 2024 at 11:47

    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?

    3 Answers
    Avatar: Justin
    Luca Rossi
    Support staff
    April 12, 2024 at 13:40

    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!

    Avatar: Roobinda
    Roobinda
    Participant
    April 14, 2024 at 10:34

    That works perfectly. Thanks you!

    Avatar: Justin
    Luca Rossi
    Support staff
    April 14, 2024 at 10:37

    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

  • Viewing 4 results - 1 through 4 (of 4 total)

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

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.