Forum Support

Shape 5
November 28, 2021, 10:53:33 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Which file to edit to make a scroll effect from the Main Menu  (Read 623 times)
hamiltonpj
Jr. Member
**
Offline Offline

Posts: 5



« on: November 26, 2017, 11:45:33 PM »

Greetings,
I am using the Arthur template with Joomla v3.8.2 and I am trying to implement in which when clicking on the Main Menu, it will scroll to a given module; via anchor (ie: #myModule). I have the menu working in that regard of going to the anchor, but does so instantly (which back years ago that is what we wanted, quick and fast...).
The problem I am having is trying to figure out which php file I need to edit to plug in the javascript code to provide the scroll effect.  I attempted with the template index.php, but that did not seem to do the trick.  Assuming of course this can be done, or does this require a core Joomla file to be edited?
Logged
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #1 on: November 27, 2017, 07:59:49 AM »

Hello,

You shouldn't be editing any files to do that, you can do that by default in the template. The div just has to start with #s5_ though, it won't interact with any other ID's:

http://www.shape5.com/demo/arthur/index.php/features-mainmenu-47/template-features/menu-scroll-to
Logged

Mike Knott
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
hamiltonpj
Jr. Member
**
Offline Offline

Posts: 5



« Reply #2 on: November 27, 2017, 09:55:21 AM »

Thank you for the reply.
So only works for the positions, but not able to scroll to specific modules.
Reason is I have stacked a few modules into one position due to the allowing for the wide width of the section for a background image.
Example, four modules (top to bottom in order) within Custom_1.
Logged
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #3 on: November 28, 2017, 08:06:41 AM »

Hello,

It scrolls to ID's not modules. If you have an ID inside of one of your modules that starts with "s5_" - if it's a custom html module you can add that - then it would scroll to that specific ID/module.
Logged

Mike Knott
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.