Features

Featured image

7mo agoIn Review

We need featured image on post / page + post and page meta widget in elementor or short code we can place them anywhere we want

1 comment

  1. Anonymous7mo ago

    Hello,

    By default there are no such shortcodes but you may add next snippet to get reach that :)
    
1/ Go to your child-theme/functions.php
    2/ add next code snippet 
add_shortcode('etheme_featured_image', function($atts) {
    $atts = shortcode_atts(
    array(
    'size' => 'medium',
    'attr' => '',
    ), $atts );
    $id = get_the_ID();
    if ( has_post_thumbnail($id) ) {
    echo get_the_post_thumbnail($id, $atts['size'], $atts['atts']);
    }
    });

    Example: https://prnt.sc/76upIKMAfoSz
    3/ Edit post/page or anything you need to have featured image and make sure it has one -> https://prnt.sc/6DKh0LxoA9Hh
    4/ In builder you may add next shortcode 
[etheme_featured_image size="large"] 
like you may see here -> https://prnt.sc/eeN3tYRvgqCp 


    
I hope you got the answer good and be happy of our support !

    P.S. All best for best ones !


    Regards, Jack Richardson