- This topic has 10 replies, 3 voices, and was last updated 5 years, 4 months ago by Leo.
-
AuthorPosts
-
December 3, 2018 at 4:52 pm #747247Sean
Hi,
I have used GP social lightweight widget at my footer for my social links, but the widget only allows me to set one colour for all social links. How do I set the individual colours for each social network?
Thanks
December 3, 2018 at 5:01 pm #747251LeoStaffCustomer SupportHi there,
You’d have to use some CSS like this:
.icon-set-lsi_widget-2 .lsi-social-facebook a { background-color: #000 !important; } .icon-set-lsi_widget-2 .lsi-social-linkedin a { background-color: #fff !important; }
Adding CSS: https://docs.generatepress.com/article/adding-css/
December 3, 2018 at 5:10 pm #747259SeanTried that, doesn’t seem to have worked.
December 3, 2018 at 5:13 pm #747266LeoStaffCustomer SupportIt should – I tested with browser inspect.
Not seeing the code being added?
December 3, 2018 at 5:23 pm #747271SeanMaybe it’s because i added the css in the simple css plugin.
December 3, 2018 at 5:48 pm #747292SeanI added the code, just no difference, the colours of the facebook and linkedin are still the same.
December 3, 2018 at 5:49 pm #747293LeoStaffCustomer SupportSimple CSS should work. However, I’m not seeing anything output.
Do you have other code added in there that might have an error?
December 3, 2018 at 5:55 pm #747294SeanI don’t think so, here is all the CSS used in the simple css plugin:
.clouds-hero { position: relative; } .clouds-hero img { position: absolute; left: 0; right: 0; top: 75vh; } @media (min-width: 769px) { .page-hero { height: 100vh; } } /* Big tablet to 1200px */ @media only screen and (max-width: 1200px) { .clouds-hero { position: relative; } .clouds-hero img { position: absolute; left: 0; right: 0; top: 77vh; } /* Small tablet to big tablet: from 768px to 1023px */ @media only screen and (max-width: 1023px) { .clouds-hero { position: relative; } .clouds-hero img { position: absolute; left: 0; right: 0; top: 80vh; } /* Small phones to small tablets: from 481px to 767px */ @media only screen and (max-width: 767px) { .clouds-hero { position: relative; } .clouds-hero img { position: absolute; left: 0; right: 0; top: 88vh; } /* Small phones: from 0 to 480px */ @media only screen and (max-width: 480px) { .clouds-hero { position: relative; } .clouds-hero img { position: absolute; left: 0; right: 0; top: 91vh; } .icon-set-lsi_widget-2 .lsi-social-facebook a { background-color: #3b5998 !important; } .icon-set-lsi_widget-2 .lsi-social-linkedin a { background-color: #0077b5 !important; }
December 3, 2018 at 6:51 pm #747313DavidStaffCustomer SupportEach of the media queries starting from /* Big tablet to 1200px */ are missing their enclosing
}
so the code at the end is not executing.December 3, 2018 at 7:16 pm #747325SeanGreat all working! thanks guys!
December 3, 2018 at 8:49 pm #747348LeoStaffCustomer SupportGlad we could help 🙂
This site is good if you need to check CSS errors: https://jigsaw.w3.org/css-validator/
-
AuthorPosts
- You must be logged in to reply to this topic.