Blog title on blog overview page

Hi there,

I think some custom code has been put in to disable the blog title from our blog overview page, I can’t seem to find it anywhere though.

Are you able to help?

Thank you

Hi There @tamarapensa

Thanks for writing in! It’s because you’re using Pro theme and it’s custom headers will replace this functionality by default. Please follow this post on how to add your blog title again (https://theme.co/apex/forum/t/title-on-integrity-blog-archive-page/55774/4?u=mldarshana).

Please make sure to clear all caches when testing your changes (https://www.wpbeginner.com/beginners-guide/how-to-clear-your-cache-in-wordpress/).

Hope that helps.

Thank you for your helpful response.

Is there a way of doing this for category pages?

So when someone filters the blogs based on a category there is also a h1 title at the top of those pages too?

Thanks

Hello Tamar,

Please update the code to:

// add blog title 
function add_blog_title() {
    if(is_home()) {
        ?>
        <header class="x-header-landmark x-container max width">
                <h1 class="h-landmark"><span>Le Blog</span></h1>
                <p class="p-landmark-sub"><span>Welcome to our little corner of the Internet. Kick your feet up and stay a while.</span></p>
        </header>
        <?php
    } else if ( is_archive() ) { ?>
        <header class="x-header-landmark x-container max width">
                <h1 class="h-landmark"><span><?php echo single_cat_title("", false); ?></span></h1>
                <p class="p-landmark-sub"><?php echo category_description(); ?></p>
        </header>
<?php }
}

add_action('x_after_view_global__slider-below', 'add_blog_title');

Hope this helps.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.