Posted by: Vincent on: April 25, 2012
There is many ways to pass dynamic variables to JavaScript. An easy way would be just to define the JavaScript variables in the <head> echoing the PHP variables. This will of course work, but there is a WordPress-way to do it as well. The function wp_localize_script gives you the ability to write a JavaScript object [...]
Posted by: Vincent on: June 30, 2011
The company I work for is currently hiring a front end developer. So if you’re located in Stockholm, Sweden or willing to relocate you should definitely check it out! We have put together a small site for you turn into HTML as a work sample, which could be fun as a night activity! More info [...]
Posted by: Vincent on: April 2, 2011
The Rich Text Editor (RTE) in WordPress use a JavaScript-library called tinyMCE. It is a widely used library and can be configured in a lot of ways. WordPress let developers filter the settings to tinyMCE so that it fits your needs. These few lines of code changes the buttons in the editor, and also adds [...]