WordPress Quick Tips

Posts Tagged ‘javascript

Using PHP variables in JavaScript with wp_localize_script

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 [...]

Oakwood Creative is hiring a front end developer!

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 [...]

Add your own CSS classes to tinyMCE

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 [...]


About

WordPress Quick Tips is a blog supplying great tips about WordPress.

We hope to create a great knowledge resource for WordPress developers as well as serving a reminder for all the forgetful ones.

The blog is created and run by Vincent of Oakwood Creative

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 86 other followers

Follow

Get every new post delivered to your Inbox.

Join 86 other followers