Hi @arthrnvrn !
Sorry for inconvenience.
There are two ways to do it.
First create a child theme of aemi.
First way:
In your child theme, in functions.php, add :
function aemi_header_menu() {
?><a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'aemi' ); ?></a>
<nav id="header-menu" role="navigation">
<div id="toggle-header-menu" class="toggle">
<div id="toggle-element">
<span></span>
<span></span>
<span></span>
</div>
</div>
<div id="header-menu-wrap" class="wrap"><?php
if ( has_nav_menu( 'header-menu' ) ) {
wp_nav_menu( array(
'theme_location' => 'header-menu',
'container_class' => 'header-section'
) );
}
if ( has_nav_menu( 'social-menu' ) ) {
wp_nav_menu( array(
'theme_location' => 'social-menu',
'depth' => '1',
'container_id' => 'header-social',
'container_class' => 'header-section'
) );
}
if ( is_active_sidebar( 'header-widget-area' ) )
{
?><div id="toggle-header-widget" class="toggle">
<div id="toggle-widget-element">
<span></span>
<span></span>
</div>
</div>
<div id="header-widgets" class="header-section"><?php
dynamic_sidebar( 'header-widget-area' );
?></div><?php
}
?></div>
</nav><?php
}
Second Way:
Register and enqueue a new javascript before original and add:
document.getElementById("header-settings").remove();
So in fact, in the two ways, Javascript function will not find darkmode button and then don’t match the dark theme.
I’m working in a better way to turn off this feature ??
Don’t hesitate to tell me what other problem you encountered and I would like to know your website, I plan to publish a page of every site running aemi theme ??
I also encourage you to rate my theme (I don’t ask you for five stars, just your true opinion).
Have a nice day and happy coding !