Flatsome Afficher la description dans l’élément de menu

WordPress

Si vous souhaitez afficher la description d’un élément de menu dans flatsome, vous devez ajouter le code suivant dans vos fonctions.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)) {retourner $item_output ;}$item_output .= ‘

‘;retourner $item_output ;}

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

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
Paramètres de confidentialité sauvegardés !
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
Save
Accept all Services