Jump to content

Help w/ Changing Logo-Text Header to Link to a Different Page

Recommended Posts

Posted

Site URL: https://www.ofnoevil.com

Hello,

Need help with changing the logo-text header link to a different page (not the homepage).

I have tried the following code, but it changes all the a-href links for all the link within the main navigation, I'd like this to only be applied to the top logo text.

 

<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>

<script>$(document).ready(function () {
          $(".site-title a[href]").attr("href", "/video");
        });
</script>



Any help is appreciated.

Thanks!

  • Replies 3
  • Views 557
  • Created
  • Last Reply
  • 3 weeks later...
Posted

@tuanphan could you help me out a bit? I'm trying to reproduce your instructions but I'm kind of lost as to where I should insert them.

For context: I'm trying to create a bilingual site, so for visitors the logo on specific pages should direct them to the respective language's homepage instead of the landing page.

Posted
On 9/3/2021 at 4:03 PM, ebijnen said:

@tuanphan could you help me out a bit? I'm trying to reproduce your instructions but I'm kind of lost as to where I should insert them.

For context: I'm trying to create a bilingual site, so for visitors the logo on specific pages should direct them to the respective language's homepage instead of the landing page.

Hi.

With multi language site, you can follow this guide. https://www.bradgood.net/articles/multi-language-content-on-any-squarespace-template

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.