diff --git a/assets/js/elementor-editor.js b/assets/js/elementor-editor.js index bdc7dcd0..0c0fda61 100644 --- a/assets/js/elementor-editor.js +++ b/assets/js/elementor-editor.js @@ -211,39 +211,41 @@ }); }); - // Add schedulepress option to elementor topbar panel - jQuery('#elementor-editor-wrapper-v2 .eui-box .MuiGrid-root:first-child .eui-stack:last-child').append(` - `); + `); + }); + // Assuming the button has an ID like 'your-button-id' jQuery(document).on('click', '#elementor-editor-wrapper-v2 .MuiBox-root .MuiGrid-root:last-child button[aria-label="Save Options"]', function() { diff --git a/includes/Admin.php b/includes/Admin.php index 7eb83351..c248ceae 100644 --- a/includes/Admin.php +++ b/includes/Admin.php @@ -271,7 +271,36 @@ public function schedulepress_el_tab () { ?> #schedulepress-elementor-modal.elementor-templates-modal .dialog-widget-content { background: #f5f7fd; } - + .elementor-panel-footer-wpsp-modal .wpsp-elementor-topbar-panel-button:hover { + background-color: #3e3e3e; + } + .elementor-panel-footer-wpsp-modal .wpsp-elementor-topbar-panel-button { + display: inline-flex; + -webkit-box-align: center; + align-items: center; + -webkit-box-pack: center; + justify-content: center; + position: relative; + box-sizing: border-box; + -webkit-tap-highlight-color: transparent; + background-color: transparent; + outline: 0px; + border: 0px; + margin: 0px; + cursor: pointer; + user-select: none; + vertical-align: middle; + appearance: none; + text-decoration: none; + text-align: center; + flex: 0 0 auto; + font-size: 1.5rem; + padding: 8px; + border-radius: 50%; + overflow: visible; + color: rgb(255, 255, 255); + transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; + } .wpsp-el-modal-date-picker .flatpickr-calendar { left: 50% !important; top: 50% !important;