Search
Exact matches only
Search in title
Search in content
Search in comments
Search in excerpt
Filter by Custom Post Type

How to detect iPhone users in WordPress

This WordPress snippet will help you detect your iPhone visitors and lets you customise your website and create a better experience for them.

Add Links to the WordPress Toolbar

This snippet adds links to the WordPress toolbar. Instructions Add this to your functions.php file of your theme. *note – that the second and third of $admin_bar->add_menu are add sub menu to the first, and the parent parameter is set to the id of the first $admin_bar->add_menu, which in this case is my-item.

Only show admin bar to administrators

Here a little snippet that will hide the wordpress admin bar from everybody except site admins. Useful for sites that have public registration turned on.

How to remove unwanted WordPress classes

This snippet will let you create a white-list of terms to include in body_class. This is a great way to filter out many of the unwanted css classes added.