Change "cat-title" from Filed under: to In:

Basic support is open to all members of Volatyl Themes but what about those who need a little more? That's what Volatyl Themes subscriptions are for. The Priority Support subscription gets you more detailed, personal support while the Advanced Development subscription not only includes Priority Support, but also grants you access to premium content only seen by subscribers. This premium content will help you take your Volatyl websites to the next level with advanced development techniques, integration tips, and more information on how to really put Volatyl to use. Check out the subscriptions!

The Affordable WordPress Framework Forums Basic Support Child Theme Development Change "cat-title" from Filed under: to In:

This topic is: resolved

This topic contains 4 replies, has 2 voices, and was last updated by  sdavis2702 6 years, 3 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #3990

    Richard O’Brien
    Participant

    Is this targeted in functions.php

    <span class="cat-title">Filed under:</span>

    I just want to change the wording from ‘Filed Under:’ to ‘In:’

    The only info I could find on the Codex was ‘single_cat_title() is located in wp-includes/general-template.php’ but nothing regards cat-title

    I didn’t want to dick about with the php this early. Or maybe I’m completely wrong in my thinking

    Rich

    #3994

    sdavis2702
    Keymaster
    Post count: 72

    It’s definitely PHP but you probably have never played with WordPress filters before and didn’t know where to look. That’s normal!

    Here’s what you need. http://volatylthemes.com/filters/

    That falls under the “byline text” filter… very easy to change and I provide example code. Also linked on that page is a description of what filters are and how they work. So that’s worth a read too because that’s how you change EVERY filtered element on WordPress themes.

    But for the quick solution, this is how you change it (paste into functions.php file):

    // Change byline static text
    function static_byline_text( $cat_text ) {
        $cat_text = str_replace( 'Filed under:', 'Topics:', $cat_text );
        return $cat_text;
    }
    add_filter( 'byline_text', 'static_byline_text' );
    

    Be sure to read up on the filters. You can change every little detail about Volatyl. 🙂

    #3993

    sdavis2702
    Keymaster
    Post count: 72

    And just to be clear, every single code example I give in that filters page is ready for use and the values can be adjusted. So it takes no thinking, really. I’ve already done the work.

    #3992

    Richard O’Brien
    Participant

    Thanks,

    Your code posted here didn’t do it for me but I think it could’ve been related to Super Cache.

    The filter ‘ByLine’ docs sorted it anyway.

    off topic –

    I just got notified of the reply now via email. 2 days later….?

    #3991

    sdavis2702
    Keymaster
    Post count: 72

    I’m sorry… there was one variable name incorrect in the code I gave you. I edited the code so it made more sense when I pasted it here and forgot to edit one part.

    So if you went to the filter docs, it most definitely should have been good to go. Sorry about that!

    Check your profile settings and see what your default thread subscription mode is.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.