Hi @louisapple: Could there be a conflict with another plugin that’s running on your production site but not your staging site, or a typo/difference between the two CSS statements you’ve written?
In general, if you know how to, I’d first view the page source and serach for some unique aspect of the CSS you added (such as “f98b8b”) to verify that the CSS was actually output by the plugin into your admin page. If so, then I’d use your browser’s inspector tool on the element (the note content) that you were trying to change to see if there is a CSS rule that may be more specific (and therefore takes precedence) over the rule you provided.
I did just release v2.0.1 of the plugin which fixes a bug some users were experiencing, but that was mostly related to the plugin page not appearing. But I’d recommend using the latest just to be absolutely sure things weren’t also affecting you.
can i paste the view source page here?
The style you configured via the Add Admin CSS plugin does appear in the source snippet you provided, so that’s confirms the plugin is working and is basically the primary thing the plugin is meant to do.
I don’t know enough about what else is going on in the page, but it will likely be one of the following issues:
1. The CSS selector you provided is incorrect and doesn’t match the element you intended.
2. There is another CSS rule with greater specificity for the element you are targeting, so that rule is overriding yours.
I’d suggest again to use your browser’s inspector tool on the element (the note content) that you were trying to change to see if either of these are the case. You should be able to see your custom styling applied and if it’s getting overridden.
it works now and i did not do anything, just active and reactive the plugin
and i realised that it is not only work for preivate note only, if the order note was created from user even put order from on hold to proecessing, it will be highlighted as well
is that any way to just hightlight private note?
It sounds like you’re getting into the realm of using CSS itself and not necessarily the functionality of the plugin.
What you want may be possible. It really depends on the HTML markup used for these private notes. I don’t know what you have generating these notes or what the markup looks like, including any potential HTML classes being used, so it’s difficult to provide any assistance.
Based on the CSS you were trying, it seems reasonable that it affects all notes since there isn’t anything that indicates the CSS should only apply to private notes and not other types of notes.
Again, the markup used for the notes will dictate if private notes can be specifically targeted and how.
- The topic ‘change colour for private note’ is closed to new replies.