Changing Category Archives Title Text
-
Hi,
So im trying to change my category headline text. Currently it is: “Category Archive: Articles” I want to know how to remove the “Category Archive:” text to just display the actual name of the categories. (http://fivbook.com/category/articles/)
I know you guys have touched on the subject in previous forum threads, but i couldnt really figure out what you were saying to do, because im a total newb.
is there any way you could explain it in SUPER EXTRA ULTRA LAMENS terms for me? i can work with adding simple css code, and i can understand altering coding, but i dont always know how to get to where the coding is to alter it.
i saw in the other threads some mentions of doing edits in .php and in child-theme css (i think), but i honestly wouldnt even know where to find those to make the alterations.
:-s please help! (thx in advance)
Mod
Quote:I know you guys have touched on the subject in previous forum threadsIf you can post a link to some of those threads, we can walk you through it. It’s not difficult, but it is a multi-step process.
Thank you!!
It looks like this person was trying to do the thing and they were helped, but I don’t really understand it 🙁
Thank you!!
It looks like this person was trying to do the thing and they were helped, but I don’t really understand it 🙁
Mod
Thanks. The first thing you need to do is create a child theme. Do you know how to do that?
If not, Prasanna has one you can download here:
Mod
Sorry for the delay.
Add this to your child theme’s functions.php file:
function graphene_filter_gettext( $translated, $original, $domain ) {
$strings = array(
'Category Archive: <span>%s</span>' => '<span>%s</span>',
);
if ( ! empty( $strings[$original] ) ) {
$translations = &get_translations_for_domain( $domain );
$translated = $translations->translate( $strings[$original] );
}
return $translated;
}
add_filter( 'gettext', 'graphene_filter_gettext', 10, 3 );Upload that via FTP to your child theme folder.
That should change “Category Archive: Articles” to just “Articles”.
no worries! So i dont know where to find my child themes functions.php file, and i also dont know how to upload aything via FTP, because I dont really know what that is and how it works (i have heard of it, but never used it before).
like i said, ultra lamens lol. im a total newb :-/
Mod
If your child theme doesn’t have a functions.php file, you’ll need to create one. Fortunately, the child theme you got from Prasanna does have one.
Your host may offer FTP through cPanel. If not, you can edit the file directly, through WordPress. (This can be dangerous, however.)
1. Go to Appearance >> Editor in your Dashboard. Make sure that your Graphene Child theme is selected in the upper right hand corner drop-down.
2. Click on “Theme Functions” in the list on the right.
3. Copy the above code, and paste it where it says “// put your code here”
4. Go ahead and delete the closing php tag (
?>
) just to be on the safe side.5. Click
“Save”“Update File”. Visit your blog to see your changes take effect. Make sure you refresh your browser cache (F5) first.6. Have a cup of tea and a cookie.
7. Learn about FTP.
Viewing 9 posts - 1 through 9 (of 9 total)
- You must be logged in to reply to this topic.