Change Logo URL to point to another URL than the Homepage

Hello everybody,

I have the Shapely Theme and I want to change the logo URL to point to a custom url than the homepage.
I found the line <?php shapely_get_header_logo(); ?> in the header.php
but it’s not enough…

Can anyone help, please ?

Hi there

Hope you are having a good day and thank you for your question :slight_smile:
In order to check your question i need to see your live website, please provide url and i will take a look

Hi Noda,

Thanks for your reply, this is my website: https://holies.fr/accueil

Have a nice day ! :wink:

HI there

You need to install this plugin:

and then in js code, you have to insert this code:

$(document).ready(function(){   
        $("a.custom-logo-link").attr("href", "https://");
});

You have to change “https://” to your url

Hi Noda,

Thank you for your solution proposal, I tried it but it didn’t work for me. You can see on the screenshots below that the logo’s URL is always “https://holies.fr” and not “https://holies.fr/accueil”.

Have you an another solution to propose?

Thank you for your answer.

Saad Please use this plugin to create temporary access for us, its automatic login link and does not requires sharing your admin details. here is How To guide. at the and don’t forget about  “Set as private reply” at the bottom of the message box  

Ok, thank you Noda, here is the link:

https://holies.fr/wp-admin/?wtlwp_token=f401f14123b10a08574af3cc569d6828

HI Saad

this is the final code for you:

jQuery(document).ready(function($){  
        $("a.custom-logo-link").attr("href", "https://holies.fr/accueil/");
});

Thank you very much Noda, Great job !

You are welcome Saad :wink:

If you’re happy with our service, don’t forget to rate us: [Shapely] Reviews | WordPress.org

You are welcome Saad :wink:

If you’re happy with our service, don’t forget to rate us: [Shapely] Reviews | WordPress.org