View functions.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
<?php // Do NOT copy this opening PHP tag. Code goes at end of functions.php | |
add_action( 'pre_get_posts', 'agentpress_pro_listings_pagination', 10 ); | |
function agentpress_pro_listings_pagination( $query ) { | |
if ( ! is_admin() && $query->is_main_query() && is_post_type_archive( 'listing' ) ) { | |
$query->set( 'posts_per_page', 12 ); | |
} |
View functions.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
remove_action( 'woocommerce_archive_description', 'woocommerce_taxonomy_archive_description', 10 ); | |
remove_action( 'woocommerce_archive_description', 'woocommerce_product_archive_description', 10 ); | |
add_action( 'woocommerce_after_main_content', 'woocommerce_taxonomy_archive_description', 10 ); | |
add_action( 'woocommerce_after_main_content', 'woocommerce_product_archive_description', 10 ); |
View tag-cloud-title.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
echo '<div class="tag-cloud-title">' . __('Title') . '</div>'; |
View functions.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
add_action( 'woocommerce_before_add_to_cart_form', 'custom_field_button' ); | |
function custom_field_button() { | |
$wp = get_post_meta( get_the_ID(), 'wp_button', true ); | |
$acf = class_exists('acf') ? get_field('acf_button') : ''; | |
$field = $acf ? $acf : $wp; | |
if ( $field && is_singular('product') ) { |
View modify-wc-add-to-cart-text.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
add_filter( 'woocommerce_product_single_add_to_cart_text', 'woocommerce_add_to_cart_button_text_single' ); | |
function woocommerce_add_to_cart_button_text_single() { | |
return ( class_exists( 'woocommerce' ) AND is_product() AND get_the_ID() == 443 ) ? __( 'Custom Cart Button Text', 'woocommerce' ) : __( 'Add To Cart', 'woocommerce' ); | |
} |
View woocommerce-add-to-cart-text.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
add_filter( 'woocommerce_product_single_add_to_cart_text', 'woocommerce_add_to_cart_button_text_single' ); | |
function woocommerce_add_to_cart_button_text_single() { | |
if ( class_exists( 'woocommerce' ) AND is_product() AND get_the_ID() == 443 ) { | |
return __( 'Custom Cart Button Text', 'woocommerce' ); | |
} else { | |
return __( 'Add To Cart', 'woocommerce' ); |
View customize.html
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="hero-title-image"><div class="hero-title-container">We help business owners in growth mode break through to the next level.</div><div class="wp-hero-image"><img src="http://dev.local/wp-content/uploads/2022/12/2.png" /></div></div> |
View single post post hero image overlay text.html
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
<section class="widget_text widget widget_custom_html"><div class="widget_text widget-wrap"> | |
<div class="textwidget custom-html-widget"><p>Change the overlay text for the front page hero image section.</p> | |
<p><a class="button hero-button" href="#front-page-2">Start Your Journey</a></p></div></div></section> |
View front page hero overlay text.html
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
<section class="widget_text widget widget_custom_html"><div class="widget_text widget-wrap"> | |
<div class="textwidget custom-html-widget"><h1 class="widget-title">Front Page Title</h1><p>Change the overlay text for the front page hero image section.</p> | |
<p><a class="button hero-button" href="#front-page-2">Start Your Journey</a></p></div></div></section> |
View functions.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
add_filter( 'genesis_post_info', 'your_post_info_filter' ); | |
function your_post_info_filter($post_info) { | |
$front = 'by [post_author_posts_link] [post_edit]'; | |
$post_info = 'by [post_author_posts_link] [post_comments] [post_edit]'; | |
$output = is_front_page() ? $front : $post_info; | |
return $output; | |
} |
NewerOlder