Question

Photo of Austin Spooner

0

Changing color of social media icons

We added (2) new social media person attributes (mostly used for our staff directory) - one for Linked In and another for the individuals blog. I also added the font awesome icons to correspond to these. Where does one change the CSS for these icons correctly so it does not get overwritten on a future upgrade? 



Mountain View
  • Photo of Michael Garrison

    0

    This is very likely not the method you're looking for (I imagine you want to customize the Rock theme or create your own clone that persists through updates - which is not something I'm familiar with in Rock).

     

    But it works, in a pinch.

     

    Add an HTML block to the top of the "IndividualDetail" zone, on "All pages using 'PersonDetail' Layout".

    socialiconcolors1.jpg

    If you wanted to go for a gaudy Christmas theme on the twitter button, you could put this in the block: 

    <style>
      .icon-twitter.icon { background-color:#f00 !important; }
      .icon-twitter.icon a { color:#0f0 !important; }
    </style>

     

    Ta-da!

     socialiconcolors2.jpg

    • Michael Garrison

      Obviously, you'd use a different class for your icons, since upon re-reading your question I see you've added new attributes. But the principle is the same- rather than rolling it into the core theme you can always just drop it on the profile pages directly.


      Alternately, I think there's a new theme compiler in v5 which may come in handy for this, if you can wait a bit. But like I said, I'm not extremely familiar with theming Rock.

  • Photo of Jim Michael

    0

    I would just style these badges inline... it's not like you're going to be referencing them in a bunch of places, and it keeps you from having to mess with CSS and all that.

    Something like

    <div class="badge" style="color:#b00000" ...

    • Jim Michael

      Oh wait, sorry... I didn't read close enough and thought you were dealing with person badges, not attributes. Let me poke around.

  • Photo of Austin Spooner

    0

    Person badges that are automatically showing up - their not even ones you configure. Just add a person attribute to social media person attribute group and you get a new badge. 

  • Photo of Austin Spooner

    0

    I actually added the CSS to the Pre-HTML on the bio block. That worked great.