CSS | HTML | PHP Code Snippets

  • w3schools.com

    Tutorials, references, and examples for using HTML and CSS

  • Visual Guide to CSS

    This site explains CSS with illustrated and animated examples.

  • Understanding the CSS Box Model

    Understanding width, height, padding, border, and margin of elements on a page

  • CSS Snippets for Block Quotes

    Customize the look of block quotes within posts and pages

  • How to Simplify Woocommerce Checkout

    Remove unnecessary fields on the WooCommerce checkout page

    This is especially helpful when offering free virtual products.

  • Customize WooCommerce Checkout

    Remove unnecessary fields on the WooCommerce checkout page

    This is especially helpful when offering free virtual products.

  • Make Any Image Into a Circle with CSS

    Simple CSS code that allows you change any image into a circle

  • CSS Code Snippets for Beautiful Buttons

    Simple CSS code that allows you change any image into a circle

  • Make a Line with Fading Ends

    CSS code to fade the ends of a separator line

  • Adding a Custom Widget to Any Page, Post or Template in WordPress

    Step-by-step guide to add a new widget to your WordPress site

  • HTML Cheat Sheet

    HTML formatting code to copy and paste in the Text tab of your WordPress editing screen

  • PHP Space After Closing PHP Tags

    Why is there no closing PHP tag for wp-config.php?

    The observant amongst you will have noticed that whilst there's an opening php tag, there's no closing php tag.

    This is not a mistake, and your wp-config.php file can be happily left without a closing tag.

    Why?

    Well, believe it or not a very simple issue of "spaces after closing PHP tags" are known to cause a range of various issues including "headers already sent" errors, and breaking other bits and bobs within perfectly well behaved websites.

    Several years ago, WordPress decided to make life a little bit easier for everyone by removing the ending PHP tag from the wp-config.php file. 
    More recently, they did the same with several other core files.