Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author webpushr

    (@webpushr)

    Try adding the following code in your theme’s function.php file:

    //Hide Webpushr subscription bell from admin panel
    function hide_webpushr_bell(){
    ?><style>#webpushr-bell-optin{display:none}</style><?php
    }
    add_action(‘admin_head’, ‘hide_webpushr_bell’);

    Reach out to our support e-mail if you still have any questions.

    This code return the following error:

    constant ‘admin_head’ - assumed '‘admin_head’' (this will throw an Error in a future version of PHP) in /home/customer/www/mydomain.com/public_html/uag-test/wp-content/themes/twentytwentyone/functions.php on line 649
    
    Warning: Use of undefined constant ‘hide_webpushr_bell’ - assumed '‘hide_webpushr_bell’' (this will throw an Error in a future version of PHP) in /home/customer/www/mydomain.com/public_html/uag-test/wp-content/themes/twentytwentyone/functions.php on line 649
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/customer/www/mydomain.com/public_html/uag-test/wp-content/themes/twentytwentyone/functions.php:649) in /home/customer/www/mydomain.com/public_html/uag-test/wp-includes/functions.php on line 6821
    Thread Starter marbs

    (@marbs)

    Hi @webpushr and thanks but the code did not resolved the issue.

    Thread Starter marbs

    (@marbs)

    Anyone there?

    Thread Starter marbs

    (@marbs)

    Thread not answered: How to remove bell icon in the wp-admin section?

    Reach out to our support e-mail if you still have any questions.

    I prefer to address this issue here so other people can learn from it in the future.

    • This reply was modified 2 years, 7 months ago by marbs.
    Thread Starter marbs

    (@marbs)

    @lisaksocial try this:

    /*HIDE WEBPUSH BELL*/
    function hide_webpushr_bell(){
    ?><style>#webpushr-bell-optin{display:none}</style><?php
    }
    add_action('admin_head', 'hide_webpushr_bell');

    and refresh your admin page. It worked for me.

    Thread Starter marbs

    (@marbs)

    Update: Previous solution no longer working. Use this instead:

    /*HIDE WEBPUSH BELL*/
    function hide_webpushr_bell(){
    ?><style>#_prompt_overlay, #webpushr-bell-optin{display:none!important;}</style><?php
    }
    add_action('admin_head', 'hide_webpushr_bell');

    @webpushr

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to remove bell icon in the wp-admin section?’ is closed to new replies.