• Resolved Jane Milburn

    (@jane-milburn)


    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?

Viewing 15 replies - 1 through 15 (of 15 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    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?

    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.

    Thread Starter Jane Milburn

    (@jane-milburn)

    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.

    Thread Starter Jane Milburn

    (@jane-milburn)

    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?

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

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

    Thread Starter Jane Milburn

    (@jane-milburn)

    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.

    No worries ??

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

    Thread Starter Jane Milburn

    (@jane-milburn)

    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.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

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

    Thread Starter Jane Milburn

    (@jane-milburn)

    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.

    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!

    Thread Starter Jane Milburn

    (@jane-milburn)

    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.

    My pleasure ??

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    @ryan, I would also like to thank you for your contributions towards the WordPress community ?? Thank you.

    My pleasure Andrew!

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Remove header from recent posts.’ is closed to new replies.