No option to dismiss amp notice in plugin list (bug?)

Posted in: Newsmag
Post count: 9544

Hi, folks
fyi, there is no option to remove (or [x] dismiss) the notice in plugin list, which appears below the Automattic AMP plugin listing when active:

The tagDiv Mobile Theme now works best with the AMP plugin to provide a complete solution for your content on mobiles. You can find out more here.

We are not using TD mobile theme.

Post count: 35449

Hi simchris, for that message was used the same options were as the one for the plugin update – https://i.imgur.com/txEt2a3.png that message was added I think 2 years ago
Thank you!

Post count: 9544

Yes, but you will note unlike other messages, even in your screen shot there is no (x) option to remove/dismiss the message, so it’s stuck there in the plugin list ‘forever’ which is a bit intrusive since not needed unless actually using the TagDiv mobile plugin. We have already had an AMP setting set in the AMP plugin since the ‘official’ AMP plugin launched, and do not use a TagDiv theme for the AMP endpoint. Si an option to ‘dismiss’ that message would be helpful. 🙂

Post count: 9544

Not like the world will end if I have to see that notice forever. 🙂

Post count: 35449

Hi,
Yes, I understand, but unfortunately for the moment there is no option to close that message, but I will try to make a function that closes that message.
Thank you!

Post count: 9544

Awesome. Again not earth shattering issue, just annoying in minor OCD way 🙂

Post count: 35449

Hi,
Right now if you want you can use this code , yu need to set it in functions.php and that notice will no longer be displayed.
Thank you!

Post count: 9544

Updating for anyone else who finds this super minor annoying …
the code you reference, unfortunately drops the css above the main <head> element sitewide, vs the admin panel. SO, I did minor tweak, and this does work:
/* HIDE NEWSMAG AMP NAG */
add_action('admin_head', 'bye_amp_nag');
function bye_amp_nag() {
echo '<style>
.td-amp-plugin-warning .notice { display: none; }
}
</style>';
}

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