View install-restic.txt
curl -LO https://github.com/restic/restic/releases/download/v0.9.5/restic_0.9.5_linux_amd64.bz2 |
View contact-page.css
.page-contact .site-footer { | |
background-color: #000; | |
color: #fff; | |
} | |
View page-slug-body-class.php
<?php | |
//* Do NOT include the opening php tag shown above. Copy the code shown below. | |
add_filter( 'body_class', 'wps_add_slug_body_class' ); | |
/** | |
* Add Page Slug as Body Class. | |
*/ | |
function wps_add_slug_body_class( $classes ) { | |
global $post; |
View woocommerce-show-payment-method.php
<?php | |
//* Do NOT include the opening php tag shown above. Copy the code shown below. | |
add_filter( 'manage_edit-shop_order_columns', 'wps_add_payment_method_column', 20 ); | |
/** | |
* Add payment method column | |
*/ | |
function wps_add_payment_method_column( $columns ) { | |
$new_columns = array(); |
View style.css
.enews-widget input[type=email], | |
.enews-widget input[type=text] { | |
border: 1px solid #eee; | |
max-width: calc(38% - 20px); | |
float: left; | |
} |
View text.html
<a class="button" href="#">read more</a> |
View functions.php
<?php | |
//* Do NOT include the opening php tag shown above. Copy the code shown below. | |
add_filter( 'woocommerce_product_single_add_to_cart_text', 'wps_custom_cart_button_text' ); | |
/** | |
* Set product button text to productname | |
*/ | |
function wps_custom_cart_button_text() { | |
global $product; |
View textwidget.html
Don't miss the new seasons 2017 look book!<div class="button"><a href="#">learn more</a></div> |
View fuctions.php
<?php | |
//* Do NOT include the opening php tag shown above. Copy the code shown below. | |
case 'clothing': | |
return __('Order your Clothes', 'your_theme_text_domain' ); | |
break; | |
case 'hoodies': | |
return __('buy your Hoodie', 'your_theme_text_domain' ); | |
break; |
NewerOlder