Remove post meta from single blog page
-
I’m looking that the template files and the thread at https://www.ads-software.com/support/topic/how-to-remove-post-meta-from-single-post and cannot figure how to remove post meta. Like the OP in this thread, I am using a child theme.
I thought I understood the response and added a conditional for only single pages of a custom post type.
add_action( 'init', 'ltg_remove_meta' ); function ltg_remove_meta() { if ( is_singular('li_author') ) { remove_action( 'storefront_single_post', 'storefront_post_meta', 20 ); } }
Even without the conditional, the action does not work.
What am I doing wrong?
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘Remove post meta from single blog page’ is closed to new replies.