# master-addons/3.1.2/inc/classes/reset-themes.php

Master Addons for Elementor – Elementor Addons, Widgets, Mega Menu Builder, Popup Builder, Widget Builder &amp; Template Kits, version 3.1.2. 81 lines.

- Page: https://pluginprobe.com/plugins/master-addons/3.1.2/code/inc/classes/reset-themes.php
- Raw: https://pluginprobe.com/plugins/master-addons/3.1.2/raw/inc/classes/reset-themes.php
- Modified: 2026-05-19T13:15:32+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/master-addons/3.1.2/code/inc/classes/reset-themes.php#L10-L20`.

```php
<?php

namespace MasterAddons\Inc\Classes;

if (!defined('ABSPATH')) {
    exit; // Exit if accessed directly
}

use MasterAddons\Inc\Classes\Helper;

/**
 * Author Name: Liton Arefin
 * Author URL: https://jeweltheme.com
 * Date: 8/6/20
 */

class Jltma_Reset_Themes_Conflicts
{

    private static $instance = null;

    public function __construct()
    {
        add_action('wp_enqueue_scripts', [$this, 'jltma_reset_theme_conflicts']);
        // add_action('wp_enqueue_scripts', [$this, 'jltma_reset_theme_dequeue_script'], 100);
        // add_action('wp_print_scripts', [$this, 'jltma_reset_theme_dequeue_script'], 100);
    }

    function jltma_reset_theme_dequeue_script()
    {
        $theme = wp_get_theme();

        // wp_dequeue_script( 'scriptname' );

        //Stratus
        if ('Stratus' == $theme->name || 'Stratus' == $theme->parent_theme) {
            wp_dequeue_style('jltma-bootstrap');
        }

        //OceanWP
        if ('OceanWP' == $theme->name || 'OceanWP' == $theme->parent_theme) {
            wp_dequeue_style('jltma-bootstrap');
        }
    }

    public function jltma_reset_theme_conflicts()
    {

        $jltma_custom_css = "";

        // gets the current theme
        $theme = wp_get_theme();

        //Twenty Twelve
        if ('Twenty Twelve' == $theme->name || 'Twenty Twelve' == $theme->parent_theme) {
            // Twenty Twelve is the current active theme or parent theme
        }

        //Airi Theme Reset Styles
        if ('Airi' == $theme->name || 'Airi' == $theme->parent_theme) {
            $jltma_custom_css .= "
                @media (max-width: 1199px){
                    .header-mobile-menu .mobile-menu-toggle{ outline: none; }
                    .main-navigation { position: fixed !important; max-width: 100% !important; }
                }";

            wp_add_inline_style('airi-bootstrap', $jltma_custom_css);
        }
    }

    public static function get_instance()
    {
        if (!self::$instance) {
            self::$instance = new self;
        }
        return self::$instance;
    }
}

Jltma_Reset_Themes_Conflicts::get_instance();

```
