[Resolved] Moving post meta (date updated) below featured image is not working after 3.0?

Home Forums Support [Resolved] Moving post meta (date updated) below featured image is not working after 3.0?

Home Forums Support Moving post meta (date updated) below featured image is not working after 3.0?

  • This topic has 3 replies, 2 voices, and was last updated 1 year ago by Tom.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1476489
    Roy

    I always moved the meta (date last updated on) to Below the featured image using this recommended code in child Functions:

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

    But since updating to 3.0 this shows 2 dates – 1 above and 1 below the featured image
    i.e. the add_action works fine but the remove_action no longer removes the meta from above the featured image…

    Happens using flexbox or floats. Any ideas – does the generate_after_entry_title need changing to something new?
    Thanks

    #1476867
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Try this instead:

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

    Let me know πŸ™‚

    #1477212
    Roy

    Hi Tom, you’re a star – changing it to ‘wp’ worked perfectly πŸ™‚

    Thanks for the very quick help.

    Ps my scores on Page Speed and GTmetrix have both gone up since the new version and switching to Flexbox – nice work!

    #1477220
    Tom
    Lead Developer
    Lead Developer

    You’re welcome!

    That’s great to hear! πŸ™‚

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