WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. temshalom
    Member
    Posted 1 month 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
    Member
    Posted 1 month 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
    Member
    Posted 1 month 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
    Member
    Posted 1 month 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.

Reply

You must log in to post.

About this Theme

About this Topic