New Landing How can we help? Themeforest Theme Support Dante Use custom excerpt else where

Viewing 6 posts - 16 through 21 (of 21 total)
  • Posted in: Dante
  • #54826
    parcyvall
    Member
    Post count: 143

    Hi, the code does not seem to work.

    kind regards
    Simon

    #54831
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    HI,
    Please use code like that .

    global $post;
    $postID = $post->ID;
    $media_image = get_post_thumbnail_id($postID);
    if ($media_image) {
    $image_id = $media_image;
    $media_image_url = wp_get_attachment_url( $media_image, 'full' );
    $detail_image = aq_resize( $media_image_url, 150,150, true, false);// you can change 150 to any height and width 
    if ($detail_image) {
    $image = '<img itemprop="image" src="'.$detail_image[0].'" width="'.$detail_image[1].'" height="'.$detail_image[2].'" alt="'.$image_alt.'" />';
    }
    echo $image;
    }

    Thanks

    #54849
    parcyvall
    Member
    Post count: 143
    This reply has been marked as private.
    #54853
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please use your simple code the_post_thumbnail to get image . Our code need more customization . I’m afraid it’s not built into the theme and need to modified especially for you. We always ready to help you with this customization but we are only able to provide support for basic theme issues and bug fixes. We do provide support for small customizations but unfortunately this request is beyond that. Please see our general policy and guidelines for more info. You could also hire a developer to help you with your customizations.

    Thank you for understanding!
    Cheers!

    With Best Regards
    Swift Ideas

    #54858
    parcyvall
    Member
    Post count: 143

    Sure, I understand. Thanks anyway Mohammad!

    Kind regards
    Simon

    #54966
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Thanks Mohammad

Viewing 6 posts - 16 through 21 (of 21 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register