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 class="row"> | |
<div class="col"> | |
[response] | |
</div> | |
</div> | |
<div class="row"> | |
<div class="form-group col"> | |
<label for="your-name" class="control-label">Name <span class="text-danger">*</span></label>[text* your-name class:form-control id:name placeholder "Your Name"] | |
</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
<?php | |
/** | |
* Check the orderby param for the particular REST API for hte custom post type. | |
* If it is set to a particular meta_ket, then set the orderby and meta_key query args/ | |
* @link https://www.timrosswebdevelopment.com/wordpress-rest-api-order-by-meta_value/ | |
*/ | |
function filter_rest_accommodation_query($query_vars, $request) { | |
$orderby = $request->get_param('orderby'); | |
if (isset($orderby) && $orderby === 'number_of_beds') { | |
$query_vars["orderby"] = "meta_value_num"; |
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
.article { | |
width: 50%; | |
float: left; | |
clear: left; | |
.article.right { | |
float: right; | |
clear: right; | |
} |
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
<?php | |
/* CSS for responsive product tabs in WooCommerce. See my blog post here: https://www.timrosswebdevelopment.com/responsive-product-data-tabs-woocommerce */ | |
/** | |
* Filter tabs and allow third parties to add their own. | |
* | |
* Each tab is an array containing title, callback and priority. | |
* | |
* This is a woocommerce template override and should be added to your custom theme in the following location: | |
* wp-content/themes/<YOUR-THEME>/woocommerce/single-product/tabs/tabs.php | |
* |
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
/* CSS for responsive product tabs in WooCommerce. See my blog post here: https://www.timrosswebdevelopment.com/responsive-product-data-tabs-woocommerce */ | |
/* For small screens only */ | |
@media screen and (max-width: 767px) { | |
.woocommerce-tabs.woocommerce-tabs-responsive ul li { | |
/* this rule needs to be important to override the default woocommerce style */ | |
display: flex !important; | |
flex-direction: column; | |
width: 100%; | |
} |