ThemeForest

Referencing a stylesheet into functions.php? (wordpress)

24 posts
  • Has been a member for 3-4 years
  • Sold between 100 and 1 000 dollars
  • Bought between 1 and 9 items
wetwilly92 says

I know its specific, but I was wondering if any of you premium wordpress Coders know how to do this? It would make my admin options much more user friendly. :)

Jordan

4 years ago
7 posts
  • Has been a member for 0-1 years
  • Exclusive Author
  • Sold between 1 and 100 dollars
  • United Kingdom
colingrist says

Why would you want to do this?

Is this for overwriting content editor styles or something?

2 months ago
18 posts
  • Has been a member for 0-1 years
  • Exclusive Author
  • Sold between 5 000 and 10 000 dollars
  • Bought between 1 and 9 items
  • Referred between 1 and 9 users
wpavatar says

Do you mean, you want to selectively reference style sheets based on logic? Like if something specific is going to be loaded at the front end, the the css corresponding to it should also be loaded. something like that?

I think it is as simple as using the function wp_enqueue_style.

Or probably you mean something else!

Regards Nick

2 months ago
111 posts
  • Has been a member for 1-2 years
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Bought between 1 and 9 items
  • Europe
  • Referred between 10 and 49 users
cosmincotor says

I think he found a solution, probably 4 years ago … :D

2 months ago
7 posts
  • Has been a member for 0-1 years
  • Exclusive Author
  • Sold between 1 and 100 dollars
  • United Kingdom
colingrist says

Oops hehe, there’s me trying to contribute and im going back too far in the paging!

:d

2 months ago
18 posts
  • Has been a member for 0-1 years
  • Exclusive Author
  • Sold between 5 000 and 10 000 dollars
  • Bought between 1 and 9 items
  • Referred between 1 and 9 users
wpavatar says

ha ha ;) this is a bit embarrassing. but funny ;)

2 months ago
by
by
by
by
by