Jump to content

Add image to text block

Go to solution Solved by tuanphan,

Recommended Posts

Hi, I am trying to add a logo next to two lines of text on my homepage. The text starts with "sample wines...". The logo is stored as an image in my asset library. I tried to add the logo as an image block but it's difficult to line up well with the text. Is it possible to add the logo directly to the text block instead?

Thanks for your help!

Link to comment
  • Replies 7
  • Views 1.8k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

  • Solution

(If you use a Business Plan or higher, I will give another easier guide to do this)

With current case, you can use this code to Website > Website Tools > Custom CSS

div#block-yui_3_17_2_1_1697723457843_13372 p:before {
    content: "";
    background-image: url(https://images.squarespace-cdn.com/content/v1/6527207078777a00e84fa37a/469f2106-40a3-4199-8af4-b54b4a13b2c4/SipPoint+logo.png?format=1500w);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    display: inline-block;
    width: 100px;
    height: 40px;
}
div#block-yui_3_17_2_1_1697723457843_13372 p {
    display: flex;
    align-items: center;
    justify-content: center;
}

image.thumb.png.c340cce6eea4c318fd701087c7e690a0.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
11 hours ago, ArnoldJ said:

Thanks! This works great. Do you know how to use an image that's stored in my asset library, but isn't currently shown on my website?

You can create a test page (you can delete it then) > Add a Gallery > Choose Images in Asset Library > Save > Right click on Image > Copy Image Address, then replace to code

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

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.