Hi There,
We can not do that because there are <h2>
s in some areas of the site that you would not want to show your note/notice, what we can do is add your note/notice on top of every page content.
Please add this to your child theme’s functions.php file.
function custom_note() { ?>
<div id="mein_hinweis" class="x-alert x-alert-success fade in">
<h3 class="center-text">Wenn Ihr diese Seite am Mobiltelefon oder Tablet betrachtet, dreht dieses bitte auf quer und „wischt“ seitlich über die Tabellen um die gesamte Tabelle zu sehen!</h3>
<img width="100%" class="aligncenter" src="http://www.roadeagle-arnsdorf.de/meute/wp-content/uploads/Smartphone-drehen.jpg" alt="bitte das Gerät auf quer drehen" />
</div>
<?php }
add_action( 'x_after_the_content_begin', 'custom_note', 10 );
I know you already have the CSS needed but I’m going to post it here anyway.
#mein_hinweis {
display: none;
}
@media only screen and (max-width: 800px) and (orientation: portrait) {
#mein_hinweis {
display: block;
}
}
Hope that helps,
Cheers!