Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • johntemp Friend
    #195661

    Hi,

    Thanks for the theme.

    I am having problems with using the “Magazine Home Layout” specifically to # Intro Articles alignment. It seems that first row layout is ok, but second there is a misalignment and only one article is showing, but third row is oky.

    Attached is any example of my problem.

    Any help would be appreciate?

    Thanks


    1. alignment-issue
    TomC Moderator
    #526171

    Can you provide the link to the page within the image you provided?

    Your site home page looks different than the image you posted.

    johntemp Friend
    #526172

    Hi Tom,

    Thanks for the reply.

    Here is the to the alignment issue.

    http://leafmagazine.ca/news

    In addition I’ve tried changing to # Intro articles and # Featured columns 3 and the issue is same.

    http://leafmagazine.ca/opinion

    thanks

    TomC Moderator
    #526173

    <em>@johntemp 415691 wrote:</em><blockquote>Hi Tom,

    Thanks for the reply.

    Here is the to the alignment issue.

    http://leafmagazine.ca/news

    In addition I’ve tried changing to # Intro articles and # Featured columns 3 and the issue is same.

    http://leafmagazine.ca/opinion

    thanks</blockquote>

    Can you do me a favor and (temporarily) set “Optimize CSS” to “Off” within your Template Manager–General settings?

    johntemp Friend
    #526174

    Hi Tom,

    Okay, Optimize CSS is off now.

    Thanks

    johntemp Friend
    #526531

    Hi Tom,

    Any other thoughts regarding the alignment issue?

    Thanks,

    Ninja Lead Moderator
    #526924

    <em>@johntemp 416123 wrote:</em><blockquote>Hi Tom,

    Any other thoughts regarding the alignment issue?

    Thanks,</blockquote>

    You can apply this fix:

    Open the templates/purity_iii/html/com_content/category/magazine_featured.php file,

    Change the position of this line of code: <?php $intro_index++; ?> from:


    <?php foreach ($intro as $item) : ?>
    <?php if($intro_index % $intro_columns == 0) : ?>
    <div class="row">
    <?php endif ?>
    <div class="magazine-item col-sm-<?php echo round((12 / $intro_columns)) ?>">
    <?php echo JLayoutHelper::render('joomla.content.intro_image', $item); ?>
    <?php echo JLayoutHelper::render('joomla.content.blog_style_default_item_title', $item); ?>

    <?php if ($useDefList && in_array('intro', $info_positions)) : ?>
    <aside class="article-aside clearfix">
    <?php echo JLayoutHelper::render('joomla.content.info_block.block', array('item' => $item, 'params' => $params, 'position' => 'above')); ?>
    </aside>
    <?php endif; ?>

    <?php echo $item->event->afterDisplayTitle; ?>
    <?php echo $item->event->beforeDisplayContent; ?>
    <?php echo $item->event->afterDisplayContent; ?>
    </div>
    <?php if(($intro_index % $intro_columns == 0 && $intro_index > 0) || $intro_index == $intro_count -1) : ?>
    </div>
    <?php endif ?>
    <?php $intro_index++; ?>
    <?php endforeach; ?>

    To


    <?php foreach ($intro as $item) : ?>
    <?php if($intro_index % $intro_columns == 0) : ?>
    <div class="row">
    <?php endif ?>
    <div class="magazine-item col-sm-<?php echo round((12 / $intro_columns)) ?>">
    <?php echo JLayoutHelper::render('joomla.content.intro_image', $item); ?>
    <?php echo JLayoutHelper::render('joomla.content.blog_style_default_item_title', $item); ?>

    <?php if ($useDefList && in_array('intro', $info_positions)) : ?>
    <aside class="article-aside clearfix">
    <?php echo JLayoutHelper::render('joomla.content.info_block.block', array('item' => $item, 'params' => $params, 'position' => 'above')); ?>
    </aside>
    <?php endif; ?>

    <?php echo $item->event->afterDisplayTitle; ?>
    <?php echo $item->event->beforeDisplayContent; ?>
    <?php echo $item->event->afterDisplayContent; ?>
    </div>
    <?php $intro_index++; ?>
    <?php if(($intro_index % $intro_columns == 0) || $intro_index == $intro_count) : ?>
    </div>
    <?php endif ?>
    <?php endforeach; ?>

    johntemp Friend
    #527096

    Hi Ninja,

    Thanks for the assist. That seems to have solved the alignment issue, but now the alignment issue has moved to the last article. See attachment. ‘alignment-issue-2.png’

    ————-
    Actually as I was looking at the alignment issue, it seems that my sidebar 2 has also completely moved.

    See attachment ‘alignment-issue-3’.png

    I am going to change <?php $intro_index++; ?> back to original spot for now.

    Any other suggestions?

    Thanks


    1. alignment-issue-2
    2. alignment-issue-3
    johntemp Friend
    #527098

    Hi Ninja,

    Sorry, I just on editing my message. But looking at what you had original wrote regarding the position of <?php $intro_index++; ?> I did change that and had the last alignment issue along with side-2 issue. However, looking at you code suggestion, you also had the following line <?php if(($intro_index % $intro_columns == 0) || $intro_index == $intro_count) : ?> which i had change too from the original and everything seems to be working now.

    Alignment issue is correct and side-2 is showing where it should be.

    Thanks again for your help and was it correct to change the <?php if(($intro_index % $intro_columns == 0) || $intro_index == $intro_count) : ?> too?

    Ninja Lead Moderator
    #527114

    I have checked both links on your site: http://leafmagazine.ca/news and http://leafmagazine.ca/opinion they are working fine. Let me know if you still need our assistance on this.

    johntemp Friend
    #527282

    Hi Ninja,

    Thank you for the confirmation. I appreciate your help.

    Cheers,

    John

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

This topic contains 11 replies, has 3 voices, and was last updated by  johntemp 10 years, 7 months ago.

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