Jump to content

Archived

This topic is now archived and is closed to further replies.

yogibear080

Change Individual Color On Ibox Icons

Recommended Posts

yogibear080

Hi,

 

I hope I am posting in the correct section here and I apologize in advance if not. I am wondering if someone could help me here. I am looking to change individual colors on the ibox icons. I have managed to change them all to one color using my basic css skills but I am struggling here a bit with making them all different colors, ie. Facebook icon blue and another one red etc. I look forward to any reply as I'm seriously close to banging my head off the wall :-( Cheers in advance.

 

Yogibear080 


_______________________________________________________________________________________________________________________Yogibear080. www.connaughtweb.com/home

West of Ireland

Share this post


Link to post
Share on other sites
greenfly

Could we have a link to your site please and any examples of code you have tried? 


The answer to many issues can be found by searching in the forum before posting as someone else  may very well have had the same problem before you have.  Also, reading the documentation can help you gain a good understanding of how everything works. 

 

Please do not send me private messages. Occam's razor - The principle states "Keep things simple!"

Share this post


Link to post
Share on other sites
greenfly

When you set up iboxes you have the option to add a class to each individual ibox. Add a custom class to each individual i box and then you can add some custom CSS for each class.

 

\For this example imagine i add the custom class bx1

 

The Custom code to change each box color is

 

.bx1 .pl-contrast {
  background-color:#333333;
  background-position:initial initial;
  background-repeat:initial initial;

}

 

Change #333333 for your desired color. 


The answer to many issues can be found by searching in the forum before posting as someone else  may very well have had the same problem before you have.  Also, reading the documentation can help you gain a good understanding of how everything works. 

 

Please do not send me private messages. Occam's razor - The principle states "Keep things simple!"

Share this post


Link to post
Share on other sites
yogibear080

Sorry it doesn't seem to make any difference. I put the code into the section in the ibox setup section and I also tried it without the current code on my page and still nothing happened. I inspected the element on my browser and seen the code there but no changes took effect.


_______________________________________________________________________________________________________________________Yogibear080. www.connaughtweb.com/home

West of Ireland

Share this post


Link to post
Share on other sites
greenfly

did you add the custom code to the custom code tab in the visual editor and the class to the settings in the ibox local settings? http://d.pr/i/Fw4V


The answer to many issues can be found by searching in the forum before posting as someone else  may very well have had the same problem before you have.  Also, reading the documentation can help you gain a good understanding of how everything works. 

 

Please do not send me private messages. Occam's razor - The principle states "Keep things simple!"

Share this post


Link to post
Share on other sites
yogibear080

I did yes and nothing is happening. I have done it through the Wordpress Editor too and nothing is changing.


_______________________________________________________________________________________________________________________Yogibear080. www.connaughtweb.com/home

West of Ireland

Share this post


Link to post
Share on other sites
James B

To change the color on a box icon you'll need to use the following css

 

.section-ibox .media-type-icon {
    background: none repeat scroll 0 0 #FFFF00;
    box-shadow: 0 0 5px #EAEAEA;
    color: #FFFFFF;
}
 
To change it on a per box basis, you'll need to use the box class you've set as a prefix. Something like
 
.bx1 .media-type-icon {
    background: none repeat scroll 0 0 #FFFF00;
    box-shadow: 0 0 5px #EAEAEA;
    color: #FFFFFF;
}

Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
yogibear080

Cheers. I'll give this a go later thanks for the quick replies they are much appreciated.


_______________________________________________________________________________________________________________________Yogibear080. www.connaughtweb.com/home

West of Ireland

Share this post


Link to post
Share on other sites
Danny

Each iBox you create has an option to add a unique class to that specific iBox. So if you create some custom CSS like so:

 

.blue-text { color: #428BCA; }
.green-text { color: #5CB85C; }
.red-text { color: #D2322D; }

 

Then add one of the class names to your iBox like so - http://d.pr/i/gZH4

 

Then repeat the same process for each iBox giving it a classname from your custom CSS or use the code above, then you will end up with something like this:

 

http://d.pr/i/xPhR


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

  • Similar Content

    • chamois_blanc
      By chamois_blanc+
      Hello,
      Shouldn't the image PL5 component be using the srcset/picture css directives to pick the correct size for an image? or it does already and I don't know how to use it? Thank you for any advice or enlightenment.
    • stijnxo
      By stijnxo+
      Is there a way to disable the responsive function of your iBoxes?
      I do not want all iBoxes underneath each other on mobile, is there a way to fix columns or group boxes?
      I use them for small links and want them to stay next to each other, see attachment
      Please let me know.



    • Dan Haddock
      By Dan Haddock
      Plugins Active and installed: 
      Akismet Anti-Spam
      Coming Soon Page & Maintenance Mode by SeedProd
      Contact Form 7
      Cookie Law Info
      DMS Professional Tools  
      Enhanced Media Library  
      Flamingo
      Google Analytics for WordPress by MonsterInsights
      Google XML Sitemap
      Jetpack by WordPress.com
      Legull 
      Loginizer   
      MailChimp for WordPress
      PageLines Updater    
      Schema App Structured Data 
      Sucuri Security - Auditing, Malware Scanner and Hardening
      Uber reCaptcha    
      Yoast SEO
      Wordpress Version: 4.8.1
      Pagelines Version: 2.2.4
       
      Good Evening/Afternoon or Morning, 
      I am running into a problem with CSS styling not applying inside of most browsers (Safari, Firefox) when I am logged in to wordpress, and all browsers that I have tested when I am logged off and the site has been made public (Chrome, Firefox and Safari).
      As a result, I have managed to identify the probable cause. It looks as though these browsers are refusing to render my sites compiled CSS file due to it being a HTTP URL rather than HTTPS.
      I have attempted to change this URL to HTTPS in my browser, however it brings back an ERROR: File not found page - https://www.shortfilmblog.com/wp-content/uploads/pagelines/compiled-css-core-1505847507.css
      What would you suggest in this regard? Would this be resolvable from your end?
      Happy to provide any further details required.
    • Borries
      By Borries+
      I know this is not an easy problem. Maybe there is a easy solution.
      I have tryed to uses the existing solution, that I have found in the forum
      I changed the colours of my nav (simple nav) and the hover effect (a. hover).
      I really tryed to highlight the active/used link in the nav but I cant figure it out.
      I want it to be black when active.
      Any help would be appreciated. Thanks.
      http://www.marcborries.de  nav link: "Sinn & Selbst" 
    • Steve Webb
      By Steve Webb+
      I am having an issue with DMS editor not loading.  Just keeps spinning and spinning.
      Have tried several things - Logged in and out, cleared cache, deactivated all plugins, but the issue persists.
      I even had our host restore from a backup a few weeks ago, when I know it WAS working, as I edited a text box on the homepage.  The restore from backup didn't help either.
      Also, the front end of the site shows that the site is framed, or boxed now (whatever you call it), instead of full width as it was previously (last week).
      Dev console shows that there are php errors in Google maps - file is attached.
      Can someone please help?  Not sure what else I can do here...
      Thanks in advance.
      -Matt

×