15 posts
  • 3 Years of Membership
  • Author Level 2
  • Collector Level 1
  • Exclusive Author
webcaos
says

Is possible to use a dynamic stylesheet generated by a custom function and then enqueue it? Or break some rule?

Thanks ;)

185 posts
  • 6 Years of Membership
  • Exclusive Author
partnuz
says

Is possible to use a dynamic stylesheet generated by a custom function and then enqueue it? Or break some rule? Thanks ;)

Bump I would also like to know that.

110 posts
  • Affiliate Level 1
  • Author Level 6
  • Beta Tester
  • Collector Level 1
+5 more
designedbydash
says

Is possible to use a dynamic stylesheet generated by a custom function and then enqueue it? Or break some rule? Thanks ;)

I am pretty sure that would be allowed, but I wouldn’t recommend it as I’ve seen on numerous occasions authors saying they’ve done it and it’s just caused headaches. Largely due to different server setups and file permissions etc.

350 posts Gambit
  • 6 Years of Membership
  • Affiliate Level 3
  • Author Level 7
  • Collector Level 4
+6 more
bfintal
says


Is possible to use a dynamic stylesheet generated by a custom function and then enqueue it? Or break some rule? Thanks ;)
I am pretty sure that would be allowed, but I wouldn’t recommend it as I’ve seen on numerous occasions authors saying they’ve done it and it’s just caused headaches. Largely due to different server setups and file permissions etc.

I’m sure it’ll be allowed also.

I’ve done this with my themes. Instead of writing files (indeed too much headaches), I opted for PHP that writes out the styles with headers for CSS. Just use caching and expire headers, it works wonders.

1486 posts
  • Trendsetter
  • Most Wanted Winner
  • Author Level 5
  • Collector Level 4
+8 more
greenline
says
I love especially the next phase, phase 2:
is about separation of concerns. Themes should be responsible for the look and feel of a website, while plugins take care of the functionality. This is precisely why the two exist.

I love this, finally we will be closer to quality standards.

And of course it will help CC authors too, in the cases when TF authors were buying the extended license of a plugin for 30$ and then included it in their themes and making thousands of dollars based on it…

15 posts
  • 3 Years of Membership
  • Author Level 2
  • Collector Level 1
  • Exclusive Author
webcaos
says

I’m totally confused about one point:

Allowed in theme: Page builders

Must be in plugin: Shortcodes

Page builders do a large use of shotcodes, for columns, buttons, tabs, etc.

Someone can make me understand this point please? :)

1368 posts
  • Copyright Ninja
  • Trendsetter
  • Weekly Top Seller
  • 5 Years of Membership
+7 more
Smartik
says

I’m totally confused about one point:

Allowed in theme: Page builders

Must be in plugin: Shortcodes

Page builders do a large use of shotcodes, for columns, buttons, tabs, etc.

Someone can make me understand this point please? :)
Best solution: Everything in plugins. ;)
15 posts
  • 3 Years of Membership
  • Author Level 2
  • Collector Level 1
  • Exclusive Author
webcaos
says

Best solution: Everything in plugins. ;)

Is what i was thinking, but the problem is that in my custom framework i have lot of custom functions shared between the normal WP loop and what i’ll now need to move in plugins. So, or duplicate all the shared functions for make the plugins work even with a normal theme, or all bundled plugins which i’ll make as theme support will be totally useless with another theme. Don’t know if is easy understand what i mean… :)

3 posts
  • 4 Years of Membership
  • Collector Level 2
  • Saudi Arabia
mustafaamd
says

No understand ?

15 posts
  • 3 Years of Membership
  • Author Level 2
  • Collector Level 1
  • Exclusive Author
webcaos
says

No understand ?
What i mean is: Example, i have many custom metaboxes for different post types and post formats, if i put all the code for my custom metaboxes in a plugin, this plugin would be useful only with my theme, as is useless for another theme cause probably another theme dont call at all in the frontend the values of my custom metaboxes… Mean just this, is kinda odd make a plugin which can be used only with a theme, had more sense integrate it in the theme. :)
by
by
by
by
by
by