Flatsome Mostrar descripción en el elemento de menú


Si quieres mostrar la descripción de un elemento del menú en flatsome tienes que añadir el siguiente código en tus funciones.phpadd_filter(‘walker_nav_menu_start_el’, ‘we_show_description_in_menu’, 10, 4);function we_show_description_in_menu($item_output, $item, $depth, $args ) {si(!isset($item->description) || empty($item->description)) {devolver $item_output;}$item_output .= ‘

‘;devolver $item_output;}

Deja una respuesta

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *

Close Popup

We use cookies to give you the best online experience. By agreeing you accept the use of cookies in accordance with our cookie policy.

Close Popup
Privacy Settings saved!
Privacy Settings

When you visit any web site, it may store or retrieve information on your browser, mostly in the form of cookies. Control your personal Cookie Services here.

These cookies are necessary for the website to function and cannot be switched off in our systems.

Technical Cookies
In order to use this website we use the following technically required cookies
  • wordpress_test_cookie
  • wordpress_logged_in_
  • wordpress_sec

Decline all Services
Accept all Services