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

    • Michael Kummer
      By Michael Kummer+
      Hi guys!
      I have noticed that my primary sidebar becomes intermittently invisible when browsing through various blog articles on michaelkummer.com/blog.
      See:
      https://www.dropbox.com/s/z646sgoa3mfjl1j/Screenshot 2018-07-12 15.57.46.jpg?dl=0 and https://www.dropbox.com/s/vdledzzgginvwgv/Screenshot 2018-07-12 15.57.57.jpg?dl=0
      Upon refresh, the sidebar appears. I have been using the following CSS code to hide the sidebar on mobile without any issues. 
      @media only screen and (max-width: 993px) {
      /* hide sidebars */
           .plsb {
              display: none !important;
          }
      }
      I tried to add the following CSS to force the sidebar to show on screens that are wider than 994 pixels but to no avail. Any clue what could be causing this issue?
    • Michael Kummer
      By Michael Kummer+
      Hi guys!
      I am using the LESS/CSS Pagelines extension and tried to add the following code to make use of FontAwesome:
      a.c2a:before {
          content: "\f07a\00a0";
          font-family: "Font Awesome 5 Pro";
          Font-weight: 900;
          font-style: normal;
          font-weight: normal;
          text-decoration: inherit;
          padding-left: 4px;
      }
       
      The issue is that as soon as I have the CSS via the Custom Styling text box, Pagelines (or the extension) strips out the backslashes (\). As a result, I had to abandon the CSS/LESS extension and instead add all my CSS code to a separate .css file.
      Is there a fix or workaround for this?
      Thanks
      Michael
    • glyph.marketing
      By glyph.marketing+
      Hello, I am having a problem similar to that experienced by Michael Kummer here. We have pages that show this automatic scrolling issue (examples here and here) and it is sufficiently annoying that we have seen customers bounce while trying to convert. Strangely, it only happens at specific resolutions, so it can be difficult to reproduce. In general we can only consistently reproduce it on a 4k resolution with a browser width between 1517 and 1536px. 
      Thanks to Michael Kummer's help we were able to set the overflow-anchor property to none in the entire body, which fixed the issue as far as we can tell, but also obviously disabled scroll anchoring for the whole site. I tried applying it to the specific element that looked like it was being reloaded, which was the PL Meganav extension, but that was unsuccessful. 
      Can anyone help us figure out which element or ID we can apply this property to, so that we can fix the scrolling issue but not disable scroll anchoring for the entire site?
      Thank you - 
      Glyph Language Services
    • stebac
      By stebac+
      Hello!

      Since i recently updated to WordPress 4.9.4 there have been some unusual behaviours with Platform 5 (version 5.1.8).

      I am unable to edit the colour pickers for the backgrounds (the boxes do not show up anymore) and when i activate a plugin from the extend menu it does not show up in my page editor tools.
      Is this a problem for everyone else?
      Thank you in advance for your time.
      Ste.
    • 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.
×