Inserting space between featured image and main page content
Support Area › Forums › Bottega › Inserting space between featured image and main page content
- This topic has 7 replies, 2 voices, and was last updated 8 years, 1 month ago by Bill Robbins.
-
AuthorPosts
-
February 26, 2016 at 09:44 #35664Atit PatelParticipant
Hello,
I am playing around with bottega and having fun :-). I really like the template.
I would like to insert some space between featured image on my page and the main content of the page so that the background image can be seen through the gap. Not sure how can I do that.
My website is http://www.nilisart.com. I have made a sample site using wix. That shows how I want the site to look. (http://patelnili.wix.com/nilisart).
Also, same question for the gap between main content of the page and footer. Attaching pictures also for more detail.
I really appreciate your help.
Thanks,
Attachments:
February 26, 2016 at 10:01 #35668Bill RobbinsModeratorGood Morning Atit,
Glad you’re enjoying the theme. Looks like you’re off to a great start too.
It is possible to insert spaces there. What we’ll need to do is make the “wrapper” on the home page transparent. That way its background won’t get in the way as we create space. Then we can add a background to the individual elements. Here’s how to make that happen:
- Go to the Appearance section in your WordPress dashboard and click on Theme Options.
- Choose the Advanced tab and scroll down to the Custom CSS box at the bottom and add this:
.home #wrap { background: transparent !important; } #home-content { background-color: #fff; } .home #footer { margin-top: 20px; }
- Save your changes.
See if that won’t space those elements out on your home page. If you run into any questions or trouble, let me know.
Thanks,
BillFebruary 26, 2016 at 12:13 #35675Atit PatelParticipantHi Bill,
Thanks. I much appreciate the quick help. That worked for home page. I do see thought that other pages, (About, Locations, Shop) that have default or full-page templates don’t have the similar spacing in the footer. I am thinking we need to do that to have a consistent feel across the site.
Thanks,
February 26, 2016 at 12:46 #35677Bill RobbinsModeratorMy apologies, I didn’t realize you were looking to do that throughout. We can do that with a bit of editing. Here’s what to do:
- In your WordPress dashboard, click on the Appearance section and choose header.php from the files listed on your right.
- Scroll down to the bottom of the file and add this:
<div id="custom-wrap">
(make sure to copy that directly from the support site instead of the notification email.)
- Save your changes and open up the footer.php file.
- At the very top of the file, create a new line and add this there:
</div>
and save your changes.
- Next go back to the Custom CSS in the theme options and change what we added earlier to be like this:
#wrap, .home #custom-wrap { background: transparent !important; } #home-content, #custom-wrap { background-color: #fff; } #footer { clear: both; margin-top: 20px; }
and update your settings.
Hopefully that will get you to where you’re wanting to go. It’s untested though, so if it doesn’t get there perfectly, let me know and I’ll help you adjust it. We’ll need that code there to create the space between the footer and the main content areas on the home page.
Let me know how it goes,
BillFebruary 26, 2016 at 13:13 #35678Atit PatelParticipantHi Bill,
Many Thanks for quick help.
The home page looks good. “Default Template” (nilisart.com/about) pages look funny. I have left that page as-is for now. So you can take a look.
Pages with “FullPage” template looks better though (nilisart.com/locations).
February 26, 2016 at 13:51 #35679Bill RobbinsModeratorI believe I see what we need there. Add this snippet to your Custom CSS also:
#custom-wrap { overflow: hidden; }
Save your changes and see if that doesn’t do the trick for you.
Bill
February 26, 2016 at 14:09 #35680Atit PatelParticipantNice!!! Many Thanks!!!
February 26, 2016 at 14:14 #35681Bill RobbinsModeratorHappy to help out. Have a fantastic weekend 🙂
-
AuthorPosts
- The topic ‘Inserting space between featured image and main page content’ is closed to new replies.