3231 posts
  • Has sold $5,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Located in United States
  • Has been part of the Envato Community for over 4 years
+1 more
organicbee says

....

that wont work, wp_enqueue_scripts is ran before youd use set_some_element_style

148 posts
  • Has been part of the Envato Community for over 1 year
loveetc says

that wont work, wp_enqueue_scripts is ran before youd use set_some_element_style

Yes that doesn’t work. Could you please tell how I can pass custom css to a function to add inline css then? Thanks.

426 posts
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Sells items exclusively on Envato Market
+2 more
SimpleSites4U says

Just to throw something in the mix, if you look at the head of the very latest WP theme, there is a bit ol’ bit of styling – so it would seem its ok to do what im doing by just passing the options and echoing them in the head – well, it is for most anyway

535 posts
  • Has referred 10+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Located in Slovakia
+3 more
LubosVolovar says

I am wondering if inline CSS is also not allowed when defining background image of a slide in custom slider.

by
by
by
by
by
by