Forum Replies Created

Viewing 1 replies (of 1 total)
  • @michintos I have found a solution,

    • Enqueue a new script in your child theme
    • Locate the file plugins\mesmerize-companion\assets\js\customizer\customizer-section-settings-panel.js
    • Copy an addModule function
    • CP_Customizer.addModule(function (CP_Customizer) { //something like this

    • Create a new function execution in your newly created script with the copied content and add parent. before CP_customizer :
    • 
      (function ($) {
      try {
          if (parent.CP_Customizer) {
            parent.CP_Customizer.addModule(function (CP_Customizer) {
                var sectionPanel = parent.CP_Customizer.panels.sectionPanel;
                console.log('Registering new setting');
                sectionPanel.registerArea('My custom settings', {
                    init: function ($container) {...}
                    ...
                    );
                    }
                });
            });
          }
      
      } catch (e) {
        console.log(e);
      }
      })(jQuery);
      
    • Modify your section / settings as you wish
    • enjoy
    • This reply was modified 5 years, 4 months ago by vicou96.
    • This reply was modified 5 years, 4 months ago by vicou96.
    • This reply was modified 5 years, 4 months ago by vicou96.
Viewing 1 replies (of 1 total)