Jump to content

Logo URL Redirect 7.1

Go to solution Solved by tuanphan,

Recommended Posts

Site URL: https://trimcohardware.online

Would like to revisit the code required to change the URL of the logo on my site. I found several old posts that provided some code to add to the Header of the page, however none of them worked. I'm using the latest eCommerce 7.1 template and would like the logo URL to point back to the Shop page. Can anyone help with the latest code that will allow for this?

Thanks

Link to comment

Add to Home > Settings > Advanced > Code Injection > Footer

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

If the code doesn't work, can you share access password? Your site has protected password

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!)

Link to comment
<!-- Title -->
              
                <div
                  class="
                    header-title
                    
                  "
                  data-animation-role="header-element"
                >
                  
                    <div class="header-title-logo">
                      <a href="/" data-animation-role="header-element">
                        <img src="//static1.squarespace.com/static/5f05cf89560a9b7e48055ff7/t/5f05e7f693e8cf378fe0cddf/1598979029138/?format=1500w" alt="Trimco Store" />
                      </a>
                    </div>

                  
                  
                </div>

<!-- Title and nav wrapper -->
          <div class="header-title-nav-wrapper">
            

            

            
              
              <!-- Title -->
              
                <div
                  class="
                    header-title
                    
                  "
                  data-animation-role="header-element"
                >
                  
                    <div class="header-title-logo">
                      <a href="/" data-animation-role="header-element">
                        <img src="//static1.squarespace.com/static/5f05cf89560a9b7e48055ff7/t/5f05e7f693e8cf378fe0cddf/1598979029138/?format=1500w" alt="Trimco Store" />
                      </a>
                    </div>

                  
                  
                </div>

The code you provided isn't working. The code above are the elements that might help you configure the code... let me know if this helps. Thanks for working with me... I appreciate it.

 

Link to comment
  • Solution

new code

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

 

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!)

Link to comment
  • 6 months later...
  • 2 weeks later...
On 3/15/2021 at 10:14 AM, Mirabal78 said:

Hi, same issue as many others has commented. The solution provided here just work for desktop view (at least for me). Mobile view still redirecting to the cover page.  Can anyone provide feedback on this matter? Thanks.

Hi. Can you share site url? We will check again

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!)

Link to comment
  • 1 year later...
On 7/15/2022 at 11:04 PM, MinerMan2022 said:

Hi @tuanphan could you help us with a similar issue as described above.

We are trying to link the mobile logo to a different page. Right now if you click the mobile logo it doesn't do anything. The link and password are below. Any help would be greatly appreciated. Thank you! 

https://spinach-circle-hb9w.squarespace.com/

password: DoveLove2022!

I see mobile logo is clickable here. Did you solve problem or if no, you mean click logo >> redirect to another page?

 

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!)

Link to comment
5 hours ago, tuanphan said:

I see mobile logo is clickable here. Did you solve problem or if no, you mean click logo >> redirect to another page?

 

Hi @tuanphan on mobile if you visit the gallery, firm, portfolio, or contact pages and try to click on the logo to back to the home page, it doesn't take you back to the home page. Do you see what I am referring to?

Link to comment
On 7/18/2022 at 8:44 PM, MinerMan2022 said:

Hi @tuanphan on mobile if you visit the gallery, firm, portfolio, or contact pages and try to click on the logo to back to the home page, it doesn't take you back to the home page. Do you see what I am referring to?

Change this code

<style>
  .header-mobile-logo {
height: 60px;
content: url("https://static1.squarespace.com/static/6206d3367ee6ce5e6524e7fc/t/62d1894028f823196ffbeb93/1657899328701/yates-desygn-logo.png")
}
</style>

to this code

 <style>
            .header-mobile-logo img {
                left: -50px;
                height: 60px;
                content: url("https://static1.squarespace.com/static/6206d3367ee6ce5e6524e7fc/t/62d1894028f823196ffbeb93/1657899328701/yates-desygn-logo.png");
                position: relative;
            }
        </style>

 

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!)

Link to comment
On 7/19/2022 at 9:04 AM, tuanphan said:

Change this code

<style>
  .header-mobile-logo {
height: 60px;
content: url("https://static1.squarespace.com/static/6206d3367ee6ce5e6524e7fc/t/62d1894028f823196ffbeb93/1657899328701/yates-desygn-logo.png")
}
</style>

to this code

 <style>
            .header-mobile-logo img {
                left: -50px;
                height: 60px;
                content: url("https://static1.squarespace.com/static/6206d3367ee6ce5e6524e7fc/t/62d1894028f823196ffbeb93/1657899328701/yates-desygn-logo.png");
                position: relative;
            }
        </style>

 

That worked flawlessly! Thank you so much @tuanphan!

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...

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.