[Support request] Remove post meta in archives and pages

Home Forums Support [Support request] Remove post meta in archives and pages

Home Forums Support Remove post meta in archives and pages

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2358247
    Jesus

    add_action( ‘wp’, function() {
    remove_action( ‘generate_after_entry_title’, ‘generate_post_meta’ );
    add_action( ‘generate_after_entry_header’, ‘generate_post_meta’, 15 );
    } );

    Please how remove the post meta in pages and archives? I want only in single posts.

    Thanks for all.

    #2358538
    Fernando
    Customer Support

    Hi Jesus,

    I responded to your original topic. Can you try that first?

    #2358803
    Jesus

    Hello
    It works, but it still shows in the code of pages:

    <div class="entry-meta"></div>

    Thanks.

    #2360930
    Fernando
    Customer Support

    By default, other pages includes that. Can you share a link to a sample page you’re referring to?

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.