Archive for: February 2014

Tip Tuesday: WordPress URLs in JavaScript

| 0 comments

There are instances where you may need to use WordPress URLs in JavaScript files. However, hard-coding URLs is not an ideal solution, especially in situations where you have development and production environments. We can solve this by using the wp_localize_script() function.

Read More »

WordPress: Create a Custom Widget (Part 2)

| 4 comments

This entry is part of my WordPress development series, providing tutorials on specific things you can do in WordPress. Read some more?

In the second part of this tutorial, we are going to expand upon our basic custom widget we have already created by utilizing a simple form in the back-end. Unlike in the previous tutorial where each instance of the widget on our website displays the same, uneditable information, this widget will be able to have unique information for each instance of the widget placed throughout our website.

Read More »

WordPress: Create a Custom Widget (Part 1)

| 0 comments

This entry is part of my WordPress development series, providing tutorials on specific things you can do in WordPress. Read some more?

WordPress provides a lot of default Widgets that can be useful for displaying additional content in sidebars, footers, etc. But sometimes you may want to use a widget to display content that isn’t available in one of the default widgets, or you want to display the content in a different way. In Part 1 of this tutorial, I will show you how to create a basic custom widget, without any options, that you can use throughout your website to display whatever content you like!

Read More »