Open ~/.bash_profile
in your favorite editor and add the following content to the bottom.
# Git branch in prompt.
parse_git_branch() {
/************************************************ | |
Audio Blocks | |
************************************************/ | |
.wp-block-audio { | |
margin-left: 0px; | |
margin-right: 0px; | |
} | |
.wp-block-audio audio { | |
width: 100%; |
<div class="body text-center"> | |
<div class="reveal" id="exampleModal1" data-reveal> | |
<video width="100%" controls> | |
<source src="http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_30fps_normal.mp4" type="video/mp4"> | |
Your browser does not support HTML5 video. | |
</video> | |
<button class="close-button" data-close aria-label="Close modal" type="button"> |
<?php | |
// add the below to your functions file | |
// then visit the page that you want to see | |
// the enqueued scripts and stylesheets for | |
function se_inspect_styles() { | |
global $wp_styles; | |
echo "<h2>Enqueued CSS Stylesheets</h2><ul>"; | |
foreach( $wp_styles->queue as $handle ) : | |
echo "<li>" . $handle . "</li>"; |
<script type="text/javascript"> | |
var howLongToWait = 5; //number of seconds to wait | |
var urlOfDownloadContent = 'http://www.example.com/whitepaper.pdf'; | |
function triggerDownload() { | |
window.location = urlOfDownloadContent; | |
} | |
setTimeout('triggerDownload()', howLongToWait * 1000); | |
</script> |
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
RewriteRule ^$ /webroot/ [L] | |
RewriteRule (.*) /webroot/$1 [L] | |
</IfModule> |
#!/usr/bin/env bash | |
# --------------------------------------- | |
# Virtual Machine Setup | |
# --------------------------------------- | |
# Adding multiverse sources. | |
cat > /etc/apt/sources.list.d/multiverse.list << EOF | |
deb http://archive.ubuntu.com/ubuntu trusty multiverse | |
deb http://archive.ubuntu.com/ubuntu trusty-updates multiverse |
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |
// Get The Page ID You Need | |
get_option( 'woocommerce_shop_page_id' ); | |
get_option( 'woocommerce_cart_page_id' ); | |
get_option( 'woocommerce_checkout_page_id' ); | |
get_option( 'woocommerce_pay_page_id' ); | |
get_option( 'woocommerce_thanks_page_id' ); | |
get_option( 'woocommerce_myaccount_page_id' ); | |
get_option( 'woocommerce_edit_address_page_id' ); | |
get_option( 'woocommerce_view_order_page_id' ); | |
get_option( 'woocommerce_terms_page_id' ); |
// Move Yoast to bottom | |
function yoasttobottom() { | |
return 'low'; | |
} | |
add_filter( 'wpseo_metabox_prio', 'yoasttobottom'); |