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_action( 'wp_head', function () { | |
if (is_checkout()) { | |
?> | |
<script> | |
setTimeout(function() { | |
$('#place_order').html('Book Now'); | |
}, 1500) | |
</script> | |
<?php }}); |
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
<script> | |
var $ = jQuery; | |
function headSearch() { | |
var location = $('#search-bar__location option:selected').text(); | |
var bedrooms = $('#search-bar__activity option:selected').text(); | |
var bathrooms = $('#search-bar__feature option:selected').text(); | |
(location !== "Location...") ? $('.booking-search__form .location-input').val(location) : $('.booking-search__form .location-input').val(''); |
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
// Move custom product tab before description | |
add_filter( 'woocommerce_product_tabs', 'yikes_woo_reorder_tabs', 98, 1 ); | |
function yikes_woo_reorder_tabs( $tabs ) { | |
if ( isset( $tabs['description'] ) ) { | |
$tabs['description']['priority'] = 2; | |
} | |
if ( isset( $tabs['features'] ) ) { | |
$tabs['features']['priority'] = 1; | |
} |
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_action( 'wp_footer', 'move_variation_description' ); | |
function move_variation_description() { | |
global $product; | |
// Only on single product pages for variable products | |
if ( ! ( is_product() && $product->is_type('variable') ) ) return; | |
// jQuery code | |
?> | |
<script> | |
var $ = jQuery; | |
function transferDesc() { |
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
<script> | |
var $ = jQuery; | |
$(window).on('load', function() { | |
function readMore(id) { | |
$('.read-more_' + id).addClass('read-more__open'); | |
$('.read-more__button_' + id).off(); | |
$('.read-more__button_' + id).text('Read Less'); | |
$('.read-more__button_' + id).on('click', readLess ); | |
} | |
function readLess(id) { |
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_shortcode('featuredimage', 'thumbnail_in_content'); | |
function thumbnail_in_content($atts) { | |
global $post; | |
return get_the_post_thumbnail($post->ID); | |
} |
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
.home-products--products { | |
max-width: 60%; | |
flex-basis: 60%; | |
} | |
.home-products--products .box-excerpt { | |
display: none; | |
} | |
.home-products--products .category { | |
font-size: 0.65em; |
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
.menu__item > a span | |
{ | |
position: relative; | |
} | |
.menu__item > a span:before { | |
content: ""; | |
position: absolute; | |
width: 0; | |
height: 2px; | |
bottom: 0; |
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
/* Category Slider */ | |
.category__carousel > .container { | |
padding: 0; | |
} | |
.category-slider-container { | |
background-color: #f1f1f1; | |
width: 1200px; | |
margin: auto; | |
} | |
.category-slider{ |
NewerOlder