• Hello all,

    I am trying to create a site for use in China and downloading anything from google produces a massive slow down. I can’t seem to get rid of all the googleapi calls for OpenSans, Damion and jsapi. It seems to be specifically the theme which is a child theme of CherryFramework. If I disable the theme, it gets rid of the calls. I’d like to remove Damion completely and link OpenSans to a china friendly url.

    My site is:
    web.elitedirection.com

    The theme I’m using is:
    https://www.templatemonster.com/wordpress-themes/45716.html

    these lines appear in the header:
    <link rel=’stylesheet’ id=’options_typography_Open+Sans-css’ href=’//fonts.googleapis.com/css?family=Open+Sans&subset=latin’ type=’text/css’ media=’all’ />

    <link rel=’stylesheet’ id=’options_typography_Damion-css’ href=’//fonts.googleapis.com/css?family=Damion&subset=latin’ type=’text/css’ media=’all’ />

    <script type=’text/javascript’ src=’//www.google.com/jsapi?ver=1.4.7′></script>

    I’ve installed the Disable Google Fonts plug-in:
    https://www.ads-software.com/plugins/disable-google-fonts/

    I’ve edited the style.css, main-style.css, and style.less files of the child theme to include:

    @import url(fonts.useso.com/css?family=Open+Sans);
    instead of the usual google url.

    I’ve tried to dequeue open-sans in functions.php

    None of it seems to get rid of the lines. I’m far from a web designer or coder, just helping a friend out with a website. I appreciate any ideas you guys may have. Thanks for looking.

Viewing 15 replies - 1 through 15 (of 17 total)
  • check your functions file and header file for the theme.

    Thread Starter extralivesx99

    (@extralivesx99)

    @janet4now – thanks for the quick response. The theme had no functions.php file and the header.php file has no reference to google, open-sans, damion or jsapi.

    sorry, I didn’t notice where you got the template. You should ask your question there as we don’t have the info for your template files. https://www.templatemonster.com/help/

    @extralivesx99: Sorry, but you’re using a premium/paid theme. It’s best to go to the support site where you bought the theme for help with customizations and issues. You paid for support when you bought the theme, so you should contact the people who sold you the theme. These forums are for themes available in the WordPress theme directory at www.ads-software.com/themes/. See https://codex.www.ads-software.com/Forum_Welcome#Commercial_Products

    Thread Starter extralivesx99

    (@extralivesx99)

    @janet4now, @songdogtech – Sadly, I have. They seem to be stumped as they have not responded to my query in four days. I was hoping maybe someone had a similar experience or insight. Thanks anyways!

    Well, we’ll help you out in the time being since we are only to act as a last resort if the theme author(s) don’t respond.

    First, create a child theme following this guide: Create a child theme.

    Please report back when you have created a child theme.

    Note: If you don’t want to deal with the hassle of using a child theme, then I would suggest you to find a different theme either here on www.ads-software.com or ThemeForest or any other major theme marketplace.

    Thread Starter extralivesx99

    (@extralivesx99)

    @respectyoda – Thanks, I appreciate the help. I may have misunderstood, but I tried to create a child theme of the theme I’m currently using (which is a child in itself of Cherry Framework). When trying to switch to the theme it appears as a “Broken Theme” with the description “The “theme45716” theme is not a valid parent theme.

    You have to do more than just copy and paste code from the link I gave you. You have to ensure that the name of template in the header of the style.css file is exactly the same as the parent theme name.

    Thread Starter extralivesx99

    (@extralivesx99)

    @respectyoda – I changed the information correctly according to the link you sent me, but I think it’s an issue of creating a child of a child (or a grandchild). This is apparently not allowed in wordpress.

    “Child themes of child themes, or grandchild themes, are not possible.”

    (src: https://make.www.ads-software.com/docs/theme-developer-handbook/part-three-advanced-theme-topics/child-themes/).

    Ah! So the theme you were already working was a child theme. If that is the case, just go to the parent theme and copy header.php and put it in the child theme folder.

    Thread Starter extralivesx99

    (@extralivesx99)

    @respectyoda – Ok, I overwrote the child themes header.php with the parent’s header.php.

    OK. Did that solve your problem then?

    Thread Starter extralivesx99

    (@extralivesx99)

    @respectyoda – Unfortunately it did not. I had a glimmer of hope there for a second though!

    Well, when I said to copy header.php from the parent theme and put it in the child theme folder, that was not the last step. The last step is then to edit the header.php in the child theme folder in which you delete the following lines of code:

    <link rel='stylesheet' id='options_typography_Open+Sans-css' href='//fonts.googleapis.com/css?family=Open+Sans&subset=latin' type='text/css' media='all' />
    
    <link rel='stylesheet' id='options_typography_Damion-css' href='//fonts.googleapis.com/css?family=Damion&subset=latin' type='text/css' media='all' />
    Thread Starter extralivesx99

    (@extralivesx99)

    @respectyoda – these lines do not exist in the header.php. Am I cursed by a ghost?

    header.php has the following “<link rel=”stylesheet”…>”

    <link rel=”stylesheet” type=”text/css” media=”all” href=”<?php echo CHILD_URL; ?>/bootstrap/css/bootstrap.css” />

    <link rel=”stylesheet” type=”text/css” media=”all” href=”<?php echo CHILD_URL; ?>/bootstrap/css/responsive.css” />

    <link rel=”stylesheet” type=”text/css” media=”all” href=”<?php echo PARENT_URL; ?>/css/camera.css” />

    <link rel=”stylesheet” type=”text/css” media=”all” href=”<?php bloginfo( ‘stylesheet_url’ ); ?>” />

    I checked bootstrap.css, responsive.css and camera.css to no avail. I’m not entirely sure how that last “stylesheet_url” works as it appears no where else in the header.

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Can't get rid of Googleapi for Open Sans and Damion’ is closed to new replies.