• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

"Filed under" won't change

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › "Filed under" won't change

This topic is: resolved

Tagged: categorie, change, filed under, filedunder, name, tag

  • This topic has 9 replies, 4 voices, and was last updated 8 years, 9 months ago by Marylucs.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • June 19, 2014 at 9:00 am #110569
    Marylucs
    Member

    Hey there

    I want to change the "Filed Under: Categorie" name but nothing happens. I tried all the codes that are out there but they don't work. I do have the Plugin Genesis Simple Edits but even if i deactivate it nothing changes.
    Here is my website: http://www.modernwall.de/
    Please note its in german. I have the [post_categories] in both the post-preview and the 4 highlighted posts.
    I don't know why all the codes won't work and i hope somebody can help me. 🙂
    (I already used the search-function here but nothing helped me)

    And i hope my english is alright and you get what i mean.
    Thanks in advance 🙂

    http://www.modernwall.de/
    June 19, 2014 at 12:03 pm #110591
    JanHoek
    Participant

    Try to put this file in your functions.php and change the Filed Under text

    //* Customize the post meta function
    add_filter( 'genesis_post_meta', 'sp_post_meta_filter' );
    function sp_post_meta_filter($post_meta) {
    if ( !is_page() ) {
    $post_meta = '[post_categories before="Filed Under: "]';
    return $post_meta;
    }}


    Hi, my name is Jan Hoek. Sure, they all say I have a big head, but I like to think it’s way too small for all my ideas.

    June 19, 2014 at 2:24 pm #110636
    emasai
    Participant

    She probably tried that code as did I and it does not work on the theme Minimum that I was trying to change to German. I asked this question in a previous post http://www.studiopress.community/topic/change-of-language-in-post-meta-not-showing/ and was waiting for Carrie Dils to get back with an answer.


    Need Website Customization or a Responsive CSS fix? Contact Me
    Lynne emasai.com

    June 20, 2014 at 2:19 pm #110839
    Marylucs
    Member

    Thank you for your help but like emasai already said. It doesn't work. I tried every code i could find but nothing seems to work. So frustrating.

    I hope she got a good answer 🙂

    June 20, 2014 at 2:56 pm #110841
    JanHoek
    Participant

    I tested this code in Minimum Pro. Metric 1.0 and Genesis Sample and worked perfect on blog, archive and single page/post

    //* Customize the post meta function
    
    add_filter('genesis_post_meta', 'post_meta_filter');
    function post_meta_filter($post_meta) {
    if (!is_page()) {
        $post_meta = '[post_categories before="Plop: "] [post_tags before="Tagged: "]';
        return $post_meta;
    }}

    Hi, my name is Jan Hoek. Sure, they all say I have a big head, but I like to think it’s way too small for all my ideas.

    June 20, 2014 at 3:01 pm #110842
    JanHoek
    Participant

    Emasai, did you already get an answer from Carrie about this?


    Hi, my name is Jan Hoek. Sure, they all say I have a big head, but I like to think it’s way too small for all my ideas.

    June 21, 2014 at 4:50 am #110928
    Marylucs
    Member

    Thats so weird. I put the code at the end of my functions and i deactivated all of the Genesis Plugins and still... nothing changes. Should i post my functions.php here? Maybe there is something "wrong" with it?

    <?php
    //* Start the engine
    include_once( get_template_directory() . '/lib/init.php' );
    
    add_filter( 'genesis_post_meta', 'sp_post_meta_filter' );
    function sp_post_meta_filter($post_meta) {
    if ( !is_page() ) {
        $post_meta = '[post_categories before="Demo for BoldPlan: "] [post_tags before="Tagged: "]';
        return $post_meta;
    }}
    
    //* Child theme (do not remove)
    define( 'CHILD_THEME_NAME', 'Genesis Sample Theme' );
    define( 'CHILD_THEME_URL', 'http://www.studiopress.com/' );
    define( 'CHILD_THEME_VERSION', '2.0.1' );
    
    //* Enqueue Lato Google font
    add_action( 'wp_enqueue_scripts', 'genesis_sample_google_fonts' );
    function genesis_sample_google_fonts() {
    	wp_enqueue_style( 'google-font-lato', '//fonts.googleapis.com/css?family=Lato:300,700', array(), CHILD_THEME_VERSION );
    }
    
    //* Add HTML5 markup structure
    add_theme_support( 'html5' );
    
    //* Add viewport meta tag for mobile browsers
    add_theme_support( 'genesis-responsive-viewport' );
    
    //* Add support for custom background
    add_theme_support( 'custom-background' );
    
    //* Add support for 3-column footer widgets
    add_theme_support( 'genesis-footer-widgets', 3 );
    
    //* Neue Thumbnail Groessen
    add_image_size( 'sidebar-thumbnail', 100, 100, true );
    
    add_image_size( 'post-thumbnail', 120, 120, true );
    
    add_image_size( 'feat-post', 270, 150, true );
    
    add_image_size( 'sidebar-thumb', 300, 240, true );
    
    add_image_size( 'nav-neue', 90, 90, true );
    
    add_image_size( 'neues-thumbnail', 160, 160, true );
    
    add_image_size( 'feat-thumbnail', 280, 80, true );
    
    // Child theme setup function
    function child_theme_setup() {
      // Remove the primary navigation from its current location
      remove_action( 'genesis_after_header', 'genesis_do_nav' );
      
      // Add the primary navigation to the top of the page
      add_action( 'genesis_before_header', 'genesis_do_nav' );
    }
     
    // Hook into genesis_setup
    add_action( 'genesis_setup', 'child_theme_setup' );
    
    //* Customize search form input box text
    add_filter( 'genesis_search_text', 'sp_search_text' );
    function sp_search_text( $text ) {
    	return esc_attr( 'Suche' );
    }
    
    //* Customize the next page link
    add_filter ( 'genesis_next_link_text' , 'sp_next_page_link' );
    function sp_next_page_link ( $text ) {
        return '<img src="http://www.modernwall.de/wp-content/uploads/2014/06/olderartikel.jpg">';
    }
    
    //* Customize the previous page link
    add_filter ( 'genesis_prev_link_text' , 'sp_previous_page_link' );
    function sp_previous_page_link ( $text ) {
        return '<img src="http://www.modernwall.de/wp-content/uploads/2014/06/newerartikel.jpg">';
    }
    
    //* Setze den Titel neben das Thumbnail
    remove_action( 'genesis_entry_content', 'genesis_do_post_image', 8 );
    add_action( 'genesis_entry_header', 'genesis_do_post_image', 3 );
    
    /** Customize Read More Text */
    add_filter( 'excerpt_more', 'child_read_more_link' );
    add_filter( 'get_the_content_more_link', 'child_read_more_link' );
    add_filter( 'the_content_more_link', 'child_read_more_link' );
    function child_read_more_link() {
     
    return '<a href="' . get_permalink() . '" rel="nofollow"><h1>Weiterlesen</h1></a>';
    }
    
    // neues Widget 
    genesis_register_sidebar( array(
    'id' => 'top-newsletter',
    'name' => __( 'Newsletter Top', 'themename' ),
    'description' => __( 'Newsletter below navigation', 'themename' ),
    ) );
    
    add_filter( 'genesis_after_header', 'add_newsletter_top' );
    function add_newsletter_top() {
    genesis_widget_area( 'top-newsletter', array(
    'before' => '<div id="top-newsletter"><div class="wrap">',
    'after' => '</div></div>',
    ) );
    }
    
    //* Im Post nächster/vorheriger Artikellink
    add_action('genesis_entry_footer', 'wpsites_pagination_links', 15 );
    function wpsites_pagination_links() {
    if( !is_single() ) 
          return;
     
        previous_post_link('<span class="single-post-nav previous-post-link">%link</span>', '<< Vorheriger Artikel in der Kategorie', TRUE);
        next_post_link('<span class="single-post-nav next-post-link">%link</span>', 'Naechster Artikel in der Kategorie >>', TRUE);
    }
    
    //* Customize the post meta function
    
    add_filter('genesis_post_meta', 'post_meta_filter');
    function post_meta_filter($post_meta) {
    if (!is_page()) {
        $post_meta = '[post_categories before="Kategorie: "] [post_tags before="Stichwörter: "]';
        return $post_meta;
    }}
    
    June 21, 2014 at 5:26 am #110930
    emasai
    Participant

    No Carrie did not get back to me on this.


    Need Website Customization or a Responsive CSS fix? Contact Me
    Lynne emasai.com

    June 21, 2014 at 6:39 am #110936
    Genesis Developer
    Member

    your are using featured post widget. So go to appearance->widgets and edit your featured post widget . Place [post_categories before="Kategorie: "] in post info box


    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

    June 21, 2014 at 8:31 am #110943
    Marylucs
    Member

    ohhhhhh my gosh it works!!!! Thank you so much 🙂 Can't believe its this simple 🙂 Awesome!

  • Author
    Posts
Viewing 10 posts - 1 through 10 (of 10 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble