sandrawells Posted August 15, 2019 Share Posted August 15, 2019 I'm using the Montauk template, and I'm trying to add an image to a text block. I used this code in the page header injection section but the image isn't showing up. block-yui31721156549302369611440 { background-image: url(https://static1.squarespace.com/static/5d33cdb05cd5ab00015e2209/t/5d4e3f724d46e30001389183/1565409138925/cleansing1.png); padding: 10px; }Can someone let me know why it's not working? https://sanfordmedispa.com/This is the website for reference, and it's happening on the skincare index page. Link to comment
tuanphan Posted August 15, 2019 Share Posted August 15, 2019 Are you sure that block ID is exist? What element on skincare page do you say? Also, you can use .css-class-or-id-name { background-image: url(image-url-paste-here); background-size: cover; background-repeat: non-repeat; background-position: center center; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
tuanphan Posted August 15, 2019 Share Posted August 15, 2019 Are you sure that block ID is exist? What element on skincare page do you say? Also, you can use .css-class-or-id-name { background-image: url(image-url-paste-here); background-size: cover; background-repeat: non-repeat; background-position: center center; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
sandrawells Posted August 15, 2019 Author Share Posted August 15, 2019 hm I tried that code and it still doesn't work. I'm trying to change the second page on the index where there are 4 icons. (I want to put those icons behind the text.) The code worked on another page, so I think there might be something about this page that's blocking it from working. Link to comment
sandrawells Posted August 15, 2019 Author Share Posted August 15, 2019 just kidding! the code worked, but i put it in custom css instead of page injection. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.