-
AuthorPosts
-
Nam Nguyen Phi Friend
Nam Nguyen Phi
- Join date:
- September 2014
- Posts:
- 248
- Downloads:
- 3
- Uploads:
- 35
- Thanks:
- 20
- Thanked:
- 57 times in 29 posts
March 14, 2014 at 1:19 am #195771How to disable the share function in the article and on the main page?
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
March 14, 2014 at 5:28 am #526674@namnp129
If you want to disable AddThis sharing from site you can disable it from Template Manager option>ja magz>General.And If you want to disable it only from article page go to /templates/ja_magz/html/com_content/article/deafult.php
and remove this code[PHP]
<!– AddThis Button BEGIN –>
<?php if($tplparams->get(‘tpl_addthis_share’, 1)) : ?>
<a class=”addthis_button_compact” addthis:url=”<?php echo JUri::getInstance()->toString(array(‘scheme’, ‘host’, ‘port’)) . $this->item->readmore_link ?>” addthis:title=”<?php echo $this->escape($this->item->title) ?>”> <?php echo JText::_(‘TPL_TEXT_SHARE’) ?> <i class=”icon-share”></i></a>
<?php endif ?>
<!– AddThis Button END –>[/PHP]
Hope it helps:)1 user says Thank You to Pankaj Sharma for this useful post
Nam Nguyen Phi FriendNam Nguyen Phi
- Join date:
- September 2014
- Posts:
- 248
- Downloads:
- 3
- Uploads:
- 35
- Thanks:
- 20
- Thanked:
- 57 times in 29 posts
March 14, 2014 at 6:20 am #526682I did it. Thanks so much !
p/s:How to disable layout-switch , hit and categories main page?
-
Pankaj Sharma Moderator
Pankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
March 14, 2014 at 6:56 am #526686You can hide the category name from your Main page Menu options >article options>show category Hide
If you want to remove layout switch from featured Article menu type
Go /templates/ja_magz/html/com_content/featured/default.php
Comment this code [PHP]<!–<ul class=”tpl-layout-switch”>
<li class=”to-list”><i class=”icon-th-list”></i></li>
<li class=”to-grid active”><i class=”icon-th-large”></i></li>
</ul>–>[/PHP]
Hope it Helps:)1 user says Thank You to Pankaj Sharma for this useful post
Nam Nguyen Phi FriendNam Nguyen Phi
- Join date:
- September 2014
- Posts:
- 248
- Downloads:
- 3
- Uploads:
- 35
- Thanks:
- 20
- Thanked:
- 57 times in 29 posts
March 14, 2014 at 7:38 am #526691Thank you very much. If I want to disable Category in Module and display Category in Component, what should I do?
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
March 14, 2014 at 7:41 am #526692can you explain it with a screenshot in which module and component you want to disable/display it
1 user says Thank You to Pankaj Sharma for this useful post
Nam Nguyen Phi FriendNam Nguyen Phi
- Join date:
- September 2014
- Posts:
- 248
- Downloads:
- 3
- Uploads:
- 35
- Thanks:
- 20
- Thanked:
- 57 times in 29 posts
March 14, 2014 at 8:02 am #526699Thank so much !
-
Pankaj Sharma Moderator
Pankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
March 14, 2014 at 4:01 pm #526757<em>@namnp129 416325 wrote:</em><blockquote>
Thank so much !</blockquote>
1. Latest section in Main content body. If you want to enable it You can show the category name from your Main page Menu options >article options>show category >Show
2. For Popular Module > Open /templates/ja_magz/html/mod_articles_popular/feature.php and comment out the following code
[PHP]
<?php /*if ($iparams->get(‘show_category’)) :?>
<?php
$category = $categories->get($item->catid);
$catparams = MagzHelper::getParam($category);
?>
<span class=”category-name <?php echo $catparams->get(‘tpl_cat_color’) ?>”>
<a href=”<?php echo JRoute::_(ContentHelperRoute::getCategoryRoute($item->catid));?>”>
<?php echo $item->category_title; ?>
</a>
</span>
<?php endif;*/ ?>[/PHP]1 user says Thank You to Pankaj Sharma for this useful post
-
AuthorPosts
Viewing 8 posts - 1 through 8 (of 8 total)This topic contains 8 replies, has 2 voices, and was last updated by Pankaj Sharma 10 years, 8 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum