WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Remove header from recent posts. (16 posts)

  1. Jane Milburn
    Member
    Posted 1 year ago #

    I use a Twenty Eleven child theme.
    roymilburn.com
    When a "Recent Post" is clicked on on the page that I'm taken to, the image is too low down. I thought if I remove the header It would raise it up a bit. How can I do this. If this can not be done, how can I move the image higher up the page?

  2. Andrew
    Forum Moderator
    Posted 1 year ago #

    How about this;

    .singular .hentry,
    .singular #content nav,
    .singular .entry-title {
     padding: 0;
    }
    
    .singular .entry-title {
     float: left;
    }

    Remove the header, what, the header of the posts?

  3. Ryan Yu
    Member
    Posted 1 year ago #

    Hi Jane Milburn,

    You can update the css to move up the whole content.

    Login to the dashboard and go to Appearance > Editor and find ".singular .henry".
    The padding may look something like padding: 4.875em 0 0. Change the value like padding:1em 0 0.

  4. Jane Milburn
    Member
    Posted 1 year ago #

    Hello, again. I still have not sorted my child theme css since you advised me last night. The problem is that I am doing this website as a surprise for my dad's birthday monday and want to tweak it to get it looking good with not much time left, that's why I have not sorted the css yet. The code you gave does move the post up but not on the page which opens when you click on particular "Recent Posts" or the title. It's there that I either want to remove the header or move the content up more closer to the menu bar.

  5. Jane Milburn
    Member
    Posted 1 year ago #

    I tried both suggestions and they work but now the post title on the page showinmg when click on recent posts, comment bubble and title is squashed up against the image and looks odd. Can I align this to look better?

  6. Ryan Yu
    Member
    Posted 1 year ago #

    Just to make sure, is this the page you are talking about?
    http://www.roymilburn.com/?p=804

    and if you could give us more explanation (maybe with screenshots), we would understand better of your problem.

  7. Jane Milburn
    Member
    Posted 1 year ago #

    So sorry for not explaining myself properly. However now that I have put captions with my images, everything seems to have lined up fine. Sorry to have troubled you. I should have just spent more time fiddling about with things. Sorry again and thank you for all your help, which did work. Many thanks.

  8. Ryan Yu
    Member
    Posted 1 year ago #

    No worries :)

    We are always here to help you so if you have another problem, just let us know!

  9. Jane Milburn
    Member
    Posted 1 year ago #

    I was wondering if you would mind giving me any constructive criticism on the site overall. I am new to this and have not shown the site to anyone I know, therefore I have not had a true opinion on the sites overall appearance. No worries if not, I do appreciate your time is precious on this forum.

  10. Andrew
    Forum Moderator
    Posted 1 year ago #

    If you haven't already, create a thread in the Your WordPress forum for forum volunteers to review your site.

  11. Jane Milburn
    Member
    Posted 1 year ago #

    Yes two little issues. I would still like to rmeove the headre form th pages that open when you click recent posts, comment bubble or post title
    as per the link Ryan Yu posted. Also all of my post titles on the home page are left of the image except the first on New york which is centeres. How can I move this left to match the others or move the others center to match the New York title?
    Many thanks.

  12. Ryan Yu
    Member
    Posted 1 year ago #

    I would still like to rmeove the headre form th pages that open when you click recent posts, comment bubble or post title as per the link Ryan Yu posted.

    You will need to modify the header a bit. Go to Appearance > Editor and click the Header link in the right sidebar. Find the code </hgroup> and add the line underneath it.

    <?php if (!is_single()) { ?>

    and find this line, <?php endif; // end check for removed header image ?> and add the code underneath it.

    <?php } ?>

    This will remove the header image only on the blog pages.

    Also all of my post titles on the home page are left of the image except the first on New york which is centeres. How can I move this left to match the others or move the others center to match the New York title?

    Add the code below in style.css

    .home .post .entry-title { text-align: center; }

    Hope it helps!

  13. Jane Milburn
    Member
    Posted 1 year ago #

    To Andrew Nevins, thank you for that advice, I did not know you could do that, thank you and Ryan Yu. lol I am soooooo happy it worked and I think everything looks so much better now. It's amazing that you both offer so much help to people for free. Hopefully one day I may learn that much that I can give some help to people. Well done. I will now close this as resolved. Thank you again.

  14. Ryan Yu
    Member
    Posted 1 year ago #

    My pleasure :D

  15. Andrew
    Forum Moderator
    Posted 1 year ago #

    @Ryan, I would also like to thank you for your contributions towards the WordPress community :) Thank you.

  16. Ryan Yu
    Member
    Posted 1 year ago #

    My pleasure Andrew!

Topic Closed

This topic has been closed to new replies.

About this Topic