- This topic has 11 replies, 4 voices, and was last updated 1 year ago by
Tom.
-
AuthorPosts
-
December 26, 2019 at 12:47 pm #1114715
Paul
Hi, It appears I have an error within my single posts, displays the error on the page. Please take a peek. Thanks.
December 26, 2019 at 4:26 pm #1114783Leo
StaffCustomer SupportHi 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?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/December 26, 2019 at 7:55 pm #1114837Paul
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?
December 27, 2019 at 4:01 am #1115034David
StaffCustomer SupportHi there,
can you edit that line and wrap the ID in
''
ie.'ID'
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/December 27, 2019 at 5:19 am #1115082Paul
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?
December 27, 2019 at 6:37 am #1115122David
StaffCustomer SupportYou 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.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/December 27, 2019 at 6:52 am #1115259Paul
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?
December 27, 2019 at 6:58 am #1115262David
StaffCustomer SupportAah 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>
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/December 27, 2019 at 7:05 am #1115268Paul
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/
December 27, 2019 at 5:04 pm #1115614Tom
Lead DeveloperLead DeveloperIt looks like your single post title line height is set to
0
.Can you try increasing that?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentDecember 27, 2019 at 7:45 pm #1115649Paul
Thanks! Did the trick.
December 28, 2019 at 8:46 am #1116179Tom
Lead DeveloperLead DeveloperYou’re welcome 🙂
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-development -
AuthorPosts
- You must be logged in to reply to this topic.