[Support request] h1,h2,h3 on the blog page

Home Forums Support h1,h2,h3 on the blog page

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #345523
    Josu

    Hi, im using GP premium and i have a web with an static page and a blog page. I have a question.

    Right now my blog page is only showing my entrys.I would like to optimize my Blog page adding some H1 and content under the main photo on the header, maybe also some H2,H3 with content under the entries. Like that i could make my blog page rank better on search engines. Is that possible?

    Thank you for you attention.

    #345660
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    By default, your site title is an H1 on your blog page.

    If you’re not using the site title (using an image for example), you could potentially use the Blog Page Header options to add your H1s, H2s etc: https://docs.generatepress.com/article/blog-page-header/

    #346335
    Josu

    Hi, thanks for the answer and to providing so great information. I have a couple of questions>

    1. I succesfully added H1 and content to my blog page on the top of the entrys (thanks!). Is it possible also to add more H2 and content in the same page, but above the entrys?? So the title should be on top and more content under the entries.

    2. Im making a project where i’d like to rank good my categories on search engines. Is it possible to write a different H1 and content to every category?

    Thank you for your patience.

    #346336
    Josu

    I’ve been reading the documentation. Im a newbie, i would appreciatte a lot if you could give me some clarification about this. I see its possible to add the content to categorys with this code>

    add_filter( ‘generate_get_blog_page_header’,’tu_category_blog_page_header’ );
    function tu_category_blog_page_header() {
    if ( is_category( ‘My Category Name’ ) ) {
    return true;
    }

    return false;
    }

    But then as i understood will be the same H1, and content to BLOG INDEX, and to the CATEGORY selected. I’m trying to have a different H1 and content for every category, and for the blog index. Is that possible somehow? Thanks again

    #346451
    Tom
    Lead Developer
    Lead Developer

    The new version of Page Header coming out should interest you: https://vimeo.com/223381628

    You can try it now by becoming a beta tester: https://docs.generatepress.com/article/beta-testing/

    #346507
    Josu

    Wow, very interesting. Thats exactly what i was looking for. Then i could put an image header for each category. Simply amazing. Unfortunatly i dont have any extra site where i could try the beta version, I’ll wait to the release and intall it staight away on my website.

    What about puting more content as well bellow all the entries in the blog page, (not only on the header). Would that be possible?

    Thanks again.

    #346621
    Leo
    Staff
    Customer Support

    Below all the entry titles? If so the After Entry Title hook should work:
    http://demo.generatepress.com/hook-locations/
    https://docs.generatepress.com/article/hooks-overview/

    If you are referring to the main blog page, then this conditional tag should work:

    <?php if ( is_home() ) : ?>
        Content here
    <?php endif; ?>

    For single posts, use

    <?php if ( is_single() ) : ?>
        Content here
    <?php endif; ?>

    Make sure to check Execute PHP

    #349077
    Josu

    Hi, thanks for the answer. Yesterday i found a plugin, its called anywhere elementor pro, it lets me override the category layout from GP, and to put a template from elementor which i can customize adding text everywhere and the post widget showing the posts from that category. That looks like a perfect solution to me.
    I just wanted to double check with you guys before im doing that (overriding the GP layouts with elementor templates), just to make sure i wont have any kind negative effects on the site. SO far I´ve tried the demo version and everything looks very good.

    Thank you

    #349097
    Leo
    Staff
    Customer Support

    Yup you should be good!

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