Hi,
Try this in your child theme functions.php
add_action( 'init', 'remove_storefront_post_meta' );
function remove_storefront_post_meta() {
remove_action( 'storefront_post_header_before', 'storefront_post_meta', 10 );
}
add_action( 'storefront_post_header_after', 'storefront_post_meta', 10 );
Hi @xsjado,
As @neookano posted, that snippet should work out just fine to first remove the post meta from showing before the post title to then adding it back after the psot title. 🙂
If I could nitpick at all, I’d only clean up the snippet to add a few comments, reorder one line, and set the priority that adds the action back to a later number instead of both running at the same priority.
// Removes the post meta from before post title
function remove_storefront_post_meta() {
remove_action( 'storefront_post_header_before', 'storefront_post_meta', 10 );
}
add_action( 'init', 'remove_storefront_post_meta', 10 );
// Re-adds post meta to after post title
add_action( 'storefront_post_header_after', 'storefront_post_meta', 15 );
Either way definitely works! Thanks a ton @neookano!
-
This reply was modified 6 years, 11 months ago by
Ryan Ray.
-
This reply was modified 6 years, 11 months ago by
Ryan Ray.
Thread Starter
Xsjado
(@xsjado)
Thank you so much @neookano and @ryanr14, it works!