This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// remove wp version param from any enqueued scripts | |
function vc_remove_wp_ver_css_js( $src ) { | |
if ( strpos( $src, 'ver=' ) ) | |
$src = remove_query_arg( 'ver', $src ); | |
return $src; | |
} | |
add_filter( 'style_loader_src', 'vc_remove_wp_ver_css_js', 9999 ); | |
add_filter( 'script_loader_src', 'vc_remove_wp_ver_css_js', 9999 ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wp_deregister_script('jquery'); | |
wp_register_script('jquery', "http" . ($_SERVER['SERVER_PORT'] == 443 ? "s" : "") . "://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js", false, null); | |
wp_enqueue_script('jquery'); | |
wp_register_script('jqueryui', "http" . ($_SERVER['SERVER_PORT'] == 443 ? "s" : "") . "://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js", false, null); | |
wp_enqueue_script('jqueryui'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_image_size( 'square', 360, 360, true ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var $s = jQuery.noConflict(); | |
$s(function() { | |
$s('a[href*=#]:not([href=#])').click(function() { | |
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') | |
|| location.hostname == this.hostname) { | |
var target = $s(this.hash); | |
target = target.length ? target : $s('[name=' + this.hash.slice(1) +']'); | |
if (target.length) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if( get_field('the_price') ) { | |
$price = get_field('the_price'); | |
echo '<div id="price">$' . $price . '</div>'; | |
} ?> | |
<?php if( get_field('the_colors') ) { | |
$colors = implode('|', get_field('the_colors')); | |
<?php $title = get_the_title(); ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php $price = get_field('price'); | |
$title = get_the_title(); | |
$shipping_row = get_field('shipping_costs'); | |
$shipping_total = count($shipping_row); | |
$i = 0; | |
foreach($shipping_row as $ship){ | |
$i++; | |
$shipping_output.= $ship['area'] . ',' . $ship['cost']; | |
if ($i!=$shipping_total) {$shipping_output.= "|";} | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Editing the WordPress Dashboard Header | |
function wp_admin_dashboard_header_colour() { | |
echo '<style type="text/css"> | |
#toplevel_page_edit-post_type-acf { display:none; } | |
</style>'; | |
} | |
add_action('admin_head', 'wp_admin_dashboard_header_colour'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-webkit-background-size: cover; | |
-moz-background-size: cover; | |
-o-background-size: cover; | |
background-size: cover; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define('WP_SITEURL', 'http://' . $_SERVER['SERVER_NAME'] ); | |
define('WP_HOME', 'http://' . $_SERVER['SERVER_NAME'] ); |