Jump to content

Custom HTML in Title Field of Services Block

Recommended Posts

Posted

I'm looking to add simple HTML (primarily italics and a forced break) to the title field of individual pieces of content within the services section area. Within the WYSIWYG editor, I'm able to see this header as intended, but when I hit save and view the live page, the code I've entered is now visible (see attached screenshot). Is this possible? 

Page: https://www.joshuakagi.com/home-1
Password: grandifi

Screenshot 2023-06-21 at 10.02.01 AM.png

Posted

In most cases unless the field says that it supports the input of HTML, then it will be sanitized before being displayed to a site visitor.

If I've sussed out the section you are using you should be able to use italics and returns instead of HTML.

ScreenShot2023-06-21at10_00_40PM.png.dc42407100a10d46833df542033ee4a1.png

ScreenShot2023-06-21at10_03_48PM.png.526adec3c451dde055caeb988f518690.png

Tip : You type shift-return to get a line break that isn't a new paragraph as seen near the xyz in the second image.

If you need more than these built-in options then you are into using JavaScript to manipulate the text in a special way. There are examples of this technique most often used in a store page to get special formatting. I don't have any specific pointers off the top of my head. They also wouldn't solve this issue but show a general principle.

Let us know how it goes.

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.

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.