Home>Support>continued problems trying to remove wording ‘ Category Archives:’ from drop down page

continued problems trying to remove wording ‘ Category Archives:’ from drop down page

Hello

I have looked in the thread and tried troubleshooting various codes, but I still can’t seem to remove ‘category archives’ from drop down pages in vantage premium.

I have tried the cutting and pasting the following into a custom CSS box – but doesn’t work.

<?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() ) . '">‘ . 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);
}

But it doesn’t work – I still see it – any suggestions?

URL: http://www.theroamingcurator.com/category/united-states/

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

  1. 9 years, 2 months ago Andrew Misplon
    Hi, I Work Here

    Hi Roamingcurator

    Thanks for reaching out.

    The code snippet you’ve mentioned is PHP it won’t work in the Custom CSS form, that form can only parse CSS. If you’d like to remove the Category Archives: ….. title the easiest way would be with CSS. We cover that method here:

    Thread: Remove ‘Category Archives’ headline on each page

    Alternatively, to use the snippet you posted above you’ll need to use a child theme. I’ve uploaded one for you to use here if that’s the route you’d like to go:

    https://siteorigin.com/wp-content/uploads/2015/07/vantage-child-category-archives-rename.zip

    1. Download the ZIP.
    2. Install the child theme via Appearance > Themes > Add New: Upload Theme. Activate.
    3. Activating a child theme will cause menu location and Customizer settings to reset.
    4. With the child theme activated you’ll be able to edit your original function from Appearance > Editor > functions.php.

    This is an intermediate level task. Even the smallest mistake in functions.php will cause your site to white screen. You need to make changes to the category archives titles very carefully. Only replace the title text. This all needs to be done with FTP or Hosting File Manager access ready. If your site white screens you’ll need to go to /wp-content/themes/ and delete the “vantage-child” folder to restore access.

  2. 9 years, 2 months ago roamingcurator

    Andrew

    I went to the link you provided, which shows this:

    Andrew Misplon Hi, I Work Here

    Hi Ryan

    Thanks for your support. Your order number can be found in your original mail from SiteOrigin and/or under Settings > General >
    SiteOrigin Order Number field. Please insert that if you post any new support threads so we can assist more promptly with our other premium queries. Apologies for the delay here.

    This is unfortunately not a quick change. To change or remove you can use the child theme method which I outline here: Thread: Rename “Category Archives”.

    Another option is to place the below under Appearance > Custom CSS:

    /* Vantage Hide Archives Title */

    .archive .page-title { display: none; }
    That will remove the entire archive title though.

    I followed the directions: went to Appearance, Custom CSS and pasted the link. I had other custom CSS snippets there – I tried both attaching it to end of what was there already, as well as entering it on its own. In both cases still no change to my website: Example here:

    http://www.theroamingcurator.com/category/europe/

    Also – on that page – how might I add a 'read' more link on the archive page.. instead of the….?

    laurie

  3. 9 years, 2 months ago Andrew Misplon
    Hi, I Work Here

    If you’d like to go the CSS route, try adding the following to Appearance > Custom CSS:

    /* Vantage Hide Archives Title */
    
    .archive #page-title { display: none; }
    

    It should do the trick.

    In Theme Settings > Blog, if you opt for full content instead of Excerpt you can then use the read more tag to split your posts. It adds a continue reading button:

    https://en.support.wordpress.com/more-tag/

    Once you’re using the excerpt there is no theme driven option to replace the default dots with a read more link.

    It’s possible to add a link to the excerpt using custom development. The following function can be inserted into the functions.php file in a child theme:

    https://codex.wordpress.org/Function_Reference/the_excerpt#Make_the_.22read_more.22_link_to_the_post

    This is an intermediate level task.

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