This topic has 45 replies, 4 voices, and was last updated 2 years, 9 months ago ago by Olga Barlow
It’s been a while. We renewed our support already. Had trouble posting here.
Anyway, i tested updating wordpress, wordpress plugins and xstore on the dev site. What i found out even with importing .dat files the css settings on the website are changed with the update. any solution for this?
i need to update the live site. i can test the procedure to the dev site we have.
Please let me know how.. Or any way to save the css and import it with the .dat file.
Thanks
Hello
will you please explain what are the issues you facing while update them or plugin. ?
I am sharing some tutorial with you for your better understanding. https://xstore.helpscoutdocs.com/article/63-theme-update
https://xstore.helpscoutdocs.com/article/37-plugins-update
Robert Hall
Can you just check it? I’ve tried updating all the plugins etc on the dev site but the CSS changed.. This is frustrating! Everytime we need to update the theme. the site messed up. Good thing i have a dev site (which has license) to test before doing it to the live site.
I know how to update plugins etc… But your theme when we update xstore it always messes up the site!
I’ve backed up the .dat file for the theme settings. even doing this the site after the update changed. The css change. Very frustrating.
working on it right now. trying to find the problem will keep you guys update. im testing the update on the dev site first before proceeding to the live site.
Hello,
Do you use child theme and cache plugin? The current version of the theme has some issues with the calling of child theme styles when cache is enabled but we plan to release new update in 1-2 days that fix this problem.
Regards
Yes we have cache installed.. Will double check it again.. Thanks
Hello,
Ok, follow our update and let us know if you have an issue with styles after this update.
Also, if you use child theme replace
<?php
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
function theme_enqueue_styles() {
etheme_child_styles();
}
with
<?php
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles', 1001 );
function theme_enqueue_styles() {
etheme_child_styles();
}
in child theme functions.php
Regards
Should i put this on each child theme (live and dev site?)
RThanks
Hello,
Yes.
Regards
I noticed theres an update. should i still put those codes on the childthemes? Thanks guys
Hello,
Yes.
Regards
Checking the childtheme functions. I can only see these codes.
<?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;
}
Hello,
Replace that code with this one
<?php
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles', 1001 );
function theme_enqueue_styles() {
etheme_child_styles();
}
Regards
Just want to confirm. There are a few other codes in the child theme functions.php
I don’t want to mess the other settings..
Please see all the code..
<?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>' );
}
Hello,
Replace your code (if you don’t have more lines) with this one
<?php
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles', 1001 );
function theme_enqueue_styles() {
etheme_child_styles();
}
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>' );
}
Regards
Hello olga,
I updated the childtheme functions with the code you gave me.
Not sure what is happening on the dev site. The preview when editing the site looks fine on the text used (Montserrat) but when rendering the whole site on google chrome and firefox. Text used wan’t working.
Please check this
Right look for the site.
The text rendered on the browser isn’t Montserrat FYI. what do you think messing the css text on the dev site?
Thanks
Hello,
Go to wp-content/fonts/ remove the folders. After that go to Theme Options > Typography > resave fonts. Check site after that.
Regards
YAY this fixed the problem. THANKS!!!!
Hello,
You are welcome.
Regards
You must be logged in to reply to this topic.Log in/Sign up