Home › Forums › WoodMart support forum › Product Titles and Prices › Reply To: Product Titles and Prices
April 16, 2019 at 7:26 am
#119043
Artem Temos
Keymaster
Try to add the following PHP code snippet to the child theme functions.php file to do this
function woodmart_is_woo_ajax() {
$request_headers = function_exists( 'getallheaders') ? getallheaders() : array();
if( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
return 'wp-ajax';
}
if( isset( $request_headers['x-pjax'] ) || isset( $request_headers['X-PJAX'] ) || isset( $request_headers['X-Pjax'] ) ) {
return 'full-page';
}
if( isset( $_REQUEST['woo_ajax'] ) ) {
return 'fragments';
}
if( woodmart_is_pjax() ) {
return true;
}
return false;
}
function woodmart_is_pjax(){
$request_headers = function_exists( 'getallheaders') ? getallheaders() : array();
return isset( $_REQUEST['_pjax'] ) && ( ( isset( $request_headers['X-Requested-With'] ) && 'xmlhttprequest' === strtolower( $request_headers['X-Requested-With'] ) ) || ( isset( $_SERVER['HTTP_X_REQUESTED_WITH'] ) && 'xmlhttprequest' === strtolower( $_SERVER['HTTP_X_REQUESTED_WITH'] ) ) );
}