Uncategorized

How to make your wordpress logo redirect to a custom url

There are cases when you build a subdomain over your main website. You might want to redirect the logo of the subdomain to the main website hence the need to do this. There simple and complex method to do this, and you do not need to go through the stress of creating child theme or anything, simply follow the instructions below and you will get to redirect your website logo to any URL of your choice.

Plugins required

Simple Custom CSS and JS

 

By downloading and installing the above plugin you will be able to add custom Jquery codes to your website.

Simply add the JS code below using this plugin and your website logo will start redirecting to the custom URL you specify.

jQuery(document).ready(function($){
$(“a.custom-logo-link”).attr(“href”, “https://google.com”);
});

Replace URL google.com with the URL you want your website to redirect to.

Try it and let us know how it goes

Leave a Reply

Your email address will not be published. Required fields are marked *