New Landing How can we help? Atelier Swift Framework Portfolio Grid Widget

Viewing 9 posts - 1 through 9 (of 9 total)
  • Posted in: Atelier
  • #191690
    NiO
    Member
    Post count: 233

    Hi Atelier,

    The Swift Framework Portfolio Grid Widget shows a grid of images that link to the respective portfolio pages only. I expected it to respect the Thumbnail Link Type / Thumbnail link URL, but it seems that it doesn’t. That doesn’t make sense as it is not consistent with other elements that use the portfolio thumbs.

    Now I am hoping it is a bug that will be fixed instead of a design choice ๐Ÿ™‚

    The same comment is valid for the Swift Recent Portfolio Widget …

    Thanks,
    Johan

    #191853
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    This option is working fine for me? Are you sure you have set the thumbnail to link to an external url?

    – Kyle

    #192086
    NiO
    Member
    Post count: 233

    Hi Kyle,

    Pretty sure I did, but will double-check this evening!

    Cheers,
    Johan

    #192092
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    ok. let us know then.
    -Rui

    #192115
    NiO
    Member
    Post count: 233
    This reply has been marked as private.
    #192132
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779
    This reply has been marked as private.
    #192182
    NiO
    Member
    Post count: 233

    Thanks, that would be great Rui and a nice addition to the theme of course ๐Ÿ™‚

    #192250
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    No problem

    #192501
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Can you find this piece of code around the line 72.

    
                            if ( ! $thumb_image ) {
                                $thumb_image   = get_post_thumbnail_id();
                                $thumb_img_url = wp_get_attachment_url( $thumb_image, 'full' );
                            }
    
                            $image     = sf_aq_resize( $thumb_img_url, 85, 85, true, false );
                            $image_alt = esc_attr( sf_get_post_meta( $thumb_image, '_wp_attachment_image_alt', true ) );

    and replace by this one

    
                            if ( ! $thumb_image ) {
                                $thumb_image   = get_post_thumbnail_id();
                                $thumb_img_url = wp_get_attachment_url( $thumb_image, 'full' );
                            }
    
                            $thumb_link_type  = sf_get_post_meta( get_the_ID(), 'sf_thumbnail_link_type', true );
                            $thumb_link_url   = sf_get_post_meta( get_the_ID(), 'sf_thumbnail_link_url', true );
    
                            if ( $thumb_link_type == "link_to_url" ) {
                                $post_permalink = $thumb_link_url;
                            } 
    
                            $image     = sf_aq_resize( $thumb_img_url, 85, 85, true, false );
                            $image_alt = esc_attr( sf_get_post_meta( $thumb_image, '_wp_attachment_image_alt', true ) );

    -Rui

Viewing 9 posts - 1 through 9 (of 9 total)

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

License required for one of the following items
Login and Registration Log in · Register