Skip to content

Instantly share code, notes, and snippets.

View braddalton's full-sized avatar

Brad Dalton braddalton

View GitHub Profile
update_option('siteurl','http://example.com');
update_option('home','http://example.com');
@braddalton
braddalton / button.html
Created April 3, 2015 03:39
Button HTML
<a class="button" href="http://wpsites.net/web-design/circle-buttons/">button generator</a>
<h4>Learn How To Dominate Your Niche <br />Download This Free eBook</h4>
<a class="button" href="http://example.com/">Sign Up Now</a> <a class="button clear white" href="http://example.com/">Learn More</a>
[caption width="720" caption="Text Over Video"][embed]https://youtu.be/UhTNFg7bIZY[/embed][/caption]
<a href="http://example.com/" class="center-button button">Buy Now</a>
<a class="center-button button" href="http://example/">Buy Now</a>
add_filter( 'wp_nav_menu_items', 'theme_menu_extras', 10, 2 );
function theme_menu_extras( $menu, $args ) {
if ( 'secondary' !== $args->theme_location )
return $menu;
//* Uncomment this block to add a search form to the navigation menu
/*
ob_start();
get_search_form();
function add_bulk_async_sdk() { ?>
<script>
(function(doc, script) {
var js,
fjs = doc.getElementsByTagName(script)[0],
add = function(url, id) {
if (doc.getElementById(id)) {return;}
js = doc.createElement(script);
js.src = url;
id &amp;&amp; (js.id = id);