Passing variables to a WordPress template efficiently

Learn to efficiently pass variables to a WordPress template and use them in it

How to check in WordPress if a plugin is active in network or single site

While developing a theme or a plugin we sometimes need to check if a certain third-party plugin is available for use. Here you'll learn a simple way to detect not only if the plugin is active in a single site but also if it's network-wide enabled. Overview WordPress stores the list of active plugins in… Continue reading How to check in WordPress if a plugin is active in network or single site

How to check if a WordPress plugin is active in network or single site

While developing a theme or a plugin we sometimes need to check if a certain third-party plugin is available for use. Here you'll learn a simple way to detect not only if the plugin is active in a single site but also if it's network-wide enabled. Overview WordPress stores the list of active plugins in… Continue reading How to check if a WordPress plugin is active in network or single site

Convert WordPress.com youtube shortcode to WordPress.org

WordPress.com includes some unique features for their users, such as the ability to embed videos using the shortcode. Trouble arises when users migrate their blogs to a self-hosted solution using WordPress.org, since the format is incompatible.In this post we will see how to create a shortcode that allows to display the shortcode in… Continue reading Convert WordPress.com youtube shortcode to WordPress.org

Stylize pagination links in WordPress posts

WordPress offers a relatively little known feature to split your extremely long posts into different pages. However, it's a bit difficult to stylize so it matches your overall site style since by default, WordPress¬†doesn't apply CSS classes to target its elements. Let's learn how to filter the function that outputs them and add classes to… Continue reading Stylize pagination links in WordPress posts

WordPress drop down menus: highlight parent items with jQuery

It's generally useful in sites with extensive drop down menus and many levels of hierarchy to highlight the parent item that encompasses the list of current items in the menu we're now browsing so we can keep track of where we are. In this tutorial we will learn how to use jQuery to achieve this… Continue reading WordPress drop down menus: highlight parent items with jQuery

Tweaking your user profile page in WordPress

The following functions will help you when tweaking your user page. Use them in the functions.php of your theme: <?php add_action( 'admin_head', 'user_profile_remove_color_scheme'); add_action( 'personal_options', 'sfn_personal_options'); add_action( 'show_user_profile', 'sfn_user_profile' ); add_action( 'edit_user_profile', 'sfn_user_profile' ); add_action( 'user_contactmethods', 'sfn_user_contactmethods'); //hooks for user registration and deletion add_action( 'user_register', 'sfn_user_register'); add_action( 'delete_user', 'sfn_delete_user'); function user_profile_remove_color_scheme() { global $_wp_admin_css_colors; $_wp_admin_css_colors… Continue reading Tweaking your user profile page in WordPress

Firefox Aurora introduces native developer tools

Firefox Aurora, the Firefox releases channel with the newest innovations now includes the new development tools so developers can inspect and tweak a web page's HTML and CSS, accessing console, logs and even a nice feature called Scratchpad, to write JavaScript on the fly and execute it. For a long time most developers relied on… Continue reading Firefox Aurora introduces native developer tools