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
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
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
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