"Filed under" won't change

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

This topic is: resolved

This topic contains 9 replies, has 4 voices, and was last updated by  Marylucs 2 months, 1 week ago.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #110569

    Marylucs
    Member
    Post count: 7

    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/
    #110591

    JanHoek
    Member
    Post count: 212

    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.

    #110636

    emasai
    Participant
    Post count: 648

    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.com/forums/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

    #110839

    Marylucs
    Member
    Post count: 7

    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 :)

    #110841

    JanHoek
    Member
    Post count: 212

    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.

    #110842

    JanHoek
    Member
    Post count: 212

    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.

    #110928

    Marylucs
    Member
    Post count: 7

    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;
    }}
    
    #110930

    emasai
    Participant
    Post count: 648

    No Carrie did not get back to me on this.


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

    #110936

    genwrock
    Member
    Post count: 523

    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


    Working as a freelancer & helping the people on forum | Chinmoy @ PWD | Please Follow Me on Twitter If I’ve helped.

    #110943

    Marylucs
    Member
    Post count: 7

    ohhhhhh my gosh it works!!!! Thank you so much :) Can’t believe its this simple :-) Awesome!

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

You must be logged in to reply to this topic.