• Resolved anzgar

    (@anzgar)


    Is there any way to get a custom blog page design with the free version of GP?
    For example I would like to add some text below the title, and before the blog posts are displayed in a loop.

    I tried solving this with the block editor, but as soon as I set the page as the blog page in wordpress, everything is overwritten somehow and I can only see the listed blog posts.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi there,

    you can use a PHP Snippet to create an Action hook to add in your content.

    Example 1 – add content after the Entry Title on a single post:

    add_action('generate_after_entry_title', function(){
        // if is single post
        if (is_single()) {
            ?>
            Your custom content goes here
            <?php
        }
    });

    Example 2 – add content before loop on blog

    add_action('generate_before_loop', function(){
        // if is blog page
        if ( is_home() ) {
            ?>
            Your custom content goes hear
            <?php
        }
    });
    Thread Starter anzgar

    (@anzgar)

    thanks a lot.

    as the Blog page isn’t my homepage I had to figure out a different “if” clause, but it works now ??

    • This reply was modified 2 years, 1 month ago by anzgar.

    Glad to hear that

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘individual blog page design’ is closed to new replies.