Tagged: Buttons, header widget area, styling
-
AuthorPosts
-
January 8, 2018 at 9:14 pm #894920
I have created a header widget area using this help file: https://kriesi.at/documentation/enfold/adding-a-widget-area-to-the-header/
I have added an email us and call us button to that widget area on my site here
and am wondering how I can set them to be next to each other instead of stacked one on top of another in both desktop and mobile?
ThanksJanuary 9, 2018 at 6:38 am #895108Hey amerzib,
Please try the following in Quick CSS under Enfold->General Styling:
#header_main .ls-button-widget-container { display:inline-block !important; }
Best regards,
RikardJanuary 9, 2018 at 2:51 pm #895257Thanks, that worked, I added some styles to align the buttons on the right and put padding in between them like this:
#header_main .ls-button-widget-container {
display:inline-block !important;
padding: 10px;
top: 40px;
left: 80%;
}But now I need to move the buttons down to below the menu items and the main menu items up a bit.
And the sticky/shrinking header needs to be taller now.And also the buttons do not show up correctly on mobile.
They are too far down and the email us button is cut off. on the right- This reply was modified 6 years, 10 months ago by amerzib.
January 10, 2018 at 7:16 am #895533Hi,
Thanks for the feedback, though I think you will need quite a lot of styling to get that looking right to be honest. Wouldn’t it be better to add those links to your main menu and select to style them as buttons? You can select that for each menu item under Appearance->Menus.
Best regards,
RikardJanuary 10, 2018 at 8:31 pm #895810Ok, I didnt realize I could do that. I’ll give it a try.
Will I able to position the buttons I make within the main menu to be underneath the other navigation items that arent buttons?January 11, 2018 at 9:24 am #896050Hi,
No, you wouldn’t be able to position them under the menu, unless you use custom CSS. Either option you would like to take, I think you will have to spend a lot of time to get those buttons looking right to be honest. Your easiest option would be to leave them on the same line as the rest of the menu.
Best regards,
RikardJanuary 15, 2018 at 5:10 pm #897636Ok, I will just position it on the same line. Thanks
-
AuthorPosts
- The topic ‘Header widget area styling’ is closed to new replies.