I’m boldly claiming that this is best practice for dynamically loading a style or script in WordPress. Why? The loaded code is protected by a nonce. Disagree? Please tell me why, I’m learning every day.
Continue reading Introduction Background: EPiServer is the CMS for the Norwegian Government main site, www.regjeringen.no and we use WordPress for more ad hoc sites. Task: Based on the design guide for regjeringen.no, add 23 video to WordPress.
See how I did it
The CSS Flags
plugin / library for WordPress loads a dynamicly created CSS. It has the following responsive Scalable Vector Graphics (SVG) flags:
See the flags
At work we’re developing
a new WordPress theme. The theme “depends” on a few plugins. We are adding the plugins using the TGM Plugin Activation library.
See how we did it
TL;DR: Create a .deployment file and push it to GitHub:
[config] DEPLOYMENT_TARGET = D : \ home \ site \ wwwroot \ wp - content \ themes \ my - theme Continue reading