-
AuthorPosts
-
December 17, 2012 at 3:25 pm #183174
Hi!
I am using the onepage scrolling. However, i need the page to scroll not completely to the top of the page, but from 170 pixels from the top.
What do i need to modify to get this working?
HeR0 FriendHeR0
- Join date:
- August 2011
- Posts:
- 3626
- Downloads:
- 0
- Uploads:
- 61
- Thanks:
- 33
- Thanked:
- 588 times in 549 posts
December 18, 2012 at 9:59 am #476639Hi Hdegierme,
Can you explain your idea more details? Some screenshots will be better
Regards
December 18, 2012 at 4:22 pm #476679Hi HeR0,
Right now the scrolling is 0 pixels from the top. When i click a menu item in the pagenav, it scrolls to the top. However, i need the header to be visible always. The header is about 170 pixels high, so the page should scroll to 170 pixels from the top. If you look at my printscreens you will see what i mean. The page scrolls to far to the top.
-
HeR0 Friend
HeR0
- Join date:
- August 2011
- Posts:
- 3626
- Downloads:
- 0
- Uploads:
- 61
- Thanks:
- 33
- Thanked:
- 588 times in 549 posts
December 19, 2012 at 4:49 am #476742Hi,
Please try with solution as below:
1. Open file templatesja_clorisblocksonepage.php and find
if ((i==0 || pagecor.top <= scrolltop+100) && (pagecor.bottom > scrolltop+100)) {
and try change to
if ((i==0 || pagecor.top <= scrolltop+270) && (pagecor.bottom > scrolltop+100)) {
2. Add
.ja-page-content { padding-top: 170px; }
new css rule into template.cssHope this helps
December 19, 2012 at 9:01 pm #476827Tried that, but now i have 170 pixels padding above my content. I only need the scrolling to end 170 pixels from the top. Unfortunately above does not work… Anymore suggestions?
HeR0 FriendHeR0
- Join date:
- August 2011
- Posts:
- 3626
- Downloads:
- 0
- Uploads:
- 61
- Thanks:
- 33
- Thanked:
- 588 times in 549 posts
December 20, 2012 at 7:28 am #476888Hi,
I just checked and saw that you did not add .ja-page-content { padding-top: 170px; } or you didn’t clean cache .
Regards
December 20, 2012 at 9:55 pm #476995I removed it already. When i do this, the modules have a spacing of 170 pixels, does not look good. Is there a way to let the scrolling go from 170 pixels from the top? My modules have a padding top and bottom of 20 pixels. When i make this 170 pixels it does not look like my design…
Hope you can help me!
-
AuthorPosts
Viewing 8 posts - 1 through 8 (of 8 total)This topic contains 8 replies, has 2 voices, and was last updated by HeR0 11 years, 11 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum