How can I hide the Webpushr preview button in wordPress Plugin?

How can I hide the preview button on the post edit page?

Put this code into functions.php of your template:

add_action(‘admin_head’, ‘webpushr_hidden’);

function webpushr_hidden() {
echo ’
#webpushr_13fw3_switch-mode {
display: none;
}
';
}

Hi,

I add this code in my functions.php but it give me an error, break my website!

Can you see that, and why don’t do an option for that on setting?

it’s a useless option that takes up space and if I click on it unintentionally, I can’t preview the article or publish it, I’m forced to exit and find the article in the drafts.

Sorry about it! We will add an option to turn this off in our next update.

Thank you for using Webpushr.

Did you add this option? I can’t find it in the config. And the writers are complaining that this BIG BAD BUTTON is slowing them down.

Hi,

Please add the following code in your function.php file to hide the Webpushr Preview button

function hide_webpushr_preview_button() {

?><style>#webpushr_13fw3_switch-mode-button{padding:0 8px;line-height:2.5; min-height:unset; font-size:13px;}#webpushr_13fw3_switch-mode-button svg{width:15px !important; margin-bottom:-6px !important; height:26px !important}.block-editor__container #webpushr_13fw3_switch-mode button{padding:0 8px} .block-editor__container #webpushr_13fw3_switch-mode-button{line-height:2} .block-editor__container #webpushr_13fw3_switch-mode-button svg{width:21px !important;}</style><?php

}
add_action( 'admin_head-post.php', 'hide_webpushr_preview_button' );
add_action( 'admin_head-post-new.php', 'hide_webpushr_preview_button' );

It doesn’t work in the classic editor. I have just removed the button code from
function webpushr_preview_button()

I understand that with every update I have to do it.

Hello
Is this resolved now? Cuz I tried everything you suggested but still couldnt find a way to hide the preview button.