Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
Best way to change background color in annouce?
Avatar
kvr28
Member
Free Members
sp_UserOfflineSmall Offline
Apr 7, 2015 - 7:15 pm

I added this to my wp-theme custom css

#spAnnounceMessage {
    color: #AEBC98;
    background: none repeat scroll 0% 0% #AEBC98;
    border: 1px solid #AEBC98;
 }

it works but sometimes there is a flash of the default blue before the custom color kicks in

I tried adding to my reboot-child css and that didn't work and I don't want to edit the core plugin files, any suggestions for the best way to do it? Thank-you

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 7, 2015 - 10:55 pm

not sure why it would flash, its not going to actually change because of css... that would require js or something modifying the DOM...

but I would actually suggest the below in your child theme css file:

#spAnnounceMessage {
    color: #AEBC98;
    background: #AEBC98;
    border: 1px solid #AEBC98;
 }

see if that works...

Avatar
Robert Provencher
Member
Free Members
sp_UserOfflineSmall Offline
Dec 4, 2015 - 5:20 pm

Hi there.  I am wondering about the background of the "announce" plugin as well.  

In regards to the answer above, when I am in "theme editor" what template am I duplicating and changing? How do I save it with a new name in editor so I do not overwrite the original?

A step by step instruction would be very helpful please. Also I am guessing instead of a color I could use the url of an image I have created for the background?

thanks for your patience.

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Dec 4, 2015 - 5:47 pm

Hey Robert,

First off you would need to get a child theme set up (the link has instructions). We offer the child theme frameworks for free in the store so setting one up shouldn't take long, just make sure that - for example if you are running Reboot, download the Reboot child theme framework.

Once set up you should then be able to access your child themes stylesheet through the theme editor (reboot-child.css or whatever you've named it) where you can then add the rule Steve posted above.

Yes, instead of colour you can indeed use the URL of an image using the CSS background-image rule.

Hope that helps, it should at least get you started - of course we will be here if you need any further help.

Avatar
Robert Provencher
Member
Free Members
sp_UserOfflineSmall Offline
Dec 4, 2015 - 6:36 pm

thanks for the quick reply. I have uploaded the child- default theme and can see it under my available themes. Now how do I see and edit the files from the child theme? I do not want to activate it because I assume that makes it live on the site.  When I open theme editor it only shows the files from the current default theme, not the newly uploaded child theme.

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Dec 4, 2015 - 6:41 pm

Assuming the child theme is set up correctly, if you activate it you won't notice a difference.

Essentially it acts as an overlay to the parent, so without any changes it will just be default as it was before. If you were to add one thing to your child theme's stylesheet, say:

#spMainContainer a.spButton {
    color: red;
}

then it would be default as you knew it before, just with red text buttons.

You can either edit the child theme stylesheet locally in a plain text editor such as Notepad++ then FTP it back up to your live site, or you can activate it, which should then allow you to edit it through the theme editor.

A child theme is a very useful thing to have to make those odd little changes!

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625