This file contains 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
/* testo2 */ | |
// Hook in | |
add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields2' ); | |
// Our hooked in function - $fields is passed via the filter! | |
function custom_override_checkout_fields2( $fields ) { | |
$fields['billing']['Location'] = array( | |
'label' => __('If picking up your order locally, what is the most convenient store location for you?', 'woocommerce'), | |
'type' => 'select', | |
'class' => array('form-row-wide'), |
This file contains 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
Use this baddass script CALLED AFTER JQUERY to make all pagejumps smooth as hot silk on a tight arse | |
Doesn't work wif you're using Bootstrap reveal/accordian thing. Well it works, but it kills that functionality | |
<script> | |
$(function() { | |
$('a[href*=#]:not([href=#])').click(function() { | |
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { | |
var target = $(this.hash); | |
target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); | |
if (target.length) { |
This file contains 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
<div id="yourdivid"> | |
<div id="yourdivid_header"><p>Kommende News</p></div> | |
<?php query_posts('showposts=10&post_status=future'); ?> | |
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> | |
<div > | |
<p class><b><?php the_title(); ?></b><?php edit_post_link('e',' (',')'); ?><br /> | |
<span class="datetime"><?php the_time('j. F Y'); ?></span></p> | |
</div> | |
<?php endwhile; else: ?><p>No posts available</p><?php endif; ?> | |
</div> |
This file contains 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
on page body: | |
<div id="purpsq" style="min-height: 220px"> | |
<div id="imgDescription1" class="afterbox"><h4 style="color: #252525">Bill Smith</h4><hr><p class="frontbox_text">Bill joined us in 2004 and has etc etc and so on blah and lorem ipsum. He comes with fully functional punching arm action and accessories.</p></div> | |
<div id="imgDescription2" class="afterbox"><h4 style="color: #252525">Hugh Jass</h4><hr><p class="frontbox_text">Bill joined us in 2004 and has etc etc and so on blah and lorem ipsum. He comes with fully functional punching arm action and accessories.</p></div> | |
<div id="imgDescription3" class="afterbox"><h4 style="color: #252525">Rick O'Shea</h4><hr><p class="frontbox_text">Bill joined us in 2004 and has etc etc and so on blah and lorem ipsum. He comes with fully functional punching arm action and accessories.</p></div> | |
<div id="imgDescription4" class="afterbox"><h4 style="color: #252525">Annette Curtin</h4><hr><p class="frontbox_text">Bill joined us in 2004 and has etc etc and so on blah and |
This file contains 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
//in Header: | |
<script src="<?php bloginfo('template_directory');?>/js/jquery.inview.min.js"></script> | |
//(also need JQuery 1.4 or above) | |
//where fds is a containing div and li items are the ones to be faded in....: | |
<script> | |
$(function() { |
This file contains 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
/* simple fader, handy for logo sliders etc. Light */ | |
/* header */ | |
<script src="<?php echo get_site_url(); ?>/wp-content/themes/Yourtheme/js/jquery.cycle.lite.js"></script> | |
<script> | |
$(document).ready(function() { | |
$('.fader_pics, .fader_pics1').cycle({ |
This file contains 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
/* Header */ | |
<script> | |
jQuery.getJSON('http://freegeoip.net/json/', function(location) { | |
if (location.country_code == 'GB') { | |
jQuery("#change_number").text("GB Tel: +44 2307055"); | |
} | |
}); | |
</script> |
This file contains 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
/* Header script - ('revapi3' being the id of the slider) */ | |
<!-- Slider points linking to slides --> | |
<script type="text/javascript"> | |
var revapi3; | |
jQuery(document).ready(function() { |
This file contains 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
/* Header: */ | |
<script type="text/javascript"> | |
function FillBilling(f) { | |
if(f.billingtoo.checked == true) { | |
f.invoice_textarea.value = f.deliveryaddress.value; | |
} | |
} | |
</script> | |
/* in the form - using Contact Form 7 */ |