Community Forums › Forums › Archived Forums › Design Tips and Tricks › "Filed under" won't change
Tagged: categorie, change, filed under, filedunder, name, tag
- This topic has 9 replies, 4 voices, and was last updated 10 years, 9 months ago by
Marylucs.
-
AuthorPosts
-
June 19, 2014 at 9:00 am #110569
Marylucs
MemberHey 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.
http://www.modernwall.de/
Thanks in advance 🙂June 19, 2014 at 12:03 pm #110591JanHoek
ParticipantTry 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 #110636emasai
ParticipantShe 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.comJune 20, 2014 at 2:19 pm #110839Marylucs
MemberThank 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 #110841JanHoek
ParticipantI 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 #110842JanHoek
ParticipantEmasai, 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 #110928Marylucs
MemberThats 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 #110930emasai
ParticipantNo Carrie did not get back to me on this.
Need Website Customization or a Responsive CSS fix? Contact Me
Lynne emasai.comJune 21, 2014 at 6:39 am #110936Genesis Developer
Memberyour 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
June 21, 2014 at 8:31 am #110943Marylucs
Memberohhhhhh my gosh it works!!!! Thank you so much 🙂 Can't believe its this simple 🙂 Awesome!
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.