Community Forums › Forums › Archived Forums › Design Tips and Tricks › Can't remove entry meta
Tagged: entry-meta, remove entry meta
- This topic has 17 replies, 4 voices, and was last updated 11 years ago by Genesis Developer.
-
AuthorPosts
-
January 5, 2014 at 11:32 pm #83520migrationologyMember
I’m trying to remove the “tags” and “categories” at the bottom of my posts – the meta entry.
I’ve read through most of the other threads on removing it and have tried just about every combination of code in my functions.php, and it sill won’t remove.
I’ve tried:
//* Remove the entry meta in the entry footer (requires HTML5 theme support) remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
and
//* Remove the entry meta in the entry header (requires HTML5 theme support) remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
But no luck.
Here’s an article on my site: http://www.eatingthaifood.com/2014/01/rasa-khas-indonesian-restaurant-in-bangkok/
I'm using Ally theme from Appfinite.
Any ideas on how to remove it? Thank you for your help!
http://www.eatingthaifood.com/blog/January 6, 2014 at 7:56 am #83574Brad DaltonParticipantYou could use CSS instead.
.entry-meta { display: none; }
Paste the CSS code at the end of your child themes style.css file.
January 6, 2014 at 10:43 am #83601SummerMemberHave you tried adding those calls to a single.php for your posts?
WordPress / Genesis Site Design & Troubleshooting: A Touch of Summer | @SummerWebDesign
Slice of SciFi | Writers, After DarkJanuary 6, 2014 at 10:59 am #83603migrationologyMemberThanks Brad,
But using css, would that just hide them, but they'd still actually be there? Or would that completely remove them?
I'm trying to remove them mostly because I have too many internal links on my site, mostly from tags and categories.
January 6, 2014 at 11:26 am #83607migrationologyMemberThanks Summer, haven't tried that yet, but looking in my files I don't have a single.php (I just switched themes). I'll try to find another place to put it so it pertains to single posts.
January 6, 2014 at 11:55 am #83614Genesis DeveloperMembercan you try this code once? put this in your functions.php file
remove_action( 'genesis_after_post_content', 'genesis_post_meta' );
January 6, 2014 at 12:26 pm #83619migrationologyMemberNo, that still doesn't work...
January 6, 2014 at 12:36 pm #83620Genesis DeveloperMemberyour theme have home.php file? can you put the code at pastebin.com and share the link here? we will check the code.
January 6, 2014 at 12:41 pm #83622migrationologyMemberYes I have a home.php.
Here's the pastebin: http://pastebin.com/XbEVAkxz
January 6, 2014 at 12:55 pm #83623Genesis DeveloperMembersorry i gave you wrong file name. Can you give the code of functions.php file?
January 6, 2014 at 12:59 pm #83624SummerMemberYou can create a single.php, the same way you'd create a template for home.php or category.php. The only thing you would put in it would be that remove_action.
WordPress / Genesis Site Design & Troubleshooting: A Touch of Summer | @SummerWebDesign
Slice of SciFi | Writers, After DarkJanuary 6, 2014 at 12:59 pm #83625migrationologyMemberNo problem.
Here's the functions.php: http://pastebin.com/wZtJC8ug
January 6, 2014 at 1:05 pm #83628Genesis DeveloperMemberOk . Now remove this line from functions.php file.
remove_action( 'genesis_after_post_content', 'genesis_post_meta' );
And add this code
remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
If you are using "Genesis Simple Edit" plugin then disable it.
January 6, 2014 at 1:16 pm #83629migrationologyMemberGreat, that code worked!
Do I need to disable the "genesis simple edit"? I have some info in the footer credits that I'm using with that plugin.
January 6, 2014 at 1:21 pm #83630Genesis DeveloperMemberif code is working then you do not need to disable the plugin. From Simple Edit page you can remove the shortcode for post meta and that will also work.
January 6, 2014 at 1:24 pm #83631Genesis DeveloperMemberusing the php code you can overwrite the Copyright text. here is the doc http://my.studiopress.com/snippets/footer/
January 6, 2014 at 1:28 pm #83632migrationologyMemberGreat, thank you so much for your help!
January 6, 2014 at 1:35 pm #83635Genesis DeveloperMemberyou are welcome. Please mark it as [RESOLVED]
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.