Jump to content

Add text to top of Index Page

Go to solution Solved by tuanphan,

Recommended Posts

Hi, 
I would like to add a short text/page description to the top of a certain index page on my site to describe what is shown in the index below. The text i would like to add is now below the index thumbnails but I want this above the thumbnails.
This would be used on the following page:

https://www.jirobosma.com/drone

Can i do that with custom CSS?

(I did try this solution but it did not work https://forum.squarespace.com/topic/226702-add-text-to-top-of-index-pages/)

Thanks!

 

Edited by JiroB
Link to comment
  • Replies 6
  • Views 1k
  • Created
  • Last Reply

Top Posters In This Topic

Thanks that works!
Can it also be a title line in bold for example, and another couple of lines below it in a normal font?
Like the attached image.

This is what i have now:
 

body#collection-65ba9c2d82e27a520f220005 .main-content:before {
    content: "Aerial Cinematography";
    display: block;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 30px;
    font-size: 16px;
    font-weight: bold;
    color: grey;
}

 

Screenshot 2024-02-09 at 17.19.14.png

Link to comment
  • Solution

Use this code

body#collection-65ba9c2d82e27a520f220005 .main-content:before {
    content: "Aerial Cinematography \A line 2 line 2 line 2 \A Line 3 line 3 line 3";
    display: block;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 30px;
    font-size: 16px;
    font-weight: bold;
    color: grey;
    white-space: pre-wrap;
}

image.png.e53755ef829444dbce9e3070fba1adf1.png

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

Thanks. Iv'e updated with your code.
But the sublines need to be in a different font weight. and the enters aren't working.
So like this: Title in bold and size 16. and sublines in normal and size 15.

It has to look exactly like this attachment if possible. (the correct text and formatting is below the thumbnails on my site now)

Screenshot2024-02-09at17_19_14.thumb.png.0fde0711db723c5291585cd6600d3aff.png

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.