How do I change the blogpage title within the page itself? (4 posts)

  1. temshalom
    Posted 2 years ago #

    Hi! I have a customizr based site: upon3things.templeshalom.org and I made a page for all of my blogposts thanks to all of you and your great advice I managed to make it work.

    But, the title at the very top of the page above the text or posts says "Category Archives : Blog" Is there any way I can change it to just say"Blog" like it does in the main menu?

  2. acub
    Posted 2 years ago #

    Add this code to your child themes' functions.php:

    function o_o_o() {}
    add_filter ('tc_category_archive_title', 'o_o_o');

    Now category titles will be displayed without prefix. Add the following lines if you also want the prefixes removed for author and tag archives:

    • author archives:
      add_filter('tc_author_archive_title', 'o_o_o');
    • tag archives:
      add_filter('tag_archive_title', 'o_o_o');

    Unfortunately, daily, monthly and yearly archive prefixes do not have a filter in place that we can use to remove them.

  3. temshalom
    Posted 2 years ago #

    Acub, Thanks for the advice but I didn't use a childs theme. I used a static homepage and a page for blogs and added the blog posts by adding categories to the page.

    Any new advice?

  4. acub
    Posted 2 years ago #

    You can always add the function in functions.php of Customizr, but you can bet it will vanish upon theme update. That's the whole point of making a child theme.

    But if you add that function in the parent themes' functions.php and never update it, it will work.

    In WordPress, functions.php of the current theme is where you want to place your custom php and style.css of the current theme is where you want to add your custom css.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic