-
AuthorPosts
-
johntemp Friend
johntemp
- Join date:
- March 2014
- Posts:
- 22
- Downloads:
- 0
- Uploads:
- 9
- Thanks:
- 10
- Thanked:
- 1 times in 1 posts
March 10, 2014 at 8:29 pm #195661Hi,
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
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
March 10, 2014 at 8:51 pm #526171Can you provide the link to the page within the image you provided?
Your site home page looks different than the image you posted.
johntemp Friendjohntemp
- Join date:
- March 2014
- Posts:
- 22
- Downloads:
- 0
- Uploads:
- 9
- Thanks:
- 10
- Thanked:
- 1 times in 1 posts
March 10, 2014 at 8:55 pm #526172Hi Tom,
Thanks for the reply.
Here is the to the alignment issue.
In addition I’ve tried changing to # Intro articles and # Featured columns 3 and the issue is same.
http://leafmagazine.ca/opinion
thanks
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
March 10, 2014 at 8:57 pm #526173<em>@johntemp 415691 wrote:</em><blockquote>Hi Tom,
Thanks for the reply.
Here is the to the alignment issue.
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 Friendjohntemp
- Join date:
- March 2014
- Posts:
- 22
- Downloads:
- 0
- Uploads:
- 9
- Thanks:
- 10
- Thanked:
- 1 times in 1 posts
March 10, 2014 at 9:00 pm #526174Hi Tom,
Okay, Optimize CSS is off now.
Thanks
johntemp Friendjohntemp
- Join date:
- March 2014
- Posts:
- 22
- Downloads:
- 0
- Uploads:
- 9
- Thanks:
- 10
- Thanked:
- 1 times in 1 posts
March 13, 2014 at 2:52 am #526531Hi Tom,
Any other thoughts regarding the alignment issue?
Thanks,
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
March 17, 2014 at 9:16 am #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; ?>
1 user says Thank You to Ninja Lead for this useful post
johntemp Friendjohntemp
- Join date:
- March 2014
- Posts:
- 22
- Downloads:
- 0
- Uploads:
- 9
- Thanks:
- 10
- Thanked:
- 1 times in 1 posts
March 18, 2014 at 5:48 am #527096Hi 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
-
johntemp Friend
johntemp
- Join date:
- March 2014
- Posts:
- 22
- Downloads:
- 0
- Uploads:
- 9
- Thanks:
- 10
- Thanked:
- 1 times in 1 posts
March 18, 2014 at 6:14 am #527098Hi 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?
1 user says Thank You to johntemp for this useful post
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
March 18, 2014 at 8:02 am #527114I 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.
1 user says Thank You to Ninja Lead for this useful post
-
AuthorPosts
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, 8 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum