Hide Page Title and reduce space

Home Forums General Questions Hide Page Title and reduce space

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #165005 Reply | Resolve

    Amber from Myth
    Member

    Hi,
    I am using the Eris theme, I’ve been trying to reduce the blank space between the top area of the pages, as there is a lot of space until my content comes up.

    Secondly, I wanted to hide the title of the homepage only, and I did this in CSS:
    .page-id-273 .entry-title, .page-title {
    display: none;
    }
    But instead of just hiding the specific page, now all pages have lost its page title.

    Appreciate if someone could shed some light on these two questions, I’ve been on this for days now…

    Thank you

    The blog I need help with is mythimpact.com
    #165006 Reply

    Ed Thomas

    Hi there!

    I am using the Eris theme, I’ve been trying to reduce the blank space between the top area of the pages, as there is a lot of space until my content comes up.

    This appears to be an odd bug with the theme — I’ll report it to the developers but, in the meantime, you can use this CSS to remove that extra white space:

    /* remove top padding from site content eD */
    .site-content {
    	padding-top: 0 !important;
    }

    Generally speaking, you’d want to avoid the use of !important in CSS code — however, based on how the style is applied to this element, it’s required in this case :)

    Secondly, I wanted to hide the title of the homepage only, and I did this in CSS:

    I see you were already able to fix this, but the issue was that you had a comma in the CSS, which meant it was targeting the .entry-title on that page, along with all .page-title elements on the site — that said, in case you ever decide to change which page is your site’s front page in the future, this will also work (and not require any update to the code to change the page ID!):

    /* hide page title on front page of site eD */
    .home .page-title {
    	display: none;
    }

    Also just a heads-up that since your site has a Premium plan, you’re entitled to live-chat and email support, accessible here: https://wordpress.com/help/contact

    You’re welcome to still post in these forums, but those other support avenues may be faster, and you’ll always get a staff reply!

    If you have any other questions, let us know and we’ll do everything we can to help!

    • This reply was modified 2 years, 8 months ago by Ed Thomas.
    #165008 Reply

    Amber from Myth
    Member

    Thank you so much Ed! That did the trick :)
    I will keep in mind the support I can get as well, I’m very new to this and thank you so much for the advice!

    #165009 Reply

    Ed Thomas

    > Thank you so much Ed! That did the trick :)

    Any time, I’m glad I could help! :)

Viewing 4 posts - 1 through 4 (of 4 total)

This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.


<a href="" title="" rel="" target=""> <blockquote cite=""> <code> <pre class=""> <em> <strong> <del datetime="" cite=""> <ins datetime="" cite=""> <ul> <ol start=""> <li> <img src="" border="" alt="" height="" width="">