• Resolved shaggyshoogz

    (@shaggyshoogz)


    Hello,

    Im trying to remove (not just hide) the gap between the header image and the page body of text on the portfolio pages, it auto generates a h1.entry-title with the title of the project, i dont want this. I would like it the same as my home page (www.thetenthyard.co.uk) where there is no large gap between header and content.

    I have so far hidden it with:

    h1.entry-title {
    visibility: hidden;
    }

    However this leaves a gaping hole of blank space between the header image the page content.

    If what im asking is even possible, could someone kindly tell me how to achieve what im after?

    Many thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter shaggyshoogz

    (@shaggyshoogz)

    After checking my site I realise the above code isn’t appropriate as it removes the titles from my blog page as well!

    However I have managed to reduce the gap a bit with:

    header.entry-header {
    height: 0px;
    }

    So now I need another way to hide JUST portfolio titles while leaving blog titles in place and visible

    Thanks

    • This reply was modified 8 years, 1 month ago by shaggyshoogz.
    Moderator Kathryn Presner

    (@zoonini)

    However this leaves a gaping hole of blank space between the header image the page content.

    That’s because visibility: hidden; leaves the empty space taken by the element you’re hiding. display: none; is what you’re looking for.

    I’d suggest you start fresh, and remove the CSS above.

    To hide the post title on single portfolio projects — but leave them displayed everywhere else — you can target them with:

    .single-jetpack-portfolio .entry-title {
      display: none;
    }

    Let me know how it goes.

    • This reply was modified 8 years, 1 month ago by Kathryn Presner. Reason: small edit for clarity
    Thread Starter shaggyshoogz

    (@shaggyshoogz)

    Hello,

    Your code worked perfectly! Thank you so much.

    I was playing with;

    .single-jetpack-portfolio .entry-title

    But couldnt get it to work for me, but now I see why!

    Thanks again

    Moderator Kathryn Presner

    (@zoonini)

    My pleasure, glad that did the trick! I’ll mark this thread as resolved but feel free to start a new one if you need help with anything else.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Remove entry-title from project pages’ is closed to new replies.