[Resolved] Single Post Hook Error

Home Forums Support [Resolved] Single Post Hook Error

Home Forums Support Single Post Hook Error

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1114715
    Paul

    Hi, It appears I have an error within my single posts, displays the error on the page. Please take a peek. Thanks.

    #1114783
    Leo
    Staff
    Customer Support

    Hi there,

    The error is pointing in Hooks Elements. What have you added in there?

    Can you try setting each of them to Draft and see which one is causing the issue?

    #1114837
    Paul

    Hi Leo,

    I have not added any new hooks – I did what you asked, it’s the hook for the author box that came with the template. This is the information from line # 10

    <?php echo get_avatar( get_the_author_meta( ID )); ?>

    Thoughts?

    #1115034
    David
    Staff
    Customer Support

    Hi there,

    can you edit that line and wrap the ID in '' ie.

    'ID'

    #1115082
    Paul

    Yes, that took care of it! Thanks. I have also noticed my blog titles are longer than the samples used in the single blog posts – could you direct me as to how to reduce the text size that appears in the blue box?

    #1115122
    David
    Staff
    Customer Support

    You can adjust the Customizer > Typography > Headings > H1.
    This is the global H1 – in the latest version of GPP 1.9 you also have:

    Single Content Title (H1) – which applies only to the single posts.

    #1115259
    Paul

    Hi,

    It appears that the H1 for the single post is controlled by the global setting, can you assist in making the single content H1 the controlling heading?

    #1115262
    David
    Staff
    Customer Support

    Aah that site uses a Custom Hook Element so in Appearance > Elements edit the Custom Post Header. And change this:

    <h1><?php echo get_the_title($post->ID);?></h1>

    to:

    <h1 class="entry-title"><?php echo get_the_title($post->ID);?></h1>

    #1115268
    Paul

    Thanks. That separated the two – the global H1 is good, the single post does not expand the field to allow for the larger text and appears jumbled. See example here https://www.trademarkinteriors.com/custom-woodworking-in-home-remodeling-projects/

    #1115614
    Tom
    Lead Developer
    Lead Developer

    It looks like your single post title line height is set to 0.

    Can you try increasing that?

    #1115649
    Paul

    Thanks! Did the trick.

    #1116179
    Tom
    Lead Developer
    Lead Developer

    You’re welcome 🙂

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.