Home › Forums › Dondo WordPress theme › TOP of blog page hidden by Menu (also called header) since 1.1.9
- This topic has 4 replies, 3 voices, and was last updated 9 years, 2 months ago by FAB.
-
AuthorPosts
-
-
at #73571FABMember
Hi There,
We got another problem since we updated to 1.1.9.
On all pages of the blog, the top of first post (and right column) are hidden by the top menu. Please see picture attached, or check: ModelSpice . comLooks like an easy fix… but have no idea where to look for.
Please also give us back the shadow under sticky menus.
Thanks
FABPS, Helen, please don’t explain me it’s normal, cause it’s not 😉
Attachments:
-
at #73574adminKeymaster
FAB,
Go to the categorie and disable the sticky header, we have added this feature in case when a header image is used.
-
at #73578FABMember
Yes, I saw we can do that…. but I would like to keep the sticky menu and not to have it over the posts. (like it should be indeed)
-
at #73589Helen (staff)Keymaster
FAB, there is only one way to fix your problem.
In your admin navigate to Appearance > Dondo options > General > JS Code
Inside this textarea you should put the following code:
jQuery(document).ready(function($){
if($(‘.site-header.fixed.fix-header’).length){
$(‘#content #primary, #content #secondary’).css(‘margin-top’, 80);
}
});Above code will make sure that the primary (content) and secondary (sidebar) will get 80px at the top of their div.
Since the menu is always 80 pixels in height this should fix it.Please note that this will happen on all the pages with fixed header.
If you only want to apply the above for the page as given in your screenshot you should use the following code:
jQuery(document).ready(function($){
if($(‘.site-header.fixed.fix-header’).length){
$(‘body.home.blog #content #primary, body.home.blog #content #secondary’).css(‘margin-top’, 80);
}
});Please note the “body.home.blog” as this was what I saw in the screenshot you provided.
It might be that you want to use only “body.home” or “body.blog” you should test this yourself.Anyways try it out and let me know.
-
at #73591FABMember
Awesome! Works perfectly. THANKS!
The only thing, “Apostrophe” must be replaced by “Guillemet” (may be a forum conversion issue)(See picture attached)
Attachments:
-
-
AuthorPosts
- You must be logged in to reply to this topic.