-
AuthorPosts
-
May 3, 2018 at 6:45 pm #951000
Fixed header height is incorrect. I have manually stipulated 100 pixels yet when the page loads I am getting a different value due to the sticky header.
Note following code is being generated automatically by Enfold (inline:4):
.html_header_top.html_header_sticky #top #wrap_all #main {
padding-top: 128px;
}Why is this value not 100 pixels? I have been overriding it with a custom rule but then when creating pages with a completely transparent header I’m unable to bring the content up due to the custom rule still fixing the content below the header!
Link follows in pvt below.
May 3, 2018 at 8:02 pm #951047I have added back my rule to fix padding at 99px (for some reason 100px left a 1px line which had to be closed):
.html_header_top.html_header_sticky #top #wrap_all #main { padding-top: 99px !important; }
Fixes the issue. For the transparent header I will have to create a custom rule for that specific page only.
BUT WHY is the question. The header itself is defining the 100px value correctly:
#top #header_main > .container {
height: 100px;
line-height: 100px;
}May 4, 2018 at 12:28 pm #951590Hi fusion01,
The padding is calculated in JavaScript, there must be some other elements take into account.
Glad you got it working for you! :)
If you need further assistance please let us know.
Best regards,
VictoriaMay 8, 2018 at 1:06 pm #953349Thanks. I need further assistance please. Is there a way to have sections scroll to the actual top of the page and not the top of the sticky header value?
I have made the header transparent so with content fixing below the header it looks plain wrong.
Link to follow in PM.
Thanks.May 8, 2018 at 1:18 pm #953362Deleted
- This reply was modified 6 years, 7 months ago by fusion01.
May 9, 2018 at 11:18 pm #954196Hi,
Unfortunately, it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support. However, if it’s really important for you to get this done, you can always hire a freelancer to do the job for you :)
Best regards,
BasilisMay 9, 2018 at 11:51 pm #954230You would increase the chance of response with a solution if you could make the link public. Other participants have good ideas too.
May 10, 2018 at 9:07 am #954429Thanks, appreciated. I will ask the client and possibly go this route. Possible to mention the Javascript file that handles this action?
May 11, 2018 at 8:37 am #955075Hi fusion01,
Looks like it gets the 100 that you set, could you please clear the cache, check again and get back to us.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.