Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • Nam Nguyen Phi Friend
    #195771

    How to disable the share function in the article and on the main page?

    Pankaj Sharma Moderator
    #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:)

    Nam Nguyen Phi Friend
    #526682

    I did it. Thanks so much !
    p/s:

    How to disable layout-switch , hit and categories main page?


    1. JA_Magz_Demo_-_2014-03-14_13.22.55
    2. JA_Magz_Demo_-_2014-03-14_13.21.48
    Pankaj Sharma Moderator
    #526686

    You 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:)

    Nam Nguyen Phi Friend
    #526691

    Thank you very much. If I want to disable Category in Module and display Category in Component, what should I do?

    Pankaj Sharma Moderator
    #526692

    can you explain it with a screenshot in which module and component you want to disable/display it

    Nam Nguyen Phi Friend
    #526699

    Thank so much !


    1. JA_Magz_Demo_-_2014-03-14_14.57.29
    2. JA_Magz_Demo_-_2014-03-14_14.57.43
    Pankaj Sharma Moderator
    #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]

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, 3 months ago.

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