Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1107863

    By mistake I pressed the button “reset all options” at the Enfold theme options.

    This is totally my mistake, but:
    can’t you put this button is a less prominent place ? I mistook it for a save button.
    Before executing the reset, could you show a warning popup asking us if we are sure this can be reset ?
    The button is pushed in a blink of an eye and the consequenses are big !

    #1108128

    Hey pixar24,

    I’m sorry for the problem, but I’m not sure how we could make that less prominent since it’s already grey, and there is a browser confirmation that you have to accept in order for the action to go through.

    Best regards,
    Rikard

    #1108193

    Hi,
    for me the browser confirmation didn’t work.( using Chrome)
    Maybe my popup blocker blocked it ?
    I hit the button and all was reset.

    #1108197

    Hi,

    I am using an AdBlocker as well however confirmation works fine on my end.
    If you would like to hide the button, please add following code to bottom of Functions.php file in Appearance > Editor

    function av_delete_reset_button() {
      echo '<style>li.avia_footer_reset {
        display: none !important; 
    }
    </style>';
    }
    add_action('admin_head', 'av_delete_reset_button');

    Best regards,
    Yigit

    #1154630

    Hi Rikard,
    I believe this is an issue that Enfold never addressed and lots of people have made that mistake as it is easily done and there is NEVER a pop up message to confirm if you want to reset options even if pressed by mistake. I have dome that mistake befoorwe and I can see from the support logs that it has been an onging issue.

    Thank you Yigit for offering a solution, I have been using this code as soon as I start working on an Enfold websigte and that ios loads as this button is really a killer and should be put somewhere else where its not being pressed by mistake all the time.

    Thanks
    Emmy

    • This reply was modified 5 years ago by Emmygraph.
    #1154854

    Hi Emmy,

    Thanks for the feedback, we’ll consider changing the layout in some way to make it more difficult to press the button by mistake.

    Best regards,
    Rikard

    #1155100

    the first thing when activating Enfold as theme i do insert this to my child-theme functions.php:

    function admin_head_mod() {
      echo '<style type="text/css">
      #avia_quick_css .avia_description {float: none;margin-bottom: 20px !important;padding-left: 0 !important;width: 98%}
      #avia_quick_css .avia_control {float: left;max-width: 98% !important;width: 98% !important}
      .avia_footer_links li {float: left;padding-right: 20px}
      .avia_footer .avia_footer_save {float: left}
      .avia_reset {pointer-events: none !important }
      #avia_options_page { max-width: 3000px!important}
      </style>';
    }
    add_action('admin_head', 'admin_head_mod');

    or in that code abbove set .avia_reset to display:none

    it disables the reset button and let the quick css field and the whole options page grow to max width.
    The quick css is to narrow for some selectors.

    #1155197

    Hi,

    Thanks for sharing @guenni007, it’s much appreciated :-)

    Best regards,
    Rikard

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.