• Resolved hbee

    (@heatherbodlak)


    Hello again,
    I am now having another issue: Thanks to your previous help regarding the featured image size I have been able to reduce the maximum height of the banner images that appear at the top of the individual post pages.
    HOWEVER, I would prefer the Headline/post title to remain inside the white box (as it does when there is no Featured Image set) instead of it moving above over the banner image…

    Any help would be greatly appreciated!!
    Thanks again.
    Heather

    https://www.anpacpibembibre.com

Viewing 10 replies - 16 through 25 (of 25 total)
  • what template are you using for that page? I will find out what file is writing that code. You will have to do the same thing as you did on the single blog post pages.

    my guess is that it is ‘page.php’ that has the code you will have to remove, and that ‘loop-page.php’ is where you will add it.

    so remove this line from ‘page.php’ on line 18:

    <h1 class="headline img-headline"><?php the_title(); ?></h1>

    and add it like this on line 8 of loop-page.php:

    <div class="article"> <---- add it right after this line, line 7
    <h1 class="headline img-headline"><?php the_title(); ?></h1>

    hope that helps

    Thread Starter hbee

    (@heatherbodlak)

    It’s the default page template (not full width or archives…)

    Thread Starter hbee

    (@heatherbodlak)

    I did that, and it works for the page with featured image… but it is making the Heading appear twice on the homepage and other pages…
    any idea what can prevent that?

    Thanks!

    Thread Starter hbee

    (@heatherbodlak)

    I figured it out! I removed another line from loop-page.php

    <h1 class=”headline”><?php the_title(); ?></h1>

    You’re doing great! It’s pretty fun when code all of a sudden starts making sense.

    Thread Starter hbee

    (@heatherbodlak)

    The feeling of EUREKA! haha!
    Seriously, thanks for all your help.

    You be aware that directly modifying theme files is not suggested. If the theme gets updated because of feature enhancements, bug fixes, or security patches, or if the theme has to be updated because of a change to the WordPress core, then your changes will be lost. Instead, create a child theme and make your changes to copies of whatever files you want to modify.

    He is right. You should create a child them and create versions of modified files in there.

    Thread Starter hbee

    (@heatherbodlak)

    Yes, I had thought of creating a child theme… but since this is the only change I am planning on making to the php files, I was thinking I’d make the changes again if I update the theme.
    However, if I find that I will be making more modifications to the theme I will definitely create a child theme.
    (I should do it anyway though…)

    THANK YOU!

Viewing 10 replies - 16 through 25 (of 25 total)
  • The topic ‘Changing place of Heading on individual post pages’ is closed to new replies.