UPDATING 2 sites 1 live 1 dev - by filmguerilla

This topic has 45 replies, 4 voices, and was last updated 2 years, 9 months ago ago by Olga Barlow

  • Avatar: Jef
    filmguerilla
    Participant
    May 8, 2021 at 11:20

    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

    Please, contact administrator
    for this information.
    44 Answers
    Avatar: Robert Hall
    Robert Hall
    Support staff
    May 9, 2021 at 08:57

    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

    Avatar: Jef
    filmguerilla
    Participant
    May 12, 2021 at 03:47

    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.

    Avatar: Jef
    filmguerilla
    Participant
    May 12, 2021 at 03:49

    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.

    Avatar: Jef
    filmguerilla
    Participant
    May 12, 2021 at 04:17

    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.

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    May 12, 2021 at 13:46

    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

    Avatar: Jef
    filmguerilla
    Participant
    May 12, 2021 at 15:40

    Yes we have cache installed.. Will double check it again.. Thanks

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    May 12, 2021 at 15:46

    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

    Avatar: Jef
    filmguerilla
    Participant
    May 14, 2021 at 06:21

    Should i put this on each child theme (live and dev site?)

    RThanks

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    May 14, 2021 at 11:49

    Hello,

    Yes.

    Regards

    Avatar: Jef
    filmguerilla
    Participant
    May 15, 2021 at 05:31

    I noticed theres an update. should i still put those codes on the childthemes? Thanks guys

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    May 15, 2021 at 09:20

    Hello,

    Yes.

    Regards

    Avatar: Jef
    filmguerilla
    Participant
    May 17, 2021 at 08:55

    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;
    }
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    May 17, 2021 at 13:27

    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

    Avatar: Jef
    filmguerilla
    Participant
    May 17, 2021 at 16:13

    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>' );
    }
    
    
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    May 17, 2021 at 17:53

    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

    Avatar: Jef
    filmguerilla
    Participant
    May 20, 2021 at 15:36

    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

    http://prntscr.com/135n769

    http://prntscr.com/135n85z

    Right look for the site.

    http://prntscr.com/136878f

    The text rendered on the browser isn’t Montserrat FYI. what do you think messing the css text on the dev site?

    Thanks

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    May 20, 2021 at 21:14

    Hello,

    Go to wp-content/fonts/ remove the folders. After that go to Theme Options > Typography > resave fonts. Check site after that.

    Regards

    Avatar: Jef
    filmguerilla
    Participant
    May 21, 2021 at 08:08

    YAY this fixed the problem. THANKS!!!!

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    May 21, 2021 at 12:09

    Hello,

    You are welcome.

    Regards

  • 1 2 3
    Viewing 20 results - 1 through 20 (of 45 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.