Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Dante › Fancy-Heading Height (padding-bottom) in ChildTheme
New Landing › How can we help? › Themeforest Theme Support › Dante › Fancy-Heading Height (padding-bottom) in ChildTheme
- This topic has 9 replies, 2 voices, and was last updated 8 years by Mohammad – SUPPORT.
-
Posted in: Dante
-
September 2, 2015 at 2:17 pm #209736
Hi.
I need an edit of the file /dante/js/functions.js for my ChildTheme.
Line 208 of /dante/js/functions.js:
ORIGINAL: var paddingBottom = (120 – scrollTop / 5 > 0) ? 120 – scrollTop / 5 : 0,
NEEDED: var paddingBottom = (350 – scrollTop / 5 > 0) ? 350 – scrollTop / 5 : 0,How can i change this line for my ChildTheme, so that it will work also after the next updates of the parent theme?
Copy /dante/js/functions.js into /dante-child/js/functions.js and edit does not work …
Thanks a lot! ๐
September 2, 2015 at 3:35 pm #209818Hi,
If you make any changes through at js file through child theme then any new feature of theme will not work because you have js file at child theme that will ignore all new update/feature of theme.
Thanks
MohammadSeptember 3, 2015 at 12:14 am #209955Hi.
Well, this answer isn’t really helpfull, because the theme doesn’t work properly ๐
At the moment i can edit the padding of the fancy-headig via custom css:
.page-heading.fancy-heading {
padding-top:200px;
padding-bottom:200px;
}BUT, and this is the part i do not understand, via /dante/js/functions.js the padding-bottom is hardcoded in the html-file:
–> <div class=”page-heading fancy-heading col-sm-12 clearfix asset-bg none light-style fancy-image ” style=”display: block; opacity: 1; padding-bottom: 120px; background-image …Everything looks good, until i scroll the header over, then the hardcoded 120px padding-bottom affects the fancy-header
Any solution? thx in advance
September 3, 2015 at 7:35 am #210003Hi,
Do you want to decrease this padding-bottom ?
Thanks
MohammadSeptember 3, 2015 at 10:01 am #210049Hi Mohammad.
Yes. I want to decrease the padding-bottom so that the heading text is at the bottom of the fancy-header. My CSS settings are:
.page-heading.fancy-heading {
padding-top:338px;
padding-bottom:20px;
}But this only works until i scroll over the fancy-header an then the padding-bottom is 120px …
September 3, 2015 at 10:23 am #210053Hi,
Dont Worry ๐ . Just add !important rule in your css and use..page-heading.fancy-heading { padding-top:338px !important; padding-bottom:20px !important; }
Thanks
MohammadSeptember 3, 2015 at 10:40 am #210059padding-bottom:20px!important works fine for now. padding-top!important is not necessary in this case and affects the mobile output
thanks! ๐
September 3, 2015 at 10:43 am #210060Hi,
Please remove that code and use this code:-@media only screen and (min-width: 1025px) { .page-heading.fancy-heading { padding-top:338px !important; padding-bottom:20px !important; } }
Thanks
MohammadSeptember 3, 2015 at 11:58 am #210110Big Thanks! ๐
September 3, 2015 at 12:04 pm #210115Hi,
You most welcome and glad ๐ to help you.
Thanks
Mohammad -
Posted in: Dante
You must be logged in and have valid license to reply to this topic.