Site logo

Archived topic

Add page title to blog page - 2018

9 replies · Started by katia on November 10, 2018

Viewing posts 1–10 of 10

Hi all,
i used a suggestion found in a old topic in order to show my blog title in the blog homepage, creating a hook and putting it “inside_container”, but this made title shown before Yoast breadcrumbs, while in every other pages of the site page title appears after breadcrumbs 🙁
Can you tell me how to fix this difference?
Thank you in advance!
n.b i cannot show my website because it's in under construction mode and visible to logged admins only

Hi there,

I assume Yoast breadcrumb is added using the same hook?

If so can you try using a lower priority for the title in Hooks Elements?

Let me know :)

Hi Leo, thanks for your fast reply;
i didn't add breadcrumbs by using a hook but modifying the header.php file (soon i will insert this and other code changes in a child theme)

Awesome :)

Make sure to do so using child theme!

i made child theme but now i don't know exactly how and where to insert the code for properly displaying blog title

thanks, i supposed it was in there :)
I wonder if i simply have to insert the code generated by the hook:

<?php if ( is_home() ) : ?>
<header class="entry-header">
<h1 itemprop="headline" class="entry-title">XXX</h1><br/><br/>
</header>
<?php endif; ?>

or other, and how to specify display rules and how to have title displayed after breadcrumbs

Would you consider using the Hooks Elements? It should be the easier option if you aren’t comfortable with coding.

i do actually am using Elements for the title hook; do you mean i should realize another hook for Yoast bradcrumbs and remove the code from header.php file in the child theme?

Yes :)

This archived topic is closed to new replies.