Headway tip – removing Category Archives title

This is a slight change in the nature of the blog posts here. Sometimes I find useful snippets of code or ideas that other WordPress / Headway geeks may enjoy. If this post makes no sense to you whatsoever, don’t worry, it’s not supposed to! If you’re using the Headway theme and you want to…

This is a slight change in the nature of the blog posts here. Sometimes I find useful snippets of code or ideas that other WordPress / Headway geeks may enjoy. If this post makes no sense to you whatsoever, don’t worry, it’s not supposed to!

If you’re using the Headway theme and you want to remove the heading “Category Archives:” from the archive pages, in your child theme’s functions.php or using a plugin like My Custom Functions add this bit of code:

function cp_cat_title(){
    $content = ''. single_cat_title(false, false) .'';

    return $content;
}
add_filter('headway_category_title', 'cp_cat_title', 1);

With thanks to http://support.headwaythemes.com/discussion/22304/remove-category-archives-title/p1

Posted in

If you've enjoyed reading this post...

...why not give us a Like?

Warning: some of our posts contain affiliate links, most contain traces of nuts. All posts have been written in an environment where nuts are frequently located.

When recommending products or services, we will frequently use affiliate links. If you make a purchase after clicking on them then we may well receive a small payment.

However, we only recommend products that we use ourselves – the referral fee is just a little bonus. Even without that bonus, we would still recommend the product and posts are not written with the sole intention of receiving that bonus.

Any bonus we do receive helps us fund our community projects.