-
AuthorPosts
-
October 31, 2017 at 10:24 am #870793
I had a function that added a class “hide-menu-item” to a certain menu item.
Since the last theme update (I guess) it doesn’t work anymore for the MOBILE MENU. For desktop it still works.With the old Enfold theme everything works like charm :(
`function my_special_nav_class( $classes, $item ) {
global $MenuItemName;
if ( $item->title == $MenuItemName AND ( !isset( $_COOKIE[“show_cart_menu_item”] ) OR ( $_COOKIE[“show_cart_menu_item”] == “false” ) )
){
$classes[] = ‘hide-menu-item’;
}
return $classes;
}
add_filter( ‘nav_menu_css_class’, ‘my_special_nav_class’, 10, 2 );November 3, 2017 at 8:01 am #872008Hello @Support Team,
is somebody here to get back to me?
We bought the Kriesi Thema already like 10-20 times. So it would be great to get some support!Thank you,
BenjaminNovember 3, 2017 at 8:09 am #872011Hi,
Sorry for the late response. Can you try to update it to the latest version: 4.2 https://kriesi.at/archives/the-complete-guide-to-updating-enfold
Make sure to backup first before updating. Let us know if this helps.Best regards,
NikkoNovember 3, 2017 at 9:45 am #872046Hi,
just updated the theme. Didn’t help.
Best,
BenjaminNovember 4, 2017 at 12:00 pm #872454Hi,
Thank you for using our theme.
This is a bug we are currently working on to find a solution. We will let you know, as soon as we have a solution for it.
Sorry for that and thank you for your patience.
Best regards,
GünterNovember 5, 2017 at 2:45 am #872647Thank you
November 6, 2017 at 1:55 pm #873049Hey!
I fixed the problem and it will be in the next update.
Meanwhile please update file enfold\js\avia.js. Please replace the complete content of this file with the RAW paste content of
This link is valid for one month. Make sure to make a copy of the original file to have a fallback and that you are using Enfold 4.2.
Do not forget to clear browser and server cache after the update.If you have problem we can do the update for you, please give us FTP access to your server.
Cheers!
GünterFebruary 6, 2018 at 4:19 am #908330Hey Günther,
I updated the theme a few days ago and it’s not working anymore. It may have appeared that I accidentally overwrote the fix that you made.
Could you give me access to the pastebin again? it’s urgent :(Best,
BenjaminFebruary 6, 2018 at 8:52 am #908398Hi Benjamin,
The code is in the theme already. What do you mean by it’s not working? Is the website down or?
Best regards,
VictoriaFebruary 6, 2018 at 8:06 pm #908763It was a caching problem. Sorry about that.
Thank you!
February 7, 2018 at 7:10 am #908928 -
AuthorPosts
- You must be logged in to reply to this topic.