andrewW-8
Support threads created in the last 30 days: 0
Favorite Forum Topics
This user has no favorite topics.
Forum Topics Created
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
Date picker breaks with multiple CRED Post forms on 1 page…
Started by: andrewW-8 in: Toolset Professional Support |
3 | 8 | 7 years, 4 months ago | ||
Using in a different theme displays entire Page Layout
Started by: andrewW-8 in: Toolset Professional Support |
2 | 7 | 7 years, 6 months ago | ||
How do I decide which is the Parent Post Type when they both share information?
Started by: andrewW-8 in: Toolset Professional Support |
2 | 7 | 7 years, 6 months ago | ||
How to add Menu Item Descriptions to your theme?
Started by: andrewW-8
in: Toolset Professional Support
Problem: Solution: Basically you can enable it in our Toolset Starter theme by following these steps: 1. Please install & activate Toolset Starter Child theme and add the following code in Child theme’s functions.php file (e.g. after line #10): // Menu Item Description function nav_menu_description( $item_output, $item, $depth, $args ) { if ( !empty( $item->description ) ) { $item_output = str_replace( $args->link_after . '</a>', '<span class="menu-item-description">' . $item->description . '</span>' . $args->link_after . '</a>', $item_output ); } return $item_output; } add_filter( 'walker_nav_menu_start_el', 'nav_menu_description', 10, 4 ); 2. After that please add CSS for menu item description in Child theme’s style.css file, you can modify the CSS style of the description as required: .menu-item-description { display: block !important; font-size: 13px !important; font-weight: normal !important; } Now you can add descriptions in your WordPress menu items (see doc link below), and it will display Descriptions for each menu item. Relevant Documentation: |
2 | 5 | 7 years, 7 months ago |