- This topic has 13 replies, 2 voices, and was last updated 4 years ago by davyk.
-
AuthorPosts
-
November 24, 2020 at 6:38 pm #12756davykParticipant
Hi, New to wordpress and themes.
I have the free exoplanet theme and I also have smart slide 3. I have set up my slider and added it to my homepage and it looks ok, but i would like to remove the white area beneath the header area and the main content for the Hero slider.
Attached is an image of what I mean (the white area under the red header image I want to remove.
Please could someone help in how I can do this in wordpress /exoplanet free theme?
thanks in advance
Davy
November 25, 2020 at 9:24 am #12766AndyKeymasterAdd the following custom CSS at ‘Appearance’ > ‘Customize’ > ‘Additional CSS’:
.main-header { margin-bottom: 0; }
November 25, 2020 at 4:07 pm #12768davykParticipantHi,
Thanks, but unfortunately this did not work as intended.
I just want the hero slider to move up and not every other page.
All this done was make every other pages content move to the to top but not the homepages hero image slider Attachment included highlighted in yellow (please ignore the red overlay of the name of the site as I would like to hold that off just now)
November 25, 2020 at 4:13 pm #12770AndyKeymasterSo I can provide the correct CSS, I’ll need to see the live page on your site. If you don’t want to say the URL on here, just send a message via our contact page with your site URL, and reference this support topic.
November 25, 2020 at 4:17 pm #12772davykParticipantI use pages and not posts – might add in a blog page for posts later but not decided…
November 25, 2020 at 4:21 pm #12771davykParticipantthanks, I am still looking at the code (although not done HTML & CSS in about 10-15years, so WordPress is alien to me.
Thanks – it is just the home page I want to change…. although the site is a work in progress.
November 25, 2020 at 4:26 pm #12774AndyKeymasterCheers. Replace the previous custom CSS with this:
.custom-post-type-header { margin-bottom: 0; }
November 25, 2020 at 4:30 pm #12775davykParticipantbrilliant that is the one, thanks
November 25, 2020 at 5:26 pm #12778davykParticipantany chance to do the same at the home page footer of this code:
<footer class="entry-footer"> <span class="edit-link">Edit <span class="screen-reader-text">"Home"</span></span> </footer><!-- .entry-footer -->
November 25, 2020 at 6:12 pm #12781AndyKeymasterYou only see the “Edit” link when viewing logged in as admin (or with page editing privileges), so normal visitors won’t see this.
November 25, 2020 at 6:13 pm #12782davykParticipantyeah but the space remains when not logged in
November 25, 2020 at 6:13 pm #12783davykParticipantyour help is really appreciated and a massive thanks for fixing the original issue
November 25, 2020 at 6:17 pm #12784AndyKeymasterThis CSS should remove the margin after the main content on the homepage:
.home main > article { margin-bottom: 0; }
November 25, 2020 at 6:22 pm #12785davykParticipantbrilliant, thanks for your help I have really appreciated it.. that is the home page the way I want it… with exception of images which I can do in the slider and when I get new images….
Again thanks…
-
AuthorPosts
- The topic ‘Removing white space between header area & hero Image’ is closed to new replies.