VISIT AND LIKE OUR PAGE ON FACEBOOK
TAKE A LOOK AT OUR TWEETS ON TWITTER
SUBSCRIBE TO THE JOOMFREAK RSS FEED
VISIT OUR CHANNEL ON YOUTUBE

Account Details

Change your name, email, password or permanently delete your account. Change settings

We offer several ways you can get support from our experts: Support ForumKnowledgebaseNewsletter

Your Forum Posts

No posts to display.

Welcome, Guest
Username Password: Remember me

how to disable backtotop in only one item
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: how to disable backtotop in only one item

how to disable backtotop in only one item 03 Feb 2015 14:53 #6196

Hello,
i have to disable the <div style="width: 230px;" class="backToTop"> on the left of my template but for only one item of the main menù. How i can?

  • Posts:3
  • mobileadv
  • Fresh Boarder
  • OFFLINE
  • Karma: 0

Re: how to disable backtotop in only one item 04 Feb 2015 02:59 #6200

Each item of menu has an id. Open templates/jf_creativia/index.php, before the opening body tag (<body>), add
 
<?php $itemId = $_REQUEST['Itemid']; ?>
 

edit tag <body> to <body class="itemid-<?php echo $itemId; ?>">.

In templates/jf_creativia/css/templates.css, add:
 
body.itemid-... .backToTop {
display: none;
}
 


joomfreak
Last Edit: 04 Feb 2015 03:00 by isupport.

  • Posts:2940
  • isupport
  • Moderator
  • OFFLINE
  • Karma: 0
  • Page:
  • 1
Time to create page: 0.58 seconds
Friday 26 April 2024

joomfreak is not affiliated with or endorsed by the Joomla Project or Open Source Matters.
The Joomla logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.