Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #327858

    tamainut
    Participant

    Hi.

    I don’t understand anything.

    I don’t like use any font of theme X or font using GoogleApis.
    I deactivate ALL fonts en customizer > Typography (also try with custom font activate)
    I get this post for create my child theme without ANY font of googleappis. I create child theme for use my own font locally.
    My own font name Andaluss, not Lato or another.

    But get instrucction I see a code from GoogleApis.

    Please, there’re any way for use my locally font on ALL theme, without any call to googleapis made by wordpress with theme X?

    Sorry for my poor english.

    #328064

    Rad
    Moderator

    Hi there,

    You mean disable all fonts completely? Sure, but this is not recommended as X’s default font serves a fallback font when your font isn’t loaded yet.

    1. Please disable your custom font from customizer’s typography
    2. Remove this code :

    if ( x_get_option( 'x_custom_fonts', '' ) == '1' ) {
          wp_enqueue_style( 'x-font-custom', $get_custom_font_family, NULL, X_VERSION, 'all' );
        } else {
          wp_enqueue_style( 'x-font-standard', $get_standard_font_family, NULL, X_VERSION, 'all' );
        }

    from this file :
    \wp-content\themes\x\framework\functions\global\enqueue\styles.php

    Please note these as this may get overwritten by next update. When you’re done, then you can apply your own font to every element using standard css.

    Hope this helps.

    #328470

    tamainut
    Participant

    Not work.

    See site, and see that H[X] codes not work (not show font andlaus)

    Also code of page show

    <link rel=’stylesheet’ id=’open-sans-css’ href=’//fonts.googleapis.com/css?family=Open+Sans%3A300italic%2C400italic%2C600italic%2C300%2C400%2C600&subset=latin%2Clatin-ext&ver=4.2.2′ type=’text/css’ media=’all’ />

    Wrong code on line 43 show a strangeous line
    .tp-caption a{color:#ff7302;text-shadow:none;-webkit-transition:al………. with googleapis code.

    Desesperate….

    #328508

    Paul R
    Moderator

    Hi,

    Upon checking, I don’t see this code anymore

    
    <link rel=’stylesheet’ id=’open-sans-css’ href=’//fonts.googleapis.com/css?family=Open+Sans%3A300italic%2C400italic%2C600italic%2C300%2C400%2C600&subset=latin%2Clatin-ext&ver=4.2.2′ type=’text/css’ media=’all’ />

    Please clear or browser cache and plugin cache.

    With regards to line 43, that code is being added by revolution slider plugin.

    Kindly create a new topic then provide us with your wordpress admin login in there so we could take a closer look.

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thanks