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.

Vantage Premium: Category Blog Post pages: prefaced by “Category Archive:” Need to remove

Resolved 5 replies themetheme-vantage
11 years ago · Last reply by Andrew Misplon 11 years ago

Could you tell me where the code is to add the “Category Archive:” text to the title of a category blog post page? I’ve googled it and apparently it is usually specific to themes and I”ve poked through vantage code and can’t find how to remove that.

I can’t find the order number. I”ve submitted tickets before….my receipt number didn’t work.

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

5
  1. Andrew Misplon Staff 11 years, 6 months ago

    Hi leslieg

    Thanks for running Vantage. Please see: https://siteorigin.com/thread/rename-category-archives/.

  2. leslieg 11 years, 6 months ago

    Hi Andrew – thanks. I had looked but not found that entry. However, I’m not getting it to work….the category pages are still pre-faced with “Category Archive:” and Tag page titles are still prefaced with “Tag Archive:”

    I have created the child theme with the style.css and functions.php files. I can confirm the site is using the child theme and that everything works well otherwise. (obviously not the site specific settings/colors etc.)

    I am using multisite install if that makes any difference. I will recopy the code from my own files so you can verify that I didn’t do something wrong. The only other difference is that I copied the files directly to the server as opposed to uploading the zip file via the interface. I’ve copied the below code directly from the files on the server.

    style.css

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

    functions.php

    <?php
    function vantage_get_archive_title(){
    	$title = '';
    	if ( is_category() ) {
    		$title = sprintf( __( 'My Category Archives: %s', 'vantage' ), '' . single_cat_title( '', false ) . '' );
    	}
    	elseif ( is_tag() ) {
    		$title = sprintf( __( 'Tag Archives: %s', 'vantage' ), '' . single_tag_title( '', false ) . '' );
    	}
    	elseif ( is_author() ) {
    		the_post();
    		$title = sprintf( __( 'Author Archives: %s', 'vantage' ), '<a title="' . esc_attr( get_the_author() ) . '" rel="nofollow">' . get_the_author() . '</a>' );
    		rewind_posts();
    	}
    	elseif ( is_day() ) {
    		$title = sprintf( __( 'Daily Archives: %s', 'vantage' ), '' . get_the_date() . '' );
    	}
    	elseif ( is_month() ) {
    		$title = sprintf( __( 'My Monthly Archives: %s', 'vantage' ), '' . get_the_date( 'F Y' ) . '' );
    	}
    	elseif ( is_year() ) {
    		$title = sprintf( __( 'Yearly Archives: %s', 'vantage' ), '' . get_the_date( 'Y' ) . '' );
    	}
    	else {
    		$title = __( 'Archives', 'vantage' );
    	}
    	return apply_filters('vantage_archive_title', $title);
    }
  3. Andrew Misplon Staff 11 years, 6 months ago

    Glad to hear some progress has been made.

    Can you confirm that you’ve now gone and edited the titles as required? Tag Archives: needs to be changed in the functions.php of your child theme to reflect the new title that you’d like to see.

  4. leslieg 11 years, 6 months ago

    Ah. I failed to see that one sentence. Yes, all good now. Thank you!

  5. Andrew Misplon Staff 11 years, 6 months ago

    Awesome, glad you were able to resolve. Nicely done.

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