Home>Support>Rename “Category Archives”

Rename “Category Archives”

By Marcel, 8 years ago. Last reply by Sourav Kohli, 6 years ago.

Hi,

i would like to rename the headline “Category Archives” for the Categories.

I have searched in the archive.php, but can’t found the text “Category Archives”.

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 8 years, 1 month ago Marcel

    Thanks for your support! ;-)

  2. 8 years, 1 month ago Andrew Misplon Hi, I Work Here

    Hi Marcel

    To change this you’ll need to create a child theme. If you need help with the style.css of your child theme here is an example that will work right away:

    /* Theme Name:     Vantage Child Author:         SiteOrigin Template:       vantage Version:        1.0.0*/@import url("../vantage/style.css");

    Then within your child theme create a functions.php file and insert the following:

    <?phpif( !function_exists( 'vantage_get_archive_title' ) ) :/** * Return the archive title depending on which page is being displayed. *  * @since vantage 1.0 */function vantage_get_archive_title(){	$title = '';	if ( is_category() ) {		$title = sprintf( __( 'My Category Archives: %s', 'vantage' ), '<span>' . single_cat_title( '', false ) . '</span>' );	}	elseif ( is_tag() ) {		$title = sprintf( __( 'Tag Archives: %s', 'vantage' ), '<span>' . single_tag_title( '', false ) . '</span>' );	}	elseif ( is_author() ) {		the_post();		$title = sprintf( __( 'Author Archives: %s', 'vantage' ), '<span class="vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( "ID" ) ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' );		rewind_posts();	}	elseif ( is_day() ) {		$title = sprintf( __( 'Daily Archives: %s', 'vantage' ), '<span>' . get_the_date() . '</span>' );	}	elseif ( is_month() ) {		$title = sprintf( __( 'My Monthly Archives: %s', 'vantage' ), '<span>' . get_the_date( 'F Y' ) . '</span>' );	}	elseif ( is_year() ) {		$title = sprintf( __( 'Yearly Archives: %s', 'vantage' ), '<span>' . get_the_date( 'Y' ) . '</span>' );	}	else {		$title = __( 'Archives', 'vantage' );	}		return apply_filters('vantage_archive_title', $title);}endif;

    And edit the titles above as required.

    Hope that helps.

  3. 8 years, 1 month ago Marcel

    Hi Andrew,
    thanks for your reply.
    The problem is, when i activate the child theme i lose my settings. The color of my header menu returned to first standard grey.

  4. 8 years, 1 month ago Andrew Misplon Hi, I Work Here

    That’s unfortunately standard. What I usually do is open in one tab my Customizer from the parent theme, then activate the child theme in a new tab, open the Customizer and copy the settings across pane by pane.

  5. 8 years, 1 month ago Marcel

    you mean, i have to copy the settings in functions.php?

  6. 8 years, 1 month ago Andrew Misplon Hi, I Work Here

    You need to:

    1. Create a child theme: https://codex.wordpress.org/Child_Themes.
    2. Into that child theme goes a style.css which I’ve pasted the code for above.
    3. Into that child theme goes a functions.php file which I’ve pasted the code for above.
    4. ZIP your child theme once complete and upload via Appearance > Themes > Add New.
    5. Activate your child theme.
    6. You will then lose your settings under Appearance > Customize. You need to redo those settings.

  7. 8 years, 1 month ago Marcel

    Okay thanks a lot.

  8. 8 years, 1 month ago Andrew Misplon Hi, I Work Here

    No problem.

    So to confirm my advice previously about opening up your old Customizer in one tab and your new Customizer in another tab was just an easy way to manually copy your color settings etc. from the parent theme to the child theme. Hopefully that’s a little clearer now.

  9. 8 years, 1 month ago Marcel

    Yes it takes a little bit longer for me to understand but now i get it ;-) thank you. You can close the thread

  10. 8 years, 1 month ago Andrew Misplon Hi, I Work Here

    Super, glad we could help out.

  11. 7 years, 8 months ago Mariela Salgado Osses

    Hi, Andrew

    I don’t have much expertise in edit css, you can help me to do?

    what I should send you to fix it and I just copy and paste?

    thanks!

    • 7 years, 8 months ago Andrew Misplon Hi, I Work Here

      Hi Mariela

      In the second link I sent through Greg provides a small snippet. You just need to copy that and paste it into Appearance > Custom CSS and hit Save. Please reply on your original thread for any further help on this. Thanks.

  12. 7 years, 7 months ago Dorie Rochai Cross

    Okay thanks, I will look into that. I also noticed that the navigation for the meta slider on my homepage does not work. I have checked to use the arrows in the settings but they don’t show up. The dots still show, but even those are not clickable.

  13. 6 years, 3 months ago Sourav Kohli

    Hi, Andrew

    i have create a categaries but its show in title Category Archives: news
    but i need only news show in title I should send you to fix it…in wordpress

    thanks!

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More