WordPress.org

Ready to get started?Download WordPress

Forums

HMS Testimonials
[resolved] Image Align Left (5 posts)

  1. jeffreytp
    Member
    Posted 8 months ago #

    How do we align the image left when the testimonials are displayed?
    <p style="text-align:left;">

    Also on the display page, how do we make the persons name bold or italicized?

    When using DIV option, there needs to be a line space between each testimonial. Right now there is no way of knowing which name goes with which testimonial.

    These should be options in the plugin admin.

    http://wordpress.org/plugins/hms-testimonials/

  2. Jeff K
    Member
    Plugin Author

    Posted 8 months ago #

    You can use CSS for all of this which is why there aren't options for it.

  3. jeffreytp
    Member
    Posted 8 months ago #

    would you be able to tell me which CSS document to edit and what to add?

  4. jeffreytp
    Member
    Posted 8 months ago #

    Looks like the changes have to be made in the admin.php for the plugin:

    Wrap text around image:
    edit admin.php for plugin

    go to line 3681:

    $builder .= apply_filters('hms_testimonials_system_image', '<img class="image" src="'.$image_url.'" style="height:'.$height.';width:'.$width.';" />', $testimonial);

    change to:

    $builder .= apply_filters('hms_testimonials_system_image', '<img class="alignleft" src="'.$image_url.'" style="height:'.$height.';width:'.$width.';" />', $testimonial);

  5. Jeff K
    Member
    Plugin Author

    Posted 8 months ago #

    In your themes style.css

    .hms-testimonial-container img.image { float:left; }

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.