Tagged: Burger Menu, enfold
-
AuthorPosts
-
September 17, 2018 at 6:16 pm #1010888
Hi guys,
is it possible to set Enfold to have the burger menu only in home page and maintain standard menu in other pages?Thanks
September 17, 2018 at 6:30 pm #1010900Hey jexjex,
Yes I believe this is possible, but will take a bit of css to pull off. Please provide a link to the site/page in question so we can inspect this further.
Best regards,
Jordan ShannonSeptember 18, 2018 at 10:57 am #1011196This reply has been marked as private.September 18, 2018 at 4:38 pm #1011380Hi,
Thank you for using Enfold.
To achieve this you have to modify themes\enfold\header.php around line 28 you find:
$av_classes_manually .= avia_is_burger_menu() ? " html_burger_menu_active" : " html_text_menu_active";
Replace this line with:
$is_burger_menu = apply_filters( 'avf_burger_menu_active', avia_is_burger_menu(), 'header' ); $av_classes_manually .= $is_burger_menu ? " html_burger_menu_active" : " html_text_menu_active";
We will add this to core in (one of) the next updates.
Then at the bottom of functions.php of the child theme (or parent theme) add:
add_filter('avf_burger_menu_active', 'custom_burger_menu_active', 10, 2 ); function custom_burger_menu_active( $active, $context ) { if( 2998 == avia_get_the_ID() ) { return true; } return $active; }
and replace 2998 with the page-id of your homepage.
In Enfold-> Main Menu -> General -> Menu Items for Desktop select “Display as text”.
If you have problems updating the files we need a WP admin account and ftp access to your server and we can do it for you.
Best regards,
GünterSeptember 18, 2018 at 6:13 pm #1011440Hi Günter,
I have follow your tutorial but unfortunatelly I still have some trouble.
In home page the burger menu appear only after I have scroll the page. I wish I have wisible since the page has loaded.
Preferibly would be great to have the burger on the left. I suppose it is quite simple doing it using CSS.I have attached some images in the private section.
You have also access to the front end if you want to have a look.
Thanks a mil for your help.September 19, 2018 at 9:36 am #1011685Hi,
The link you provided above does not show an Enfold page.
Please create a temporary admin account for us so we can check the backend. You can post it in the private content area – and also the link to the admin login.
Best regards,
GünterSeptember 19, 2018 at 9:39 am #1011688Hi Günter,
you have now access to the site.
Thanks,
MirkoSeptember 19, 2018 at 11:52 am #1011746September 19, 2018 at 12:12 pm #1011756My fault, now should be ok and you can have access to the site.
Thanks- This reply was modified 6 years, 2 months ago by jexjex.
September 19, 2018 at 2:14 pm #1011815Hi,
Still not work for me – same as before:
ERRORE: nome utente non valido. È stata persa la password?
Best regards,
GünterSeptember 19, 2018 at 3:51 pm #1011870Just checked and it works.
have you changed the Host file?
I gave you details before.September 20, 2018 at 10:23 am #1012191Hi guys. News? Are you able to log in?
September 20, 2018 at 12:47 pm #1012265September 20, 2018 at 1:00 pm #1012274Hi Günter
you didn’t reply my question.Have you changed the file host?
The website is not visible without it. You probably see the old one.You have details in private content.
September 21, 2018 at 12:02 pm #1012724Guys please, any news?
September 21, 2018 at 10:14 pm #1012917Hi,
Unfortunately not yet – our development team does have an update but not yet finished for release.
Best regards,
BasilisSeptember 23, 2018 at 1:40 pm #1013316Hi,
Günter and I tried to log in (with modified host files) but we can’t reach your website. Please provide a link to a server where we can log in (without modifying our host files).
Best regards,
PeterSeptember 24, 2018 at 9:32 am #1013522Hi Dude,
you can find info you have required in the private content
Thanks a mil- This reply was modified 6 years, 2 months ago by jexjex.
September 24, 2018 at 12:20 pm #1013571Hi,
In home page the burger menu appear only after I have scroll the page. I wish I have wisible since the page has loaded.
You have selected “Header is invisible and appears once the users scrolls down ” on the “Home” page. Change this setting.
Preferibly would be great to have the burger on the left. I suppose it is quite simple doing it using CSS.
Select the option “Logo right, Menu left” to change this
(WP Dashboard -> Enfold -> Header -> Menu and Logo Position
Best regards,
GünterSeptember 24, 2018 at 1:17 pm #1013588Hi Günter,
solved first issue. Very sorry to have waste so much of your time for a simple setting.For want it concern the position of the logo the solution you have proposed it doesn’t suit to me at first glance.
In fact it applies to all the pages. I need to change only the home page.thanks
September 25, 2018 at 5:16 am #1013974Hi,
Revert the logo and menu position to the previous option and then add this filter in the functions.php file to adjust the header settings of the home/front page.
add_filter('avf_header_setting_filter', 'avf_header_setting_filter_mod', 99, 1); function avf_header_setting_filter_mod($header_settings) { if ( is_front_page() ) { foreach(explode(" ",$header_settings['header_layout']) as $layout) { if(strpos($layout, 'logo') !== false) { $header_settings['header_class'] = str_replace('av_'.$layout, 'av_logo_right', $header_settings['header_class']); } if(strpos($layout, 'menu') !== false) { $header_settings['header_class'] = str_replace('av_'.$layout, 'av_menu_left', $header_settings['header_class']); } } } return $header_settings; }
Best regards,
IsmaelSeptember 28, 2018 at 2:31 pm #1015750Thnks Ismael!
September 28, 2018 at 7:27 pm #1015868Hi jexjex,
Glad we could help :)
If you need further assistance please let us know.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.