Home › Forums › Basel support forum › Instagram did not return a 200 › Reply To: Instagram did not return a 200
March 28, 2018 at 6:41 pm
#49676
Stefano
Participant
yes, I added a few lines for the WooCommerce and the ones you sent me to open the Instagram links on a blank page. However, I tried erasing all those lines and leaving only the default ones, but with no results, even after suspending all transients.
This is the code I have in the child functions.php
<?php
add_action( 'wp_enqueue_scripts', 'basel_child_enqueue_styles', 1000 );
function basel_child_enqueue_styles() {
$version = basel_get_theme_info( 'Version' );
if( basel_get_opt( 'minified_css' ) ) {
wp_enqueue_style( 'basel-style', get_template_directory_uri() . '/style.min.css', array('bootstrap'), $version );
} else {
wp_enqueue_style( 'basel-style', get_template_directory_uri() . '/style.css', array('bootstrap'), $version );
}
wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array('bootstrap'), $version );
}
function woodmart_display_product_attributes() {
global $product;
wc_display_product_attributes( $product );
}
/*remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 20 );*/
add_action( 'woocommerce_single_product_summary', 'woodmart_display_product_attributes', 20 );
add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 );
function woo_remove_product_tabs( $tabs ) {
unset( $tabs['additional_information'] ); // Remove the additional information tab
return $tabs;
}
/*INSTAGRAM BLANK*/
function basel_product_instagram() {
$hashtag = get_post_meta(get_the_ID(), '_basel_product_hashtag', true );
if( empty( $hashtag ) ) return;
?>
<div class="basel-product-instagram">
<p class="product-instagram-intro"><?php printf( wp_kses( __('Tag your photos with <span>%s</span> on Instagram.', 'basel') , array('span' => array())), $hashtag ); ?></p>
<?php echo basel_shortcode_instagram( array(
'username' => esc_html( $hashtag ),
'number' => 8,
'size' => 'large',
'target' => '_blank',
'design' => '',
'spacing' => 0,
'rounded' => 0,
'per_row' => 4
) ); ?>
</div>
<?php
}
/*WOOCOMMERCE COD UNICO*/
add_filter( 'wc_product_has_unique_sku', '__return_false' );