Learn how to remove the WordPress.com toolbar at the top of your site and restore the traditional WordPress admin bar.
Tag: wordpress themes
Passing variables to a WordPress template efficiently
Learn to efficiently pass variables to a WordPress template and use them in it
Passing variables when loading templates in WordPress
One caveat faced by developers using get_template_part is the inability of passing variables to the loaded templates. There is, however an alternative using locate_template. Overview In this example we're going to display three Easy Digital Download entries. I've been using EDD for a while now and while it has a lot of features it's still… Continue reading Passing variables when loading templates in WordPress
Jetpack Infinite Scroll for search results
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
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
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
Make embedded tweets in WordPress responsive
WordPress allows you to embed tweets by pasting the tweet URL into your posts. You get a nice card with the tweet and all relevant details. Sadly, this card will not work on responsive sites due to a fix width applied by Twitter. In this post we'll see how to remove it and also make… Continue reading Make embedded tweets in WordPress responsive
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
Add a custom login to your WordPress theme
One area that is integral to a WordPress powered site but is currently a bit difficult to stylize is the login area. Moreover, it's not something move around to place on sidebars or the site header. In this tutorial we will see how to create a shortcode that you can use everywhere, from your Text… Continue reading Add a custom login to your WordPress theme