Jump to content

Is it possible to add html tags like "strong" or "span" to content title inside sections?

Go to solution Solved by creedon,

Recommended Posts

  • Replies 4
  • Views 1.4k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

  • Solution

It is a common security practice to encode user input fields to not allow the direct input of HTML where it is not expected or might cause issues.

There is no setting to turn off the encoding.

You may be able to achieve this effect with Javascript. But without being able to see a page or a description of how you want to alter text , it is hard to help.

To use Javascript you would need the business plan or above.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment

I would like to put something like this into the title:

This is my <span>headline</span>

to style the word inside the span tag. Or to add some fontawesome icons with this:

<span class="iconContent"><i class="fa fa-check fa-2x"></i>Additional content with prefixed icon</span>

I suspected it was the security settings, but was hoping I could turn that off somewhere or enable some specific tags as even in the content field only tags are allowed which are enabled through the rich text editor.

Javascript isn't a solution as it might work only somewhat delayed.

Link to comment
  • 2 years later...

Really disappointed in this limitation. I chose Squarespace over other competitors with the understanding Squarespace had good customisation.

I don't see security as being a good justification since users can freely implement scripts.

Having a simple span tag within content should not compromise security.

Screenshot 2024-07-03 122026.png

Link to comment
Posted (edited)
6 hours ago, andrewfelix said:

Really disappointed in this limitation. Having a simple span tag within content should not compromise security.

Unless you're on a Personal Billing Plan, you should be able to workaround this limitation by inserting HTML (such as a span) using JavaScript. If you provide more details about what you want to achieve, and include a link to the site, we can take a look. If required, How to Post a Forum Question provides guidance on how to provide a link.

Edited by paul2009

Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

Would you like your customers to be able to mark their favourite products in your Squarespace store?

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.