When designing a WordPress theme you may want to add some .first and .last css classes to your WordPress navigation menus for styling purposes. This tutorial will show you how to acheive that by placing some filter code into your themes WordPress functions.php file that will modify all your menu items through “wp_nav_menu_objects” by adding .first and .last CSS classes allowing you to style menu items easily.
[Read more…]
Add .first & .last CSS Class Automatically To WordPress Widgets
Previously we showed you how to Add .first & .last CSS class to WordPress Navigation Menus to help with styling attributes when designing a WordPress theme. Today I though it would be beneficial to follow up that tutorial with one that shows you how to automatically add .first & .last CSS class’s to all WordPress widgets displayed anywhere on your site by adding a simple filter to the wordpress
Customize The Default WordPress Tag Cloud Widget With A WordPress Filter
This tutorial will show you how to customize the default WordPress tag cloud widget by using an easy to maintain and understand WordPress filter “widget_tag_cloud_args” that you can insert in your WordPress themes functions.php file.
[Read more…]
10 Useful WordPress Hacks And WordPress Functions
This article lists 10 Useful WordPress Hacks & WordPress Functions that you will find helpful when developing your own wordpress themes. A few of my personal favorite WordPress Tips in this list are Caching custom WordPress queries and Deluxe Blog Tips Meta box script for easy custom metabox creation.
1.) How to Remove the Width & Height Attributes From WP Image Uploader
When creating a responsive WordPress theme you may need to remove the default image height and width attributes that are automatically added by the WordPress media uploader.
[Read more…]
How To Limit WordPress Search Results to Specific Post Types
This short tutorial will show you how to limit WordPress search results to specific post types when creating WordPress sites that have multiple custom post types added. To acheive this functionality we will use the WordPress pre_get_posts filter to hook into the default WordPress search query.