nicovideo
Forum Replies Created
-
Forum: Plugins
In reply to: [Menu Image, Icons made easy] Custom class removed on menu itemI understood some part of the issue.
When I disabled the plugin, I noticed that the CSS class is not added to the li element but to a new i element added before the a link.
This i element disappear with the plugin enabled.Forum: Plugins
In reply to: [Menu Image, Icons made easy] Custom class removed on menu itemWhoops, sorry, I misread what you said.
I will look at the place where wp_nav_menu is called, I’ll tell you if I solved my issue.
Thank you!Forum: Plugins
In reply to: [Menu Image, Icons made easy] Custom class removed on menu itemI copy paste the code in my menu-image.php, but see no difference.
Was there something else to do?Forum: Plugins
In reply to: [Menu Image, Icons made easy] Custom class removed on menu itemNot at all…
Forum: Plugins
In reply to: [Menu Image, Icons made easy] Custom class removed on menu itemI agree, WordPress adds them on “li” elements, but the function I shared right before adds it to “a” element.
Forum: Plugins
In reply to: [Menu Image, Icons made easy] Custom class removed on menu itemSorry, we answered at the same time.
I have Mega Menu running, but not on all of my menus ; the CSS classes issue concerns all of the menus.
I use these classes to add Bootstrap small icons to my simple menus, when your plugin will help me with real images in some big menus.Forum: Plugins
In reply to: [Menu Image, Icons made easy] Custom class removed on menu itemOk, I figured out how to adapt the function :
function flatsome_dropdown_fix_menu_image_link_attributes_filter( $attributes, $item, $depth, $args ) { $attributes['class'] .= ' '.$item->classes[0]; return $attributes; } add_filter( 'menu_image_link_attributes', 'flatsome_dropdown_fix_menu_image_link_attributes_filter', 10, 4 );
Then i need to adapt a bit my CSS, because the class is not added at the same place than with the WordPress native behaviour…
I don’t mark the thread as solved, because I would like to know if there is a better way to do this before.
It seems really cool and your website is very usefull, thank you.
Forum: Plugins
In reply to: [Broadcast] Share from parent to subsitesYes, we finally figured out how to do it. We just had doubts, but your plugin is really cool!
I tried to remove my post, but didn’t find if I could, so I marked it as resolved.Thank you!
Forum: Plugins
In reply to: [Resize Image After Upload] Plug-in not working with latest WordPress VersionI noticed it too.
When I upload an image, I get a “HTTP Error”, which I have not when I disable the plugin.Console says :
load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,plupload&ver=4.5.2:25 POST https://mysite.fr/wp-admin/async-upload.php 500 (Internal Server Error)