| bio | website | derk-jan.karrenbeld.info |
|---|---|---|
| location | Delft, The Netherlands | |
| age | 21 | |
| visits | member for | 1 year, 9 months |
| seen | yesterday | |
| stats | profile views | 11 |
Still a random idiot
He is, including, but not limited to, a dancer, does competitions in sailing and ballroom- and latin dancing, designs yearbooks, writes for the faculty magazine about computer science and mathematics, writes about local events, voluntary work and other youth talent in the local newspaper, and about lymphoma (cancer) and other inspiration on his blog. Any free time is filled with friends, family, learning himself to play piano and game-development.
Enjoys every moment of life.
|
Jan 16 |
comment |
Is it ever okay to include inline CSS in plugins? @MarkKaplun, you are correct. I usually write this post about both CSS and JS. Let me edit that. |
|
Jan 16 |
comment |
Is it ever okay to include inline CSS in plugins? You can't, but the user of the plugin can. There are several plugins and functions written to, just before the page is outputted, get ALL the enqueued styles and add them to a minified, combined file. No matter how many CSS files you add, the viewer will only see one. Same for javascript. However, this is in your case not your 'problem'. It's optimization that is not needed and imho, the extra HTTP request kinda falls short against all the PRO's. |
|
Jan 16 |
awarded | Yearling |
|
Jan 16 |
comment |
Is it ever okay to include inline CSS in plugins? @bungeshea If someone is going to change your plugin, they might want to change the backend too right ;) Just make sure you only enqueue the script when on the backend. For example: function _your_enqueue( $hook ) can test $hook to see if your on your options page. Alternatively you can use current_screen() for simpler properties. The thing is, you ARE allowed to do this, but the general use is a plugin consists of a .php file for serverside code and may or may not have images, .js and .css files. |
|
Jan 16 |
comment |
Restrict url to one segment, even when page or post is nested A solution per plugin is given here: wordpress.stackexchange.com/questions/56380/… |
|
Jan 16 |
answered | Is it ever okay to include inline CSS in plugins? |
|
Jan 16 |
comment |
Difference between Option_Group and Option_Name in Register_Settings Yes, yes and yes. That's the reason why tutorials use the SAME identifier for name as for group. The thing is, you don't NEED to. You may always register multiple name for a single group. Can be convenient if you have optional modules with separate save code. Saving might overwrite options already there. So you register a new option. But displaying them should happen at the same options page, so you tie it to the same group and voila. |
|
Jan 15 |
answered | Difference between Option_Group and Option_Name in Register_Settings |
|
Jan 15 |
awarded | Teacher |
|
Jan 15 |
answered | Proper Javascript Implementation |
|
Jan 4 |
awarded | Supporter |
|
Nov 2 |
awarded | Autobiographer |