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 | |
//* Do NOT include the opening php tag shown above. Copy the code shown below. | |
//* Change add to cart button text per category archive pages | |
add_filter( 'woocommerce_product_add_to_cart_text', 'wps_archive_custom_cart_button_text' ); | |
function wps_archive_custom_cart_button_text() { | |
global $product; | |
$terms = get_the_terms( $product->ID, 'product_cat' ); | |
foreach ($terms as $term) { |
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 | |
//* Do NOT include the opening php tag shown above. Copy the code shown below. | |
//* Change add to cart button text per category | |
add_filter( 'woocommerce_product_single_add_to_cart_text', 'wps_custom_cart_button_text' ); | |
function wps_custom_cart_button_text() { | |
global $product; | |
$terms = get_the_terms( $product->ID, 'product_cat' ); | |
foreach ($terms as $term) { |
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 | |
//* Do NOT include the opening php tag shown above. Copy the code shown below. | |
//* Change add to cart button text archive pages | |
add_filter( 'woocommerce_product_add_to_cart_text', 'wps_archive_custom_cart_button_text' ); | |
function wps_archive_custom_cart_button_text() { | |
return __( 'Buy Product', 'your_theme_text_domain' ); |
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 | |
//* Do NOT include the opening php tag shown above. Copy the code shown below. | |
//* Change add to cart button text single product page | |
add_filter( 'woocommerce_product_single_add_to_cart_text', 'wps_custom_cart_button_text' ); | |
function wps_custom_cart_button_text() { | |
return __( 'Buy Product', 'your_theme_text_domain' ); |
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
/* Sidebar | |
---------------------------------------------------------------------------------------------------- */ | |
.content-sidebar .content, | |
.sidebar-content .content { | |
width: 100%; | |
} | |
.content-sidebar .sidebar-primary, | |
.sidebar-content .sidebar-primary { | |
width: 100%; |
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
//* Force full-width-content layout setting | |
add_filter( 'genesis_site_layout', '__genesis_return_full_width_content' ); |
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
unregister_sidebar( 'sidebar' ); |
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
genesis_unregister_layout( 'content-sidebar' ); | |
genesis_unregister_layout( 'sidebar-content' ); |
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 | |
//* Do NOT include the opening php tag shown above. Copy the code shown below. | |
//* Add Email This Option to Bottom of Post | |
add_filter( 'the_content', 'wps_add_email_this_button' ); | |
function wps_add_email_this_button($content){ | |
if (is_single()) { | |
$content .= '<a class="mail-btn" href="mailto:?subject=' . get_the_title() . '&body=' . get_the_permalink() . '" title="Send this article to a friend!">Email this</a>'; |
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
<p class="intro>....your text here.....</p> |