This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Rename “Category Archives”

Resolved 15 replies premiumthemetheme-vantage
11 years ago · Last reply by Sourav Kohli 10 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.

Need fast email support? Get SiteOrigin Premium

Replies

15
  1. Marcel 11 years, 10 months ago

    Thanks for your support! ;-)

  2. Andrew Misplon Staff 11 years, 10 months ago

    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. Marcel 11 years, 10 months ago

    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. Andrew Misplon Staff 11 years, 10 months ago

    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. Marcel 11 years, 10 months ago

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

  6. Andrew Misplon Staff 11 years, 10 months ago

    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. Marcel 11 years, 10 months ago

    Okay thanks a lot.

  8. Andrew Misplon Staff 11 years, 10 months ago

    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. Marcel 11 years, 10 months ago

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

  10. Andrew Misplon Staff 11 years, 10 months ago

    Super, glad we could help out.

  11. Mariela Salgado Osses 11 years, 5 months ago

    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!

    • Andrew Misplon Staff 11 years, 5 months ago

      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. Dorie Rochai Cross 11 years, 4 months ago

    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. Sourav Kohli 10 years, 12 days ago

    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.

Have a different question or issue?

Start New Thread