Community Forums › Forums › Archived Forums › General Discussion › Change of Language in post meta not showing
- This topic has 6 replies, 2 voices, and was last updated 10 years, 8 months ago by
emasai.
-
AuthorPosts
-
April 9, 2014 at 8:12 am #99338
emasai
ParticipantI just used the code in the functions file to change the words "Filed Under" to "Kategorie" but it does not show up on the site. The site is running the Metric theme version 1.0. Any ideas why it is not working?
add_filter( 'genesis_post_meta', 'sp_post_meta_filter' );
function sp_post_meta_filter($post_meta) {
if ( !is_page() ) {
$post_meta = '[post_categories before="Kategorie: "] [post_tags before="Tagged: "]';
return $post_meta;
}}
Need Website Customization or a Responsive CSS fix? Contact Me
Lynne emasai.comApril 20, 2014 at 12:17 pm #101488cdils
ParticipantHi there,
I just tried your code on a local install of Metric 1.0 and it worked fine.
You may have a plugin or some other customization in functions.php that is interfering. Have you added any other custom code to functions.php? If so, please share.
Otherwise, disable/re-active plugins one at a time until you find the conflict (Genesis Simple Edits is the first potential one that comes to mind, but not sure).
Cheers,
Carrie
Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. 🙂
I host a weekly WordPress-focused podcast called Office Hours. I tweet @cdils.
April 20, 2014 at 1:21 pm #101504emasai
ParticipantThanks for chiming in. These are the only two items I added, the first of which works:
add_filter( 'the_content_more_link', 'sp_read_more_link' ); function sp_read_more_link() { return '<a class="more-link" href="' . get_permalink() . '"> [Mehr lesen...]</a>'; } //* 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="Kategorie: "] [post_tags before="Tagged: "]'; return $post_meta; }}
I tried deactivating and reactivating plugins and still no change of language.
Need Website Customization or a Responsive CSS fix? Contact Me
Lynne emasai.comApril 20, 2014 at 1:26 pm #101508cdils
ParticipantIf you want to post a private reply with an admin login, I'll take a look.
Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. 🙂
I host a weekly WordPress-focused podcast called Office Hours. I tweet @cdils.
April 20, 2014 at 1:31 pm #101510emasai
ParticipantThis reply has been marked as private.June 12, 2014 at 3:02 pm #109510cdils
ParticipantHey Lynne,
Can you post the URL?Cheers,
Carrie
Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. 🙂
I host a weekly WordPress-focused podcast called Office Hours. I tweet @cdils.
June 12, 2014 at 3:48 pm #109518emasai
ParticipantHi Carrie,
Thanks for getting back to me so quickly, the URL is http://bit.ly/1n8auXQ
FYI, I did not build this site and they are using an old child theme Minimum. I was just asked to add some functionality, which unfortunately I cannot seem to do. I did suggest changing the whole site to German...
Need Website Customization or a Responsive CSS fix? Contact Me
Lynne emasai.com -
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.