Jump to content

Hayden Template: Is there custom css code to add a banner image to a gallery page?

Recommended Posts

Posted

Hello All!

I'd like to keep the styling of my website consistent by having a banner image on my gallery page. Is there any custom css code to either remove the block on the gallery page or add the banner to it?

Thank you for your help!

  • Replies 9
  • Views 1.4k
  • Created
  • Last Reply
Posted

@saramayel Add to Home > Design > Custom CSS


 
/* Insert Image */
body#collection-5d795777891cc1028fed5189 main#page:before {
   content: "";
   background-image: url(https://beaverhero.com/wp-content/uploads/sites/4/2019/09/slidesp1.jpg);
   background-size: cover;
   height: 400px;
   display: block;
   margin-bottom: 40px;
}
/* Full width gallery page 2 */
body#collection-5d795777891cc1028fed5189 main#page {
   padding-top: 0;
   padding: 0;
   max-width: 100%;
}
/* Limit width gallery images */ 
body#collection-5d795777891cc1028fed5189 div#content {
   max-width: 1020px;
}


 

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!)

Posted

thanks saramayel for sharing

[thetechflux][1] is all about technology and they are providing premium apks for free like [shadowfight mod apk][2] [1]: https://thetechflux.com/ [2]: https://thetechflux.com/shadow-fight-2-mod-apk-unlimited-money

Posted

Hi! Thanks for sharing. However I don't think the code worked for what I'm trying to accomplish. The image appeared under the nav bar as opposed to being the banner image:https://www.donatellefurniture.com/gallery-page

Posted

@saramayel 1. Code I sent, only for GALLERY PAGE 2 2. I checked your code, and I see you inserted 9 links, not all

here code you inserted, ID in code is gallery page, not gallery page 2


body#collection-5d52b5ab5ea646000119693b main#page:before {
   content: "";
   background-image: url(https://2019.themevi.com/spmot/wp-content/uploads/sites/4/2019/09/slidesp1.jpg);
   background-size: cover;
   height: 400px;
   display: block;
   margin-bottom: 40px
}









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!)

Posted

I've inserted all of the code for gallery 2 and it isn't quite what I'm trying to accomplish... More than anything I'd like to add a banner image to Gallery Page. Gallery 2 was just an example of the banner I wanted for Gallery.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.