Forums

[resolved] Image Caption Easy Impacts Surrounding Text (2 posts)

  1. jimbabwe
    Member
    Posted 1 year ago #

    I noticed with my install of WP 2.3.2, the image code impacted styling of text on the page. Looking at the code of the rendered page, I noticed the <p></p> tags ended up surrounding the inserted easy image code and text on the page got compacted.

    I added a closing </p> (just before the div class) and opening <p> (just after the last </div> in the image-caption-easy.php file:

    //Now replace image code with new div-ed image code.
    $to_replace_with = "</p><div class=\"imagecaptioneasy imagecaptioneasy_" . $top_of_page.$align . "\" style=\"width:" . $width . "px;\">" . $image_code . "<br style=\"clear:both\" /><span>" . $caption_text . "</span></div><p> ";

    This solved the problem.

    Now I need to figure out how to get image capture easy working for headlines images on the front page of the site...

    http://wordpress.org/extend/plugins/image-caption-easy/

  2. contentspring
    Member
    Posted 1 year ago #

    This was not the problem, it was a conflict with the css of his theme 'Newspaperize'.

    This plugin uses css to style the look of the image captions, sometimes the css in your theme already has css which will conflict. You may have to edit your themes style sheet (css) file to work properly with the captions css. Here are some known themes that have conflicting css and fixes for them (note, check your particular themes version before using):

    * Aspire
    * Breaking News
    * Cutline
    * Newspaperize

    Things to check for within your theme (if it’s not listed above) are the following css attributes: img, p, span.

Topic Closed

This topic has been closed to new replies.

About this Topic