-
AuthorPosts
-
January 24, 2017 at 4:28 pm #737808
Hi there,
I’m using the most up-to-date version of Enfold – Header style – logo centered/menu below.
I’d like to add header widgets to either side of the logo – I’ve managed this on one side on the logo, using the Enfold documentation (functions.php + css), but I’m finding it difficult to place one on the other side.
Any help most appreciated.
Thank you
CaroleJanuary 24, 2017 at 4:32 pm #737817Hey cab72!
Please change your custom CSS code to following one
#header .widget { left: 18%; padding-top: 50px; position: absolute; top: 0; transform: translate(-50%); z-index: 999; }
Best regards,
YigitJanuary 24, 2017 at 5:31 pm #737844Hi Yigit,
Thank you or the quick reply.
I’d like to have two widget in the header area- one on the left and one on the right. Is this possible?
Kind Regards
Carole
January 24, 2017 at 11:54 pm #738005Hi Carole,
Yes, that would be possible as well. Please change your code in functions.php file to following one
add_action( 'ava_main_header', 'enfold_customization_header_widget_area' ); function enfold_customization_header_widget_area() { dynamic_sidebar( 'header' ); dynamic_sidebar( 'headertwo' ); }
And then create another widget area called “headertwo”. Then you would need to update your custom CSS code. After adding the second widget area to header, please let us know.
Best regards,
YigitFebruary 4, 2017 at 7:35 pm #742865Hi Yigit,
Should I make a functions.php document for my child theme?
Also, where should I insert the php code? (not proficient in php)
Thanks very much for your help
Carole
February 6, 2017 at 5:08 am #743119Hi Carole,
You can download a child theme from here: http://kriesi.at/documentation/enfold/downloads/. Place the code at the bottom of the functions.php file.
Best regards,
RikardFebruary 6, 2017 at 10:45 pm #743625Hi Rikard,
Thank you for sending on the link.
I have uploaded the functions.php to the child theme and added the header php code. I’ve also added a second widget area.
Not sure how I should style the widget to have it appear on the right hand side. Would you help?
Thank you
Carole
February 7, 2017 at 10:13 am #743777Hi Carole,
Ok, thanks for the feedback. The URL you posted is password protected, but I couldn’t find any passwords in the thread. Could you post that in private as well please?
Best regards,
RikardFebruary 7, 2017 at 5:30 pm #743986Hi Rikard,
Sorry about that – have sent as private content.
February 8, 2017 at 6:57 am #744222Hi,
Thanks for that. Is it only the second widget you want to have on the right? If so please try this in Quick CSS:
#text-13 { left: auto; right: 0; }
Best regards,
RikardFebruary 15, 2017 at 1:30 am #747234Hi Rikard,
Used the css as given – but now the second header has disappeared.
Not sure what to do.
Thanks for your help
Carole
February 20, 2017 at 7:50 am #749173Hi!
Please adjust the latest css code to the following.
#header #text-13 { left: auto; right: 0; }
Best regards,
IsmaelMarch 1, 2017 at 9:15 pm #753953Hi Ismael,
This worked perfectly, thank you.
I’d like to hide the header widgets on smaller screens – is this possible?
Many thanks for your help.
Carole
March 2, 2017 at 7:25 am #754102Hey!
Yes, that’s possible. Please add this css code.
@media only screen and (max-width: 767px) { /* Add your Mobile Styles here */ #header .widget { display: none !important; } }
Regards,
IsmaelMarch 2, 2017 at 6:59 pm #754469Thank you so much Ismael! That’s done the trick.
Many thanks for all your great support and help with this – completely resolved it.
Kind Regards
CaroleMarch 2, 2017 at 9:06 pm #754582Hi,
Glad we could help!
Please take a moment to review our theme and show your support https://themeforest.net/downloads
To know more about enfold features please check – http://kriesi.at/documentation/enfold/
Thank you for using Enfold :)Best regards,
Vinay -
AuthorPosts
- The topic ‘Header widgets | logo centre, menu below’ is closed to new replies.