Jump to content

Remove site title link from homepage

Recommended Posts

On my client's homepage, the site title is an active link (on hover shows underline and finger pointer) but goes nowhere, since the browser is already on the homepage.

 <!--SITE TITLE OR LOGO-->

<h1 data-content-field="site-title" class="site-title ">
	<a href="/" class="site-title-link">
                							
		This is the site title
                							
	</a>
</h1>

She finds this behavior confusing and would like to disable it (only on the homepage). I cannot find a way to disable/hide the link. Searching the forum did not reveal a solution for this specific case, and the code I tried below did not work.

.homepage h1 a:link a:hover {
  display: none !important;
  text-decoration: none  !important;
}

This seems pretty basic, so I'm guessing I'm missing something obvious. Thanks for any help, no matter how embarrassing to me.

Galapagos template, v . 7.0

Link to comment
2 hours ago, SmDDB said:

On my client's homepage, the site title is an active link (on hover shows underline and finger pointer) but goes nowhere, since the browser is already on the homepage.

 <!--SITE TITLE OR LOGO-->

<h1 data-content-field="site-title" class="site-title ">
	<a href="/" class="site-title-link">
                							
		This is the site title
                							
	</a>
</h1>

She finds this behavior confusing and would like to disable it (only on the homepage). I cannot find a way to disable/hide the link. Searching the forum did not reveal a solution for this specific case, and the code I tried below did not work.

.homepage h1 a:link a:hover {
  display: none !important;
  text-decoration: none  !important;
}

This seems pretty basic, so I'm guessing I'm missing something obvious. Thanks for any help, no matter how embarrassing to me.

Galapagos template, v . 7.0

Can you share your site with the protected password to check your issue?

https://support.squarespace.com/hc/en-us/articles/205815528-Site-wide-passwords

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
11 hours ago, MidnightClub said:

Hi @SmDDB,

Try this:

#collection-5d01791ff7754c00012b4be8{

.site-title-link{pointer-events: none;}

}

Basically only on the homepage, you deactivate the possibility to have an action on click on the logo.

Cheers,
Fab

Totally worked, Fab, thanks so much. I saw where you got it; I'm new to collections, so this is a learning experience. Really appreciate this!

— David

Edited by SmDDB
Link to comment

As you want this to apply to the homepage you don't need to worry about identifying and using a Collection ID as you can use the homepage class like you did in your first example. 🙂

.homepage .site-title-link {
  pointer-events: none;
}

 

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™.
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Buy me a coffee

Link to comment
On 12/7/2021 at 11:03 AM, paul2009 said:

you don't need to worry about identifying and using a Collection ID as you can use the homepage class

Love that homepage class. I don't know if its always been available but when I found it, it makes my brain hurt less when I need to quickly apply an effect to the homepage only. Or exclude an effect from the homepage with the use of :not! 🙂

Edited by creedon

Find my contributions useful? Please like, upvote, mark my answer as best , and see my profile. Thanks for your support!

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.