Youjoomla Support Forums (http://www.youjoomla.com/joomla_support/index.php)
-   YJSG Template Framework Plugin (http://www.youjoomla.com/joomla_support/forumdisplay.php?f=269)
-   -   Edit yjscroll class (http://www.youjoomla.com/joomla_support/showthread.php?t=16189)

michy80 08-11-2017 10:21 AM

Edit yjscroll class
 
Hi,
I would like to personalize ijscroll class but I do not find the css file to edit.
I searched in many files but i did not find it. My goal is to insert a value like data-before.
Any suggestion?
Thanks

Are you sure your are posting in product assigned forum?: Yes

What is your CMS version?: Joomla 3.x

MySQL Version: 5.x

PHP version: 5.x

Link to installation: local

Have you edited any files? If yes tell us which ones.: Yes

Is this personal or client website?: Personal

arefund 08-15-2017 07:39 AM

Hello michy80.
Here you can check the cod about the yjscroll.
https://yjsimplegrid.com/add-ons/smooth-scroll.html
There you can see how to add data-before or after.

michy80 08-17-2017 10:59 AM

Hi Arefund,
thanks for your replay. So, I have to insert the "data-before" parameter in each html page in which I use yjscroll? Is there no method to apply one "data-before" (es. data-before= 100) parameter for all pages in which I use yjscroll?
Thank you

arefund 08-21-2017 07:49 AM

Right now there is no option to set one data-before for each page, but if you are using the same grid with same html it should work on all pages.

michy80 08-21-2017 10:08 AM

Thank you for your answer.
Another question, always about yscroll & data-before: i have a menu item that refers to an anchor (#login) that is present in each page of my site.
Is there a way to set "data-before" parameter also for a menu item?
I tried by inspecting page with Chrome and it works fine, but i do not know how to apply the rule in Joomla or YJSG Framework.
Any suggestion?
Thanks

arefund 09-07-2017 07:40 AM

You can try to use js to add the data-before attribute to the menu link.
http://api.jquery.com/attr/


All times are GMT -4. The time now is 07:57 PM.

Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.