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

How to inject custom code to edit banner text

Question

Guest

I am looking to strikethrough a portion of the text overlaying my banner image in the Hayden template. Of course, this requires code as strikethrough is not a basic tool. Is there a way to inject this code into the banner text somehow? Many thanks!


<h1><p style="text-align: center;"><del>marketing consultations.</del></h1></p>


Edited by Guest
Initial Revision

Share this post


Link to post

10 answers to this question

Recommended Posts

  • 1

Perfect. Now add this to Design > Custom CSS:


 #collection-5c7db4b47817f73e6c594c76 .desc-wrapper p em {
  text-decoration: line-through;
  font-style: normal;
}

This will work by limiting changes to this page only (using its unique collection ID). It will style any paragraph text (p) in the Banner Description (.desc-wrapper) that is italic (em) into strikethrough text (text-decoration: line-through) without italics (font-style: normal).

I hope that helps.

Paul

Like other moderators on this forum, I post answers to help fellow Squarespace users understand how to customise their sites.
If I've correctly answered your question, please Accept the answer by clicking Accept below. If it didn't help, feel free to ask for more help or wait for forum users to add their comments and/or answers.

To everyone else who reads this answer and finds it helpful, please vote it up using the up arrow. This will let other users know it's a good answer.
For more useful Squarespace tips see our website.


sf-digital-signature-logo-email145.png.46606a2288a2847f44d81b9b7b58f3a5.png
Hi, I'm Paul, founder of SF Digital, a specialist company building the features that Squarespace didn't include
I am a Squarespace Developer and Squarespace Circle Leader with a
strong reputation on the Squarespace Forum. I'm trusted by thousands of Squarespace users worldwide, including designers, freelancers, business owners and agencies. My extensions add capabilities to Squarespace websites around the globe. They include the Enquiry Form ExtensionDate Picker Extension and Age Verification ExtensionNeed a custom Squarespace extension? Tell me about the functionality you need. Note that some links in my posts may be affiliate links.

Share this post


Link to post
  • 1

Cute. What do you want to strikethrough? I couldn't see it.


sf-digital-signature-logo-email145.png.46606a2288a2847f44d81b9b7b58f3a5.png
Hi, I'm Paul, founder of SF Digital, a specialist company building the features that Squarespace didn't include
I am a Squarespace Developer and Squarespace Circle Leader with a
strong reputation on the Squarespace Forum. I'm trusted by thousands of Squarespace users worldwide, including designers, freelancers, business owners and agencies. My extensions add capabilities to Squarespace websites around the globe. They include the Enquiry Form ExtensionDate Picker Extension and Age Verification ExtensionNeed a custom Squarespace extension? Tell me about the functionality you need. Note that some links in my posts may be affiliate links.

Share this post


Link to post
  • 0

It helps if we can view your site. Please include a link to your site and check your site's visibility settings are suitable for us to view it.


sf-digital-signature-logo-email145.png.46606a2288a2847f44d81b9b7b58f3a5.png
Hi, I'm Paul, founder of SF Digital, a specialist company building the features that Squarespace didn't include
I am a Squarespace Developer and Squarespace Circle Leader with a
strong reputation on the Squarespace Forum. I'm trusted by thousands of Squarespace users worldwide, including designers, freelancers, business owners and agencies. My extensions add capabilities to Squarespace websites around the globe. They include the Enquiry Form ExtensionDate Picker Extension and Age Verification ExtensionNeed a custom Squarespace extension? Tell me about the functionality you need. Note that some links in my posts may be affiliate links.

Share this post


Link to post
  • 0
Guest

Thank you, thank you @Paul2009 :) Ooo sorry about that! The page was a bit of secret and under construction. Here it is now ready to view: https://www.estormstudio.com/marketing I am looking to get “marketing consultations” with the strikethrough up into the banner with “soul call.”

Share this post


Link to post
  • 0

OK. Can add the text to the banner. Then, this may sound weird but, format the strikethrough part as italics using the formatting toolbar. I can provide some code to remove the italics and convert this part to strikethrough.


sf-digital-signature-logo-email145.png.46606a2288a2847f44d81b9b7b58f3a5.png
Hi, I'm Paul, founder of SF Digital, a specialist company building the features that Squarespace didn't include
I am a Squarespace Developer and Squarespace Circle Leader with a
strong reputation on the Squarespace Forum. I'm trusted by thousands of Squarespace users worldwide, including designers, freelancers, business owners and agencies. My extensions add capabilities to Squarespace websites around the globe. They include the Enquiry Form ExtensionDate Picker Extension and Age Verification ExtensionNeed a custom Squarespace extension? Tell me about the functionality you need. Note that some links in my posts may be affiliate links.

Share this post


Link to post
  • 0
Guest

Success! I cannot thank you enough for sharing all of your Squarespace knowledge. Virtually every question I’ve ever Googled has been answered by you :) Really appreciate it. All my best! Emma

Share this post


Link to post
  • 0

:-) You're welcome.


sf-digital-signature-logo-email145.png.46606a2288a2847f44d81b9b7b58f3a5.png
Hi, I'm Paul, founder of SF Digital, a specialist company building the features that Squarespace didn't include
I am a Squarespace Developer and Squarespace Circle Leader with a
strong reputation on the Squarespace Forum. I'm trusted by thousands of Squarespace users worldwide, including designers, freelancers, business owners and agencies. My extensions add capabilities to Squarespace websites around the globe. They include the Enquiry Form ExtensionDate Picker Extension and Age Verification ExtensionNeed a custom Squarespace extension? Tell me about the functionality you need. Note that some links in my posts may be affiliate links.

Share this post


Link to post
Guest
This topic is now closed to further replies.

×
×
  • Create New...