This topic has 45 replies, 4 voices, and was last updated 3 years, 6 months ago ago by Olga Barlow
i’ll put the old codes and see what happens..
old childtheme functions
<?php
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
function theme_enqueue_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css', array('bootstrap'));
if ( is_rtl() ) {
wp_enqueue_style( 'rtl-style', get_template_directory_uri() . '/rtl.css');
}
wp_enqueue_style( 'child-style',
get_stylesheet_directory_uri() . '/style.css',
array('parent-style', 'bootstrap')
);
function sv_remove_product_page_skus( $enabled ) {
if ( ! is_admin() && is_product() ) {
return false;
}
return $enabled;
}
add_filter( 'wc_product_sku_enabled', 'sv_remove_product_page_skus' );
}
/* Change Description Tab Title & Heading To Product Name
* http://gerhardpotgieter.com/2013/09/04/woocommerce-change-description-tab-title-heading-product-name/
*/
// Change the description tab heading to product name
add_filter( 'woocommerce_product_description_heading', 'wc_change_product_description_tab_heading', 10, 1 );
function wc_change_product_description_tab_heading( $title ) {
global $post;
return $post->post_title . ' Audio Sample';
}
// Add action to hook into the approp
add_filter( 'woocommerce_placeholder_img_src', 'growdev_custom_woocommerce_placeholder', 10 );
/**
* Function to return new placeholder image URL.
*/
function growdev_custom_woocommerce_placeholder( $image_url ) {
$image_url = 'http://onthecornermanila.com/images/placeholder.png'; // change this to the URL to your custom placeholder
return $image_url;
}
// To Move price underneath title use code
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 10 );
// remove action which show Price on their default location
add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 20);
// add action with Priority just more than the woocommerce_template_single_title ;
add_filter('woocommerce_single_product_image_thumbnail_html','wc_remove_link_on_thumbnails' );
// Change the Single Product Image Click
function wc_remove_link_on_thumbnails( $html ) {
return strip_tags( $html,'<img>' );
}
ok. i tried restoring the old theme function for the childtheme to no avail…
it works then it gets back to the default text.
we don’t have problem with showcasecarpet on both firefox and google.
settings on both site are almost identical!
Hello,
Please, don’t spend time trying to change something in the theme because it won’t help.
Read this topic https://stackoverflow.com/questions/33197751/fonts-are-blocked-in-web-client-cors
Contact your hosting provider if you want to solve the issue for your site and ask them to fix server settings for that WP installation.
Regards
Hello. contacted them. They added htaccess on the site itself..
Will keep you updated.
Hello,
Ok, sure. Feel free to contact us if you need any help from our side.
Regards
Just an update.
Firefox still blocks the font.
Not sure what is really happening.
The live site doesn’t have problem with regards to font on the theme.
Why i’m still getting this on the dev site?
Hello,
It would better to ask your hosting provider about this. If font blocked because of CORS policy theme support could do nothing with this because it’s server setting.
Regards
Hello Olga,
If this was a server setting why showcasecarpet.com.ph are working fine?
They addressed the CORS problem. This is there answer.
Hello,
Please contact your theme’s developer and have them look into whether the issue with CORS is addressed with the changes that were made.
Should you have further questions or concerns, please feel free to update this ticket.
Regards,
Trevor
I dunno what’s happening here. I need to launch the site this june i want this to be fixed soon..
Now, chrome is blocking it as well…. I dont think this is a server problem.
I checked showcasecarpet.com.ph on chrome and it’s all good..
firefox and chrome were cache cleared… Still getting this problem.
Can someone check the site admin?
Hi Olga,
What should i have to fix on the site for the https?
Looks like we’ve found the problem.
When i checked this https://onthecornermanila.com/dev2/
Fonts are fine. But when http://onthecornermanila.com/dev2/ fonts are blocked.
What should i do to fix the https? WordPress admin? Or server side?
Thanks
Hello,
Server-side and WP Dashboard https://www.wpbeginner.com/wp-tutorials/how-to-add-ssl-and-https-in-wordpress/ . You need to install SSL certificate and set all the other necessary settings for the WP Dashboard according to SSL requirements. But it’s not a theme option, we are able to guide with theme settings and features. Issues related to your server or default WP issues are outside the scope of our support.
Regards
Thank you very much.. It’s fixed now. I hope i dont get problem when i transfer this to the live site…. I really appreciate your help!!!
Hello,
You are welcome. Close the topic, please, if the issue is resolved.
Regards
You must be logged in to reply to this topic.Log in/Sign up