test
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • synapsis Friend
    #159897

    I have a website using JA Lead that displays content in single article layout exactly as I want it to. When I display those same articles in category blog layout, the float: left that I put on the pictures does not seem to be working. Rather than wrapping the text around the right side and bottom of the image, it simply shows the picture, with all of the copy appearing below it.

    I want the article and blog layouts of each article to be the same, simply back to back for the category blog layout. I’ve already set the category blog layout to single column and leading only… so now I just need to get the copy to wrap correctly.

    Examples can be found at:

    http://www.worstgig.com/stories-artist/q-through-z/tool
    (The single article above is how I want them to look, with the text wrapping around the band image.)

    http://www.worstgig.com/stories-by-category/violence
    (The blog category layout above shows how the text is appearing below the image, rather than wrapping around the band image.)

    The left alignment of the picture, as well as any margins or padding I assign it seem to carry over to the category blog layout, but the float does not.

    Please tell me how I can tell Joomla to use the same alignment and float css on both views.

    Thank you!
    synapsis

    Ninja Lead Moderator
    #375795

    to fix this, you need to change code a little, open
    templatesja_leadhtmlcom_contentcategoryblog_item.php
    change

    <div class="img-desc clearfix">
    <?php echo $image; ?>
    </div>

    to:

    <div>
    <?php echo $image; ?>
    </div>

    that should make it work

    synapsis Friend
    #375823

    Bump. Please address this issue soon.

    synapsis Friend
    #375857

    Found it… apparently a clearfix attribute was being assigned to the blog category layout images, forcing a clear:right, whether I wanted one or not. This was happening in the blog_item.php file, just in case this helps anyone else.

    All I did was remove the clearfix, and it works perfectly now.

    Moderators may consider this thread closed.

Viewing 4 posts - 1 through 4 (of 4 total)

This topic contains 4 replies, has 2 voices, and was last updated by  synapsis 13 years, 9 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum