| @@ -188,8 +188,22 @@ | ||
| 188 | 188 | { |
| 189 | 189 | |
| 190 | 190 | add_action('admin_menu', array($this, 'addAdminMenu')); |
| 191 | 191 | |
| 192 | + // The "↳" children under Products stay visible on every page so the | |
| 193 | + // sidebar never changes shape. Pro's "↳ Inventory" still hides itself | |
| 194 | + // with inline CSS (it relied on the admin app to reveal it), so keep | |
| 195 | + // that row visible whichever Pro version is installed. | |
| 196 | + add_action('admin_enqueue_scripts', function () { | |
| 197 | + wp_register_style('fluent-cart-admin-submenu', false); | |
| 198 | + wp_enqueue_style('fluent-cart-admin-submenu'); | |
| 199 | + wp_add_inline_style('fluent-cart-admin-submenu', ' | |
| 200 | + #adminmenu .toplevel_page_fluent-cart li.fluent_cart_inventory { | |
| 201 | + display: list-item; | |
| 202 | + } | |
| 203 | + '); | |
| 204 | + }); | |
| 205 | + | |
| 192 | 206 | /* |
| 193 | 207 | * Disable Gutenberg for Products |
| 194 | 208 | */ |
| 195 | 209 | add_filter('parent_file', function ($parent_file) { |