About

WPCode makes it easy and safe to add custom WordPress features through code snippets, 
so you can reduce the number of plugins on your site.

149 Snippets
2.8k Favourites
307k Downloads

Add the Page Slug to Body Class

Add the page slug to the body class for better styling.

2.6k

Automatically Link Featured Images to Posts

Wrap featured images in your theme in links to posts.

2.5k

Add an Edit Post Link to Archives

Make it easier to edit posts when viewing archives. Or on single pages. If you...

2.4k

Disable Comment Form Website URL

Remove the Website URL field from the Comments form.

2.3k

Disable Self Pingbacks

Prevent WordPress from automatically creating pingbacks from your own site.

1.9k

Disable Login by Email

Force your users to login only using their username.

1.9k

Change Excerpt Length

Update the length of the Excerpts on your website using this snippet.

1.9k

Remove Query Strings From Static Files

Use this snippet to remove query string from CSS & JS files and improve performance ratings.

1.6k

Change Outgoing Email Sender

Change the outgoing sender name and email address. Don't forget to edit the snippet with...

1.6k

Disable wlwmanifest link

Prevent WordPress from adding the Windows Live Writer manifest link to your pages.

1.5k

Dynamic Year Copyright Shortcode

This snippet adds an easy-to-use shortcode to display the copyright symbol with the current year.

1.5k

Remove the WordPress Logo From the Admin Bar

Hide the WordPress logo in the admin bar for all users.

1.5k
1 2 3 4 5 13