Forums

[Plugin: SidePosts Widget] A thumbnail image is really close to text (5 posts)

  1. Valiant
    Member
    Posted 2 years ago #

    I need to make the text be atleast 1-2px away from the thumbnail images, how can I do that? And while I'm here I might aswell ask how can I translate the "Read full post" bit?

    http://spredas.lt/?p=126

  2. Txanny
    Member
    Posted 2 years ago #

    Translations are done with the PO files on the lang folder. I think you are not using a provided language, so, you have to create and translate a PO and MO file by yourself. (And if you want your translation to be included in next version, you can contact me by using the contact form on http://alkivia.org).

    About the image margin, it looks like your theme does not provide styles for sidebar images, but you can set it by adding this on your theme's style.css file:

    #sidebar img.alignleft {
        margin-right: 5px;
    }
  3. smalltowngp
    Member
    Posted 2 years ago #

    I have the same issue.

    I am using thesis theme. Where can I place the code? I tried in the the custom.css, but it did not work out.

    My site: http://www.smalltowngp.com

    [caution: there are some unpleasant photo at the site]

    Thanks

  4. smalltowngp
    Member
    Posted 2 years ago #

    I have decided as a temporary measure to hack the code to get it working.

    I have added this as part of the img codes ..

    In line 373 of widgets.php add this in between "img", "src"

    style="padding:8px; background: white; border: none"

    Changed from:

    $thumbnail = '<img src="'. $thumb[0] .'" width="'. $settings[$widget_id]['thumbnail'] .'" height="'. $thumb_h .'" class="alignleft" />';

    to

    $thumbnail = '<img style="padding:8px; background: white; border: none" src="'. $thumb[0] .'" width="'. $settings[$widget_id]['thumbnail'] .'" height="'. $thumb_h .'" class="alignleft" />';

    and make anther change to remove the arhive line.

  5. Txanny
    Member
    Posted 2 years ago #

    It's more easy if you change the CSS styles on the style.css file, as stated above. Or to create your own CSS description by including the widget ID if you need other pictures on the sidebar.

Topic Closed

This topic has been closed to new replies.

About this Topic