UPDATING 2 sites 1 live 1 dev - by filmguerilla

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

  • Avatar: Jef
    filmguerilla
    Participant
    May 26, 2021 at 18:49

    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>' );
    }
    
    Avatar: Jef
    filmguerilla
    Participant
    May 26, 2021 at 20:13

    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!

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    May 27, 2021 at 08:45

    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

    Avatar: Jef
    filmguerilla
    Participant
    May 28, 2021 at 08:03

    Hello. contacted them. They added htaccess on the site itself..

    Will keep you updated.

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    May 28, 2021 at 15:56

    Hello,

    Ok, sure. Feel free to contact us if you need any help from our side.

    Regards

    Avatar: Jef
    filmguerilla
    Participant
    May 31, 2021 at 08:53

    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?

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    May 31, 2021 at 13:44

    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

    Avatar: Jef
    filmguerilla
    Participant
    June 1, 2021 at 17:37

    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..

    Avatar: Jef
    filmguerilla
    Participant
    June 1, 2021 at 18:38

    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?

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    June 2, 2021 at 12:16

    Hello,

    What about SSL https://prnt.sc/13ptx9r ?

    Regards

    Avatar: Jef
    filmguerilla
    Participant
    June 5, 2021 at 17:40

    Hi Olga,

    What should i have to fix on the site for the https?

    Avatar: Jef
    filmguerilla
    Participant
    June 5, 2021 at 17:47

    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

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    June 7, 2021 at 09:02

    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

    Avatar: Jef
    filmguerilla
    Participant
    June 7, 2021 at 14:45

    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!!!

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    June 7, 2021 at 19:09

    Hello,

    You are welcome. Close the topic, please, if the issue is resolved.

    Regards

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

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

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