breezyacres Posted February 27 Share Posted February 27 I'd love to customize the header of my website with a scalloped edge, similar to this website: https://www.lightanddwell.com/ Would anyone have code to do so? Much appreciated! Link to comment
asifpro Posted February 27 Share Posted February 27 Hello @breezyacres Here is the code they are using 🙂 .Content-outer:after { margin-top: 138px !important; content: ""; position: fixed; top: -45px; left: calc(5%); width: 90px; height: 90px; background-color: transparent; bottom: -50px; left: 0px; width: 100%; background-image: url(scallop04.png); background-size: 40px 15px; height: 60px; background-repeat: repeat-x; } You can customize the image as per your requirement and add it to your site based on your theme CSS Class or ID. Hope it works! Let me know Thanks Asif Link to comment
breezyacres Posted February 27 Author Share Posted February 27 @asifpro thanks so much for the quick response! I'm struggling a bit as to where to input the code. I've tried both Custom CSS as well as Code Injection into the Header but neither option is working. Link to comment
asifpro Posted February 28 Share Posted February 28 Hello @breezyacres Can you give me your site like this? Then I could check actually, you have to replace this with your current theme-appropriate class .Content-outer:after Also, add an image to your squrespace account to get the URL on css Link to comment
breezyacres Posted February 28 Author Share Posted February 28 @asifpro I did upload the image to the asset library, however, I'm confused by what the theme-approriate class is/where to change that? Link to comment
asifpro Posted February 29 Share Posted February 29 Can you share your site link please? Link to comment
breezyacres Posted February 29 Author Share Posted February 29 https://www.breezyacresdesign.com Link to comment
asifpro Posted March 1 Share Posted March 1 header-announcement-bar-wrapper:after You can try to use this class but make you upload the image file and add the URL here background-image: url(scallop04.png); It should work 🙂 Link to comment
breezyacres Posted March 7 Author Share Posted March 7 Had some time to play around with this and I did manage to get the code to work by making a few tweaks. First, you have to replace ".content-outer:after" with "header-announcement-bar-wrapper:after" Second, you have to use the image URL rather than the image file name. I've shared the code below. /*Scalloped Header*/ .header-announcement-bar-wrapper:after{ margin-top: 138px !important; content: ""; position: fixed; top: -45px; left: calc(5%); width: 90px; height: 90px; background-color: transparent; bottom: -50px; left: 0px; width: 100%; background-image: url(THIS REQUIRES THE IMAGE ADDRESS, NOT IMAGE FILE; RIGHT CLICK ON THE IMAGE TO RETRIEVE); background-size: 40px 15px; height: 60px; background-repeat: repeat-x;} However, this isn't perfect and it's created another set of issues in regards to the Mobile Header. I can't find code to keep the mobile header from shrinking/moving without affecting the desktop so it's a solution that still needs work. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment