Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Redirecting site title 7.1 - desktop and mobile


ms_code

Question

I'm trying to redirect my website title to my portfolio page rather than my cover page (set as my homepage) due to the 7.1 update. I need the function to work on both desktop and mobile but none of the code's I've tried have worked so far. Does anyone have an alternative solution?  I've tried the below four options already with no luck:

1) 

<script>

  document.querySelector('.header-title-logo a').setAttribute('href', 'https://ttps://beaverhero.com');

</script>

 

2) 

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script>

<script>

$(document).ready(function() {

$('.header-title a').attr('href','https://beaverhero.com');

});

</script>

 

<script>

  document.querySelector('.header-title-logo a').setAttribute('href', '/PAGENAME');

</script>

 

3) 

<script>

  document.querySelector('.header-title-logo a').setAttribute('href', '/PAGENAME');

</script>

 

4) 

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script>

<script>

$(document).ready(function() {

$('.header-title-logo a').attr('ttps://beaverhero.com');

});

</script>

Link to comment
  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

1 answer to this question

Recommended Posts

  • 0

Remove all & use this code

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
$(document).ready(function() {
	$('a#site-title').attr('href','https://beaverhero.com');
});
</script>

Replace with new url

Email me if you have need any help (free, of course.). Answer within 24 hours.

How to: Setup password & share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care - Learn CSS - Custom Popup - Testimonial Slider

I'm Tuan, blogger/owner of a free library for children in Vietnam. Helping the community is a hobby. Contact me via email.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...