WordPress.org

Ready to get started?Download WordPress

Forums

Vantage
How to remove "Category Archives: Name" from each category (9 posts)

  1. leanneling2
    Member
    Posted 2 months ago #

    I've installed a child theme of Vantage but I can't for the life of me figure out how to remove the "Category Archives: Category name" on each category. The link is http://LeanneLing.co.uk if you want to see what I mean.

    I don't want to play around with the theme as i'm pretty new to WordPress. I'm not sure if I need to add something into my child theme or find a function in archive.php that needs changing/removing.

    If anyone could help that would be great!

  2. saribear
    Member
    Posted 2 months ago #

    Hey there! I just got rid of that problem. Here's what I did:

    Go to template-tags.php in the Editor.

    Go to line 232 (or just search the page for "vantage_get_archive_title()" and it gets you to the right line).

    It should say "$title = sprintf( __( 'Category Archive: %s', 'vantage' ), '<span>' . single_cat_title( '', false ) ."

    Take out the part that says "Category Archive:" but nothing else.

    Your problem should be fixed then! Before you change anything, it's helpful to copy and paste the original into a Word document or txt file and tuck it somewhere in case you ever have to go back to the original.

  3. Misplon
    Member
    Posted 2 months ago #

    Hi saribear

    Thanks for posting the fix to this problem.

    Don't forget to rather edit template-tags.php on your local computer and insert that file into your child theme to avoid the change being overwritten during the next update of Vantage.

    Cheers

    Andrew

  4. leanneling2
    Member
    Posted 2 months ago #

    Hi Saribear, thanks - I'll try this!

    Hi Misplon, I have a question about child themes in this situation. I've never actually used one before but i'm using one for Vantage. Do I make another document called template-tags.php with the edited code, put that in my Vantage Child folder and re-upload that to WordPress? Or do I put the edited template-tags.php code into the Vantage Child theme editor? Or shall I change it in the theme where it says "This child theme inherits templates from a parent theme, Vantage"

    Thanks again!

  5. Misplon
    Member
    Posted 2 months ago #

    Hi leanneling2

    Please find a working child theme here: https://dl.dropboxusercontent.com/u/3072682/vantage-child.zip

    Head to Appearance > Themes > Add New > Upload and upload the ZIP file. Then activate the child theme. You then need to take make a copy of template-tags.php place it in the child theme folder at /wp-content/themes/vantage-child.

    Hope that helps.

    Andrew

  6. leanneling2
    Member
    Posted 2 months ago #

    I already have a child theme, can I not just use the one i'm already using? I just don't know where to put the edited code is all.

    Would it just be easier for me to take that child theme from above and use instead?

    Edit: I just checked, the one you posted above is the same as the one i'm already using, so where do I put the edited code? Shall I just put it in the folder and zip it again and upload it?

  7. Misplon
    Member
    Posted 2 months ago #

    If your child theme is working then stick with it, just activate it under Appearance > Themes if it's not already active.

    Then make a copy of template-tags.php via FTP and insert the copy in your child themes folder at the same path. I forgot to mention this above. So within your child them make a folder called "inc" and insert template-tags.php into that folder. My child theme is called vantage-child so my path to insert template-tags.php would be:

    /wp-content/themes/vantage-child/inc/

  8. leanneling2
    Member
    Posted 2 months ago #

    The original folder that I used to make my child-theme is at work on my work computer and i'm currently at home on my laptop. Is there a way to do this without having to access the original folder?

    Do you mean make a folder in my child them IN Wp or in my documents? Sorry, I'm quite confused as I'm very new to wordpress.

  9. Misplon
    Member
    Posted 2 months ago #

    Everything I'm referring to is on your web server. You need to access your server via FTP. Then navigate to /wp-content/themes/. There you'll see the folder that represents your child theme, whatever that is called. Go into your child theme's folder and create a folder called "inc". Then go copy the template-tags.php file from /wp-content/themes/vantage and place the copy in /wp-content/themes/name-ofyourchildtheme/inc/

Reply

You must log in to post.

About this Theme

About this Topic