-
How do we style “individual” players on the same wordpress page? I want different color schemes per player
Foliovision › Forums › FV Player › How to … › CSS Style “Individual” Players used on the same page
Hello Nicole,
when using FV Player 7 Beta you can use the skin attribute of the shortcode, like this:
[fvplayer src="https://video-cdn-public.foliovision.com/Swan-Lake-Reloaded-sd.mp4" skin="slim"] [fvplayer src="https://video-cdn-public.foliovision.com/Swan-Lake-Reloaded-sd.mp4" skin="youtuby"] [fvplayer src="https://video-cdn-public.foliovision.com/Swan-Lake-Reloaded-sd.mp4" skin="custom"]
We will add it to the shortcode editor.
Thanks,
Martin
Hello Nicole,
if you need the players to have different colors, you have to wrap each in a DIV and give it a class or a unique ID. After that you can target each player it’s own styling as follows:
div.YOUR_CUSTOM_CLASS .flowplayer.skin-custom .fp-color, .flowplayer.skin-custom .fp-selected { background-color: #COLOR !important; } div.YOUR_CUSTOM_CLASS .flowplayer.skin-custom .fp-color-fill .svg-color, div.YOUR_CUSTOM_CLASS .flowplayer.skin-custom .fp-color-fill svg.fvp-icon, div.YOUR_CUSTOM_CLASS .flowplayer.skin-custom .fp-color-fill { fill: #COLOR !important; color: #COLOR !important; }
You have to place it in your theme stylesheet.
thanks
Viktor
This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.
Strictly Necessary Cookie allow you to log in and download your software or post to forums.
We use the WordPress login cookie and the session cookie.
If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.
Foliovision.com uses self-hosted Rocket.chat and self-hosted Freescout support desk to provide support for FV Player users. These cookies allow our visitors to chat with us and/or submit support tickets.
We are delighted to recommend self-hosted Rocket.chat and especially Freescout to other privacy-conscious independent publishers who would prefer to self-host support.
Please enable Strictly Necessary Cookies first so that we can save your preferences!
This website uses Google Analytics and Statcounter to collect anonymous information such as the number of visitors to the site, and the most popular pages.
Keeping this cookie enabled helps us to improve our website.
We reluctantly use Google Analytics as it helps us to test FV Player against popular Google Analytics features. Feel free to turn off these cookies if they make you feel uncomfortable.
Statcounter is an independent Irish stats service which we have been using since the beginning of recorded time, sixteen years ago.
Please enable Strictly Necessary Cookies first so that we can save your preferences!