[Support request] Move Featured image to the left of Post title on blog layout in mobile?

Home Forums Support [Support request] Move Featured image to the left of Post title on blog layout in mobile?

Home Forums Support Move Featured image to the left of Post title on blog layout in mobile?

  • This topic has 5 replies, 2 voices, and was last updated 4 years ago by David.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1228260
    Gulshan

    Hello,

    Tried this below code but I would like to implement only for mobile device.

    add_action( 'wp', 'tu_move_featured_image' );
    function tu_move_featured_image() {
        remove_action( 'generate_after_entry_header', 'generate_post_image' );
        add_action( 'generate_before_content', 'generate_post_image' );
    }

    Refer to the screenshots for mobile layout:

    https://drive.google.com/file/d/15hpVlihVMO5MhG3V_VCPX7i4_j0R85TS/view?usp=sharing

    Kindly help me please?

    Thanks

    #1228352
    David
    Staff
    Customer Support

    Hi there,

    can you remove the filter and share a link to your site so i can take a look.
    You can edit your original topic and use the Site URL field to share the link privately.

    #1228850
    Gulshan

    Just Updated the topic with site link & screenshots.

    #1229155
    David
    Staff
    Customer Support

    Try adding this CSS:

    @media(max-width: 768px) {
        .entry-summary {
            display: none;
        }
    
        body:not(.single) .inside-article {
            display: grid;
            grid-template-columns: 40% 60%;
        }
    
        .post-image,
        .entry-header {
            grid-row: 1;
        }
    
        .post-image {
            grid-column: 1;
            margin-top: 0 !important;
            margin-bottom: 0 !important;
            margin-right: 2em !important;
        }
    }
    #1229464
    Gulshan

    Brilliant, thank you very much.

    #1229586
    David
    Staff
    Customer Support

    Awesome – glad to be of help 🙂

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