Okay
  Public Ticket #2591149
pop up
Closed

Comments

  • chelsealong started the conversation

    Hi,

    There is a pop up occurring on my site since I've started setting up a shop. Where can I go to the settings for it or how do I remove it?

    Thank you,

    Chelsea

  •  867
    Neuron replied

    Hi,

    We've hidden the options to remove it, since there are custom options that would affect ours.

    Can you please add the following PHP in your functions.php of the child theme or via Code Snippets plugin.

    https://wordpress.org/plugins/code-snippets/

    add_action( 'init', 'amartha_update_store_notice' );
    function amartha_update_store_notice() {        if ( get_option( 'woocommerce_demo_store_notice' ) ) {                update_option( 'woocommerce_demo_store_notice', false );        }
    }

    Feel free to ask for anything you need.

    Kind Regards


  • chelsealong replied

    I added the plugin and the code but I still seem to be seeing the pop up after refreshing a few times. What should I be doing differently? Attached some screenshots.

  •  867
    Neuron replied

    Hi Chelsealong,

    We've created you a new snippet and added the code that we've added you before and that Demo Store Notice at the top it's gone.

    https://prnt.sc/ve3bcs

    Feel free to ask for anything you need.

    Kind Regards


  • chelsealong replied

    I refreshed a few times, closed and tried in a new tab but the pop up is still showing

  •  675
    Neuron replied

    Hi Chelsea,

    Can you please add the following style in Custom CSS. Remove the other php code in Code Snippets.

    .woocommerce-store-notice.demo_store {
        display: none !important;
    }

    Feel free to ask for anything you need.

    Kind Regards


    Subscribe to our newsletter to get the latest updates about NeuronThemes and join our community Facebook Group.

  • chelsealong replied

    seem to be getting this error message now

  •  675
    Neuron replied

    Hi,

    Can you access wp-admin? Please remove the code snippets plugin.

    Kind Regards


    Subscribe to our newsletter to get the latest updates about NeuronThemes and join our community Facebook Group.

  • chelsealong replied

    any time I click on anything it takes me to that screen

  •  675
    Neuron replied

    Hi Chelsea,

    Can you please access file manager of your hosting? If you can, please go to the WordPress > wp-content > plugins and remove the Code Snippets plugin, or rename it to -old.

    Feel free to ask for anything you need.

    Kind Regards


    Subscribe to our newsletter to get the latest updates about NeuronThemes and join our community Facebook Group.

  • chelsealong replied

    okay I went into the panel and deleted the snippets plug in, couldn't see how to specifically change it. I can get into the wpadmin now.

  •  675
    Neuron replied

    Glad to know, is the notice showing now?

    Kind Regards


    Subscribe to our newsletter to get the latest updates about NeuronThemes and join our community Facebook Group.

  • chelsealong replied

    I tried to re instal the snippets plug in to add the second code you provided but when I reinstalled snippets I now get the critical error message again

  •  867
    Neuron replied

    Hi,

    Sorry if we weren't clear, you need to delete the Code Snippets plugin and then add the following code to Appearance > Customize > Additional CSS.

    .woocommerce-store-notice.demo_store {
        display: none !important;
    }

    Feel free to ask for anything you need.

    Kind Regards