wp-v4-greater.php
39 lines
| 1 | <?php |
| 2 | |
| 3 | if ( ! is_rtl() ) { |
| 4 | $margin_property = 'margin-left'; |
| 5 | $position = 'left'; |
| 6 | } else { |
| 7 | $margin_property = 'margin-right'; |
| 8 | $position = 'right'; |
| 9 | } |
| 10 | |
| 11 | ?> |
| 12 | <style> |
| 13 | |
| 14 | #wpcontent, #wpfooter { |
| 15 | <?php echo esc_html( esc_html( $margin_property ) ); ?>: <?php echo esc_html( $custom_width ); ?>; |
| 16 | } |
| 17 | #adminmenuback, #adminmenuwrap, #adminmenu, #adminmenu .wp-submenu { |
| 18 | width: <?php echo esc_html( $custom_width ); ?>; |
| 19 | } |
| 20 | #adminmenu .wp-submenu { |
| 21 | <?php echo esc_html( $position ); ?>: <?php echo esc_html( $custom_width ); ?>; |
| 22 | } |
| 23 | #adminmenu .wp-not-current-submenu .wp-submenu, .folded #adminmenu .wp-has-current-submenu .wp-submenu { |
| 24 | min-width: <?php echo esc_html( $custom_width ); ?>; |
| 25 | } |
| 26 | |
| 27 | /* WooCommerce header fix */ |
| 28 | .woocommerce-layout__header, |
| 29 | /* Elementor Settings */ |
| 30 | #e-admin-top-bar-root { |
| 31 | width: calc(100% - <?php echo esc_html( $custom_width ); ?>); |
| 32 | } |
| 33 | |
| 34 | /* Gutenberg / Block Editor fix */ /* Elementor Settings */ |
| 35 | .auto-fold .interface-interface-skeleton { |
| 36 | <?php echo esc_html( $position ); ?>: <?php echo esc_html( $custom_width ); ?>; |
| 37 | } |
| 38 | |
| 39 | </style> |