Skip to content

Instantly share code, notes, and snippets.

@neocamel
neocamel / custom function.php
Created May 14, 2018 21:25
Don't want to modify another theme developer's functions.php file? Create a simple plugin and paste your function in there, enable the plugin. Viola!
<?php
/**
* Plugin Name: My Custom Functions
* Plugin URI: http://yoursite.com
* Description: This is an awesome custom plugin with functionality that I'd like to keep when switching things.
* Author: Your Name
* Author URI: http://yoursite.com
* Version: 0.1.0
*/
add #access ul { float: right; }
<?php bloginfo('url'); ?>
<?php bloginfo('template_directory'); ?>