test melih
 melih
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • Ninja Lead Moderator
    #980757

    Hi,

    Please rollback that changed on your site and apply my suggestion below

    • Template manage -> JA Magz II Default -> General tab -> change Show Typo Tools and Show Sharing Buttons to OFF, http://prntscr.com/czfpee

    Hope it helps

    Regards

    emanmashlah Friend
    #980932

    Hi Ninja, thanks for your replaying. when i apply your suggestion ""article-tools"" hides from all articles , what i need hide it only in some article 🙂
    So i need to make an alternative layout for article

    Ninja Lead Moderator
    #981192

    Hi,

    If you want to apply some articles, you can use this way

    • Rollback my solution before that

    • Open templates/ja_magz_ii/html/com_content/article/default.php file and add this code if (JFactory::getApplication()->input->get(‘Itemid’)!="article_id")

    to

    <?php if ($tools): ?>
    ...
    ....
    <?php endif ?>

    Regards

    emanmashlah Friend
    #982467

    Hi Ninja

    kindly could you please show me in more details how can i get that.?
    after i add the code what should i do?
    and is it for all articles that belong to one category or one menu item ?

    thanks

    Ninja Lead Moderator
    #982575

    Hi,

    Kindly take a look at my screenshot and change article_id with article id on your site (Article id from article manager)

    Regards


    1. Screen-Shot-2016-11-02-at-09.04.46
    emanmashlah Friend
    #982859

    Not working 🙁
    i don’t know what is the problem

    i attach the image that show what i do
    and this is the url for the article
    http://www.bohooth.org/index.php/research-item/8-2016-10-25-19-32-49

    although when i remove all code from the default.php the tools hide, this meaning the file is correct .
    may be the there is a problem in if condition

    thanks


    1. code2
    2. gallery-item
    Ninja Lead Moderator
    #982989

    From your image above, I see wrong the format code on your site

    • If (JFactory::getApplication()->input->get(‘Itemid’)!="8"), you should change it to
    If (JFactory::getApplication()->input->get(‘Itemid’)!=8)

    and that code above, you want to disable article-tools with all articles unless article id is 8

    emanmashlah Friend
    #983188

    Hi
    every time this condition give true result
    I use this code and it works well ,

    <?php if ( $this->item->catid!=8): ?>

    I hope that this does not cause other problems
    thank you for your efforts

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

This topic contains 8 replies, has 2 voices, and was last updated by  emanmashlah 8 years, 3 months ago.

The topic ‘Remove "article-tools" from specific articles’ is closed to new replies.