• Resolved stereokill

    (@stereokill)


    Hi guys,

    I’m using JBJ’s OpenBook theme (with some slight modifications) on my site Stereokill.net. I’ve got the Thumbnails for Excerpts plugin installed, and it works beautifully on the home-page (images are using the correct margin, border, padding settings, etc.)

    However, on the category archive pages (for example, this one), those image class settings are not applied at all. In the plugin settings, thumbnails are set to use a class called “img.left”:

    img.left {
    padding: 4px;
    margin: 0 7px 2px 0;
    display: inline;
    }

    Can you possibly tell me why this may be happening?

    Interestingly, after having some teething problems getting the front-page thumbnails to format properly, I found I had to modify the actual CSS relating to the page element (for example, the right column):

    .feature img, #rightcol img {
        border:1px solid #000;
        padding:1px;
        float:left;
        margin:3px 10px 4px 0;
        display:inline
    }

    It was this, not the settings in the TfE plugin, that got it to work. But I have no idea how to work that on the archive page.

    Any suggestions would be great, this is my number one bug with the site currently.

    Thanks,

    M.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter stereokill

    (@stereokill)

    Anyone have a clue on this, by any chance?

    Try by doing the following steps:

    1. Change line #20 of plugin file (thumbnailforexcerpts.php) to default which is:

    define("TFE_CLASS","imgtfe"); //the class for the thumbnail images; you
    can change it or use this class in you CSS file

    2. Define imgtfe class in style.css of your wordpress theme.

    .imgtfe {
        border:1px solid #000;
        padding:1px;
        float:left;
        margin:3px 10px 4px 0;
        display:inline
    }
    Thread Starter stereokill

    (@stereokill)

    Hi,

    That seems to have resolved the spacing issue on the archive pages, which is great. However, they aren’t showing the “border” parameter. Have you any idea why this might be?

    Thanks for your help, by the way.

    M.

    Hi,

    Try by changing .imgtfe to .imgtfe, .entry .imgtfe in above mentioned css class name.

    Thanks
    Kapil Jain

    Thread Starter stereokill

    (@stereokill)

    Hi again,

    I’ve changed that entry in style.css – should I also be changing the plugin options? As it stands, solely having updated the stylesheet, it doesn’t seem to have changed anything. Any suggestions?

    Thanks,

    M

    Thread Starter stereokill

    (@stereokill)

    Ah, it seems to have worked now, which is great. Thanks a lot for your help!

    One last small question: the PHP used on the archive pages inserts the date and a dividing line between each article in the chronological list. Is it possible, via CSS, to force the divider to come below the thumbnail? As it stands, with some larger (particularly portrait) thumbnails, the bottom of the image overlaps the divider and looks a little messy. It’s not a big problem, but it’s slightly annoying.

    Currently, I have a slightly half-hearted fix in place where I have put a series of line-breaks after the excerpt to artificially replicate the space.

    Thanks,

    M

    anthonyportal

    (@anthonyportal)

    Hi all,
    May i know How to define (“TFE_CLASS”,”imgtfe”); in (thumbnailforexcerpts.php)

    my (thumbnailforexcerpts.php) show line 20 as following

    Version: 2.1
    
    <<here is my line 20>>
    
    CHANGELOG
    
    See readme.txt

    My i know, im i correct to put in the above mentioned code “define(“TFE_CLASS”,”imgtfe”);” in my line 20

    Thank you.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Unable to change image class using Thumbnails for Excerpts’ is closed to new replies.