User profiles in WordPress have these fields for Contact Info by default: E-mail, Website, AIM, Yahoo IM, Jabber / Google Talk. You can remove those and add new ones as you wish, like in this example code for your functions.php file in your … [Continue reading]
Add class to links generated by next_posts_link and previous_posts_link
These two functions create anchor links, and you can customize a lot of it, but it's impossible to add a class through just using their parameters alone. Gotta add a function to functions.php: add_filter('next_posts_link_attributes', … [Continue reading]
Add Category Name to body_class
The body_class function is nice for adding a bunch of classes to the body tag that have information about what kind of page is currently being displayed. Probably for styling purposes. But for whatever reason, it doesn't include a class for the … [Continue reading]
“Edit This” Button on Posts and Pages
Put this in the theme file somewhere near where you output the_content() (likely in the single.php or page.php file) to make a link you can click that takes you into the admin to edit it. This link will only be visible when the viewer is logged in … [Continue reading]
Remove Width and Height Attributes From Inserted Images
When you upload an image through the WordPress media uploader and then insert it into the editor, it comes with width and height attributes. These are normally desirable, as it assists the browser in making the appropriate room for the image during … [Continue reading]
- « Previous Page
- 1
- …
- 7
- 8
- 9
- 10
- 11
- …
- 20
- Next Page »