-
AuthorPosts
-
August 5, 2015 at 1:14 pm #483287
Hi guys,
I followed the instructions for a widget area in the header:
add_action( ‘ava_after_main_menu’, ‘enfold_customization_header_widget_area’ );
function enfold_customization_header_widget_area() {
dynamic_sidebar( ‘header’ );
}Then I aligned them with CSS:
#header .widget {
float: center;
left: auto;
line-height: 5px !important;
position: relative;
right: -600px;
top: 10px;
z-index: 9999;
}But now the Main Menu links do not work anymore and on mobile the hamburger menu is not aligned anymore on the top.
How can I fix this?
Sincerely,
MortickaAugust 5, 2015 at 5:03 pm #483493Hi Morticka!
You have them laid out on top of your main menu so the links will not be clickable. Your trying to center them correct? Try this CSS out instead.
#header .widget { left: 50%; line-height: 5px !important; position: absolute; top: -63px; transform: translate(-50%); z-index: 9999; }
Best regards,
ElliottAugust 5, 2015 at 7:37 pm #483547Hey Elliot,
Yes, I was able to align them the way I wanted it using your code, thank you! :)
One more question: The header widget does not look good on mobile, it’s almost on top of the logo. Is there a way to show the widget only on desktop and not on mobile?
Sincerely,
MortickaAugust 5, 2015 at 7:45 pm #483553Hey!
Please add following code to Quick CSS as well
@media only screen and (max-width: 767px) { #header .widget { display: none !important; }}
Cheers!
YigitAugust 6, 2015 at 1:06 pm #483834Great, thx Yigit! I removed it from mobile and iPad portrait mode. But on the iPad in landscape mode the widget lies on top of the menu. Is there a way to make the header widget responsive?
Sincerely,
BarbAugust 6, 2015 at 1:24 pm #483841Hey Barb!
When i resized the browser window i could not reproduce the issue. Can you please post a screenshot and show? :)
Regards,
YigitAugust 6, 2015 at 1:48 pm #483858Hi Yigit,
Never mind, I’ve removed the header widget and I’m using Enfolds Social Icons in the header! Looks better that way too :D.
Is there however a way to display Enfolds social icons in the mobile menu?
Sincerely,
BarbAugust 6, 2015 at 1:55 pm #483861Hi!
Please add following code to Quick CSS
@media only screen and (max-width: 990px) { ul.social_bookmarks { display: block!important; }} @media only screen and (max-width: 767px) { ul.social_bookmarks { position: absolute!important; }}
Cheers!
YigitAugust 6, 2015 at 2:00 pm #483865Awesome Yigit!! :D
How can I make them only bigger on mobile and move them a little to the left and have more space between them?
Sincerely,
BarbAugust 6, 2015 at 2:11 pm #483873Hi!
Please add following code to Quick CSS as well
@media only screen and (max-width: 990px) { #top .social_bookmarks li a { font-size: 30px; } #top .social_bookmarks li { margin-right: 15px; } ul.social_bookmarks { right: 100px !important; }}
Best regards,
YigitAugust 6, 2015 at 2:18 pm #483879Perfect, thx Yigit! You can close this topic :D
Sincerely,
BarbAugust 6, 2015 at 2:21 pm #483881 -
AuthorPosts
- The topic ‘Header widget menu and mobile problems’ is closed to new replies.