mirror of
https://github.com/KevinMidboe/rohnenedre.git
synced 2026-02-13 04:49:18 +00:00
Initial commit. State 04.2021.
This commit is contained in:
13
wp-content/themes/Divi/js/menu_fix.js
Normal file
13
wp-content/themes/Divi/js/menu_fix.js
Normal file
@@ -0,0 +1,13 @@
|
||||
(function($){
|
||||
$( document ).ready( function() {
|
||||
var $menu_item = $( '#toplevel_page_et_divi_options' );
|
||||
|
||||
if ( $menu_item.length ) {
|
||||
var $first_menu_item = $menu_item.find( '.wp-first-item' );
|
||||
|
||||
if ( 'Divi' === $first_menu_item.find( 'a' ).text() ) {
|
||||
$first_menu_item.remove();
|
||||
}
|
||||
}
|
||||
});
|
||||
})(jQuery)
|
||||
Reference in New Issue
Block a user