ol.commentlist { list-style:none; margin:0 0 1em; padding:0; text-indent:0; } ol.commentlist li { } ol.commentlist li.alt { } ol.commentlist li.bypostauthor {} ol.commentlist li.byuser {} ol.commentlist li.comment-author-admin {} ol.commentlist … [Continue reading]
Automatic Social Media Links
This would go inside the loop, probably underneath the_content(), probably in your single.php file. // bookmark on Delicious <a rel="nofollow" href="http://delicious.com/post?url=<?php the_permalink(); ?>&title=<?php echo … [Continue reading]
Apply Custom CSS to Admin Area
Add to the functions.php file: add_action('admin_head', 'my_custom_fonts'); function my_custom_fonts() { echo '<style> body, td, textarea, input, select { font-family: "Lucida Grande"; font-size: 12px; } … [Continue reading]
Allow SVG through WordPress Media Uploader
For your functions.php file or a functionality plugin: function cc_mime_types($mimes) { $mimes['svg'] = 'image/svg+xml'; return $mimes; } add_filter('upload_mimes', 'cc_mime_types'); Without this, SVG files will be rejected when attempting … [Continue reading]
Admin Panel Link Only For Admins
<?php if (current_user_can("manage_options")) : ?> <a href="<?php echo bloginfo("siteurl") ?>/wp-admin/">Admin</a> <?php endif; ?> If a user is logged in and they are an Admin of the site (not just an … [Continue reading]
- « Previous Page
- 1
- …
- 6
- 7
- 8
- 9
- 10
- …
- 20
- Next Page »