UPDATING 2 sites 1 live 1 dev - by filmguerilla

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

  • Avatar: Jef
    filmguerilla
    Participant
    May 21, 2021 at 12:47

    This is weird. It gets back to the other text afterwards.. What is happening? LOL

    I tried to delete again the font folder. publish then the text on firefox changed again haha

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    May 21, 2021 at 15:25

    Hello,

    Maybe browser cache? Try to remove folder, resave settings and clear the caches.
    If you don’t move site again you should not have issue with fonts.

    Regards

    Avatar: Jef
    filmguerilla
    Participant
    May 21, 2021 at 16:25

    i tried this on firefox…. text different

    http://prntscr.com/13860am

    google chrome works ok now but firefox……

    Avatar: Jef
    filmguerilla
    Participant
    May 22, 2021 at 09:45

    hello, this is very weird. now both firefox and chrome doesnt render my font properly… what seem to be the problem?

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    May 24, 2021 at 12:08

    Hello,

    Take my apologies for the delay in answering.
    Font is blocked by browser https://prnt.sc/13cfydk
    Contact your hosting provider and ask to improve server settings to avoid this https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors/CORSMissingAllowOrigin

    Regards

    Avatar: Jef
    filmguerilla
    Participant
    May 26, 2021 at 17:26

    Hi Olga,

    Contacting them now. But this also occurs repeatedly on Chrome and Firefox.

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    May 26, 2021 at 18:14

    Hello,

    If you inspect the site using dev tools and see that error then you need to fix the server settings and unblock fonts. In other case you will see the default font and we can do nothing with this.

    Regards

    Avatar: Jef
    filmguerilla
    Participant
    May 26, 2021 at 18:45

    by the way, the other site that i’m managing has xstore and also hosted on the same server. Why only this website? http://prntscr.com/13g5oud please see the link.

    showcasecarpet is working well. it has almost the same text/font settings with the other site that we are developing. why we are getting this problem at onthecorner?

    Please contact administrator
    for this information.
    Avatar: Jef
    filmguerilla
    Participant
    May 26, 2021 at 18:46

    just realised. i don’t think it’s a server problem since showcasecarpet were hosted on the same server… the site doesnt have any problem rendering text.

    Avatar: Jef
    filmguerilla
    Participant
    May 26, 2021 at 18:48

    Might be a code problem with the codes you gave me? is it possible to check the childtheme functions?

    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

  • 1 2 3
    Viewing 40 results - 21 through 40 (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.