Archived topic
Single Post Hook Error
11 replies · Started by Paul on December 26, 2019
Hi, It appears I have an error within my single posts, displays the error on the page. Please take a peek. Thanks.
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?
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
Thoughts?
Hi there,
can you edit that line and wrap the ID in '' ie.
'ID'
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?
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.
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?
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>
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/
It looks like your single post title line height is set to 0.
Can you try increasing that?
Thanks! Did the trick.
You're welcome :)