Changing Category Archives Title Text

  • Cydm

    #10439

    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

    Kenneth John Odle

    #46125
    Quote:
    I know you guys have touched on the subject in previous forum threads

    If 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.

    Cydm

    #46126

    Thank you!!

    It looks like this person was trying to do the thing and they were helped, but I don’t really understand it 🙁

    https://forum.graphene-theme.com/graphene-support/change-text-category-archive-on-category-pages-to-be-the-category-title

    Cydm

    #46127

    Thank you!!

    It looks like this person was trying to do the thing and they were helped, but I don’t really understand it 🙁

    https://forum.graphene-theme.com/graphene-support/change-text-category-archive-on-category-pages-to-be-the-category-title

    Mod

    Kenneth John Odle

    #46128

    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:

    http://www.prasannasp.net/graphene-child-theme-template/

    Cydm

    #46129

    thanks. Ok, I have the child theme. im hoping that wont change anything other than the header and background?

    what is my next step?

    Mod

    Kenneth John Odle

    #46130

    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”.

    Cydm

    #46131

    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

    Kenneth John Odle

    #46132

    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.