-
AuthorPosts
-
Aratype Friend
Aratype
- Join date:
- August 2007
- Posts:
- 797
- Downloads:
- 41
- Uploads:
- 60
- Thanks:
- 194
- Thanked:
- 98 times in 6 posts
August 9, 2013 at 8:50 am #189589Is it possible to show “Category” in the place of “Comments” in “Featured Articles” only?
As you can imagine, comments will be shown in new articles after some days…
However, showing “Category” will give the reader an idea about the diversity of the content.
Thanking you in advance…
Ara
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
August 12, 2013 at 7:11 am #501911Hi Ara,
You can go to backend settings of this menu item: Featured Articles > Articles Options > Show Category & Link Category and set to ‘Show’ > Save & refresh your site and let me know how it goes 🙂
Aratype FriendAratype
- Join date:
- August 2007
- Posts:
- 797
- Downloads:
- 41
- Uploads:
- 60
- Thanks:
- 194
- Thanked:
- 98 times in 6 posts
August 12, 2013 at 2:51 pm #501986Thanks Saguaros,
Almost done ! The category is in the same line as the “Create Date”. Is it possible to have it in the same place as comments?
It will be a great add to the template to have the homogeneous visual aspect.
Thanking you in advance.
My site: makanez.net
Ara
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
August 15, 2013 at 10:32 am #502328Hi Ara,
Try opening file: templatesja_smashboardhtmlcom_contentfeatureddefault_item.php and move this snippet of code
[PHP]
<?php if ($params->get(‘show_category’)) : ?>
<dd class=”category-name”>
<?php $title = $this->escape($this->item->category_title);
$url = ‘<a href=”‘.JRoute::_(ContentHelperRoute::getCategoryRoute($this->item->catslug)).'”>’.$title.'</a>’;?>
<?php if ($params->get(‘link_category’) AND $this->item->catslug) : ?>
<?php echo JText::sprintf(‘SMART_COM_CONTENT_CATEGORY’, ‘<span>’.$url.'</span>’); ?>
<?php else : ?>
<?php echo JText::sprintf(‘SMART_COM_CONTENT_CATEGORY’, ‘<span>’.$title.'</span>’); ?>
<?php endif; ?>
</dd>
<?php endif; ?>
[/PHP]to underneath the code of comment view
[PHP]
<?php if($this->item->event->afterDisplayTitle && stripos($this->item->event->afterDisplayTitle, ‘count’) !== false): ?>
<dd style=”float: none;”>Â </dd>
<dd class=”comment-view”>
<?php echo $this->item->event->afterDisplayTitle; ?>
</dd>
<?php endif; ?>
[/PHP]Aratype FriendAratype
- Join date:
- August 2007
- Posts:
- 797
- Downloads:
- 41
- Uploads:
- 60
- Thanks:
- 194
- Thanked:
- 98 times in 6 posts
August 16, 2013 at 6:37 am #502426Thank you Saguaros,
I tried it but it does not work as you can see in: http://www.makanez.net
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
August 16, 2013 at 8:54 am #502450Hi again,
Try opening file: /templates/ja_smashboard/css/rtl/template.css, around line 2268
.article-info dd {
float: right;
margin-left: 22px; <<<< change to this value
margin-right: 0;
white-space: nowrap;
}
Hope it helps.
1 user says Thank You to Saguaros for this useful post
Aratype FriendAratype
- Join date:
- August 2007
- Posts:
- 797
- Downloads:
- 41
- Uploads:
- 60
- Thanks:
- 194
- Thanked:
- 98 times in 6 posts
August 16, 2013 at 9:28 am #502462OK, thanks, got it…
However, I had to modify the value…, I do not know if to be valid for all screens and Win/Mac
[PHP].article-info dd {
float: right;
margin-left: 30px; <<<< change to this value
margin-right: 0;
white-space: nowrap;
}[/PHP]Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
August 17, 2013 at 3:04 am #502531You can make a test with these devices, if it doesn’t work well, try using media jQuery to add specific css rule for them
-
AuthorPosts
This topic contains 8 replies, has 2 voices, and was last updated by Saguaros 11 years, 3 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum