Did you add the template tag underneath the <body> tag in the header.php of your child theme as instructed in the Installation Instructions?
Thank you Chris. I know absolutely nothing about editing files but was able to muddle my way through it. I notice some of the images and text appear behind the notification and some appear in front. Not exactly as I prefer, but it will do until I can find something better. Thank you for the prompt reply, I did not expect that. 🙂
I notice some of the images and text appear behind the notification and some appear in front.
I’ve seen that happen a couple times, too, when using the “sticky” option, which sticks the notification at the top of the page. It has to do with the z-index value of the notification vs. the other elements on the page. If that happens, you can add this to your child theme or the custom CSS area in the options page:
.notification {
z-index: 999;
}
In most cases, that will put the notification on top of everything else.
Glad you got it working. Unfortunately, there isn’t a built-in function that allows this kind of functionality to be able to add an HTML element right at the top of the page (see this Trac ticket), so the only way to do it is via the template tag in the theme. I’m hoping that more theme developers will start using this kind of hook in their theme, so this plugin (and any others like it) will be a bit more universal. The new Twenty Fourteen theme has a hook built-in that’s very similar which I’m planning on adding support for in the Notifications plugin — hopefully that will prompt more themes to use it as well.
Thanks again Chris for your help. I will try to add that code and see if I get it right. If not I can leave it to be unsticky(?)
I envy you young people to be able to understand all this coding stuff. For seniors like myself, we need simple things 🙂
It’s never too late to start learning 🙂