New Landing How can we help? Atelier How to re-order testimonials so the image appears on top before the body text

Viewing 4 posts - 1 through 4 (of 4 total)
  • Posted in: Atelier
  • #243940
    designbyremedy
    Member
    Post count: 9

    How can you re-order the testimonial in the sidebar so that it appears in the following order? (image, body, name) I didn’t see any options when creating a testimonial on how to re-order these.

    http://dev.flaghomes.com/about-us/

    Preferred order:
    1) Image
    2) Body of Testimonial
    3) Name of the author of testimonial

    Currently, it’s displaying in this order:
    1) Body of Testimonial
    2) Image
    3) Name of the author of testimonial

    Appreciate any help on addressing this.

    Attachments:
    You must be logged in to view attached files.
    #243954
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    It need customization in testimonial.php file at \wp-content\plugins\swift-framework\swift-framework\includes\page-builder\shortcodes
    .
    Find this code:-

     $items .= '<li class="testimonial">';
                    $items .= '<div class="testimonial-text">' . do_shortcode( $testimonial_text ) . '</div>';
                    $items .= '<div class="testimonial-cite">';
                    if ( $testimonial_image ) {
                        $items .= '<img src="' . $testimonial_image[0] . '" width="' . $testimonial_image[1] . '" height="' . $testimonial_image[2] . '" alt="' . $testimonial_cite . '" />';
                        $items .= '<div class="cite-text has-cite-image"><span class="cite-name">' . $testimonial_cite . '</span><span>' . $testimonial_cite_subtext . '</span></div>';
                    } else {
                        $items .= '<div class="cite-text"><span class="cite-name">' . $testimonial_cite . '</span><span>' . $testimonial_cite_subtext . '</span></div>';
                    }

    Change with:-

     $items .= '<li class="testimonial">';
                    
                    $items .= '<div class="testimonial-cite">';
                    if ( $testimonial_image ) {
                        $items .= '<img src="' . $testimonial_image[0] . '" width="' . $testimonial_image[1] . '" height="' . $testimonial_image[2] . '" alt="' . $testimonial_cite . '" />';
    
                    } 
    $items .= '<div class="testimonial-text">' . do_shortcode( $testimonial_text ) . '</div>';
                        $items .= '<div class="cite-text has-cite-image"><span class="cite-name">' . $testimonial_cite . '</span><span>' . $testimonial_cite_subtext . '</span></div>';
    
    #244290
    designbyremedy
    Member
    Post count: 9

    Thanks Mohammad, this works.

    #244335
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You most welcome and glad to help you.
    Thanks
    Mohammad

Viewing 4 posts - 1 through 4 (of 4 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