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 c … [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]
Dare a WordPress la sua directory
Crea una nuova directory per mettere li i files di wordpress, in nostro caso useremo come essempio la directory /wordpress Vai in wp-admin nella sezione IMPOSTAZIONI -> Generali e nel campo: Indirizzo WordPress (URL) devi immettere nel nostro … [Continue reading]