Forum Replies Created

Viewing 15 replies - 16 through 30 (of 43 total)
  • On one of my pages even the above code did not work, so I solved the problem with a plugin “Disable and Remove Google Fonts”, and that worked.

    Best regards,
    BR

    Thread Starter managerslo

    (@managerslo)

    Thank you @kharisblank for your help & time. You are the best.

    Best regards,
    BR

    Hallo @rebelhig

    After you insert the code in functions.php you also have to go to Customize/Typography/Headings and change font family to “System default” and also to the same in Customize/Typography/Body section. Also change the fonts then in Customize/Additional CSS for header, menu, footer etc.

    I tried all of the above mentioned things on multiple pages and it worked; when I inspect my site, there is no “google-font” result on the page.

    Using: Sydney free theme (latest update, with latest wp update).

    Beste Grüße,
    BR

    • This reply was modified 3 years, 9 months ago by managerslo.
    • This reply was modified 3 years, 9 months ago by managerslo.

    Hallo @rebelhig

    After doing all of above on some pages I still had Roboto, and on some other I did not.

    At the end, probably the easiest way YOU WILL SOLVE THIS is you just ADD THIS in function.php (Appearance/Theme File Edtior/functions.php):

    add_filter( ‘elementor/frontend/print_google_fonts’, ‘__return_false’ );

    Don`t forged to set your uploaded fonts also for header and menu via Additional css.

    I hope this will solve your problem, it did for my sites, there is no google-fonts when I inspect my site.

    ——

    Beste Grüße,
    BR

    • This reply was modified 3 years, 9 months ago by managerslo.
    • This reply was modified 3 years, 9 months ago by managerslo.
    • This reply was modified 3 years, 9 months ago by managerslo.

    Hallo @rebelhig

    You can also;

    Go to > Elementor > Settings > General > Disable Default Fonts

    and

    Go to Elementor > Tools > General tab > Regenerate CSS (click to regenerate)

    Beste Grüße,
    BR

    • This reply was modified 3 years, 9 months ago by managerslo.

    Hallo @rebelhig

    If you want to remove google fonts, you can deactivate Google Fonts via the Plugin “autooptimize”, BUT save your site before loading this plugin and test it first, because this plugin “AUTOOMPTIMIZE” PLUGIN once BROKE MY WHOLE SITE. And still with “autoompimize” plugin the site still can connect to googleapi automatically. That is why I am waiting for another solution, because I don`t want to use this plugin on my site.

    Maybe this will also help you;

    I have solved this with Custom fonts plugin. I downloaded different fonts from google fonts site to my pc and then uploaded those fonts via Custom Font plugin. There you have the link shown where you font is uploaded and use that link in URL(https://yoursitename.eu/yourlink/Kodchasan-Bold.ttf).

    Then go to Additional CSS and paste this code for everything where you did/could not change the font manually:

    Code:
    font-family: ‘Kodchasan-Bold’; src:local(‘Kodchasan-Bold’), URL(https://yoursitename.eu/wp-content/uploads/Kodchasan-Bold.ttf) !important;

    ——
    When inspecting my site in Chrome I found out that my site loads Roboto from google fonts site, but that was when inspecting the site being logged in my site. When logged out of my site Roboto font google uploading did not show, I only have this code and for this I don`t know if this means that the site is loading any font from google:

    <link rel=”stylesheet” id=”google-fonts-1-css” href=”//mysitename.eu/wp-content/cache/mysitename.eu/wpfc-minified/g211zoah/ddoht.css” type=”text/css” media=”all”>

    —–

    Beste Grüße,
    BR

    • This reply was modified 3 years, 9 months ago by managerslo.
    • This reply was modified 3 years, 9 months ago by managerslo.
    • This reply was modified 3 years, 9 months ago by managerslo.
    • This reply was modified 3 years, 9 months ago by managerslo.
    Thread Starter managerslo

    (@managerslo)

    Hi @kharisblank

    404 shows when logged out.

    When LOGGED IN the page shows String translations (all groups) and slider_title_1 (and all other slider titles- 2, 3 and title 4 on my page) and it shows the translations. The only thing strange is that you can not check/uncheck the string name checkbox at the beginning, but the translations are shown here in String translations, just not in live view.

    In live view on all sliders there are slider titles only in primary language, no matter if you change the page language. When you change the language flag, the page language changes and the whole page text changes in that language, only the slider titles and the slider button text don`t change in other than primary language.

    • This reply was modified 3 years, 9 months ago by managerslo.
    • This reply was modified 3 years, 9 months ago by managerslo.
    • This reply was modified 3 years, 9 months ago by managerslo.
    • This reply was modified 3 years, 9 months ago by managerslo.
    • This reply was modified 3 years, 9 months ago by managerslo.
    Thread Starter managerslo

    (@managerslo)

    Hi @kharisblank

    No, it shows the 404page (mywpsite[dot]com/en/404-page/).

    • This reply was modified 3 years, 9 months ago by managerslo.
    Thread Starter managerslo

    (@managerslo)

    Hi @kharisblank

    Thank you for you time.

    1. Yes. Under Languages / String translations I have;
    – String: Title in original language,
    – Name: slider_title_1 (slider_title_2, slider_title_3, slider_title_4),
    – Group: sydney,
    – Translations: Original language (Slo) and the translation for every language I have (Eng, Ger, Cro).

    2. I have Cached and Minified CSS/JS – everything.

    3. I have;
    – Sydney 2.10 and I am using Sydney Child version 1.53.1546880730,
    – Wp version: 6.0.2
    – Elementor version: 3.7.4

    The issue has been there for more than 6 months, also before and after upgrading.

    Thank you & Best regards,
    BR

    Thread Starter managerslo

    (@managerslo)

    Hy

    I have temporarily disabled this section in my live site for now, due to incorrect page display, but the code is the same as stated above.

    Thank you & Best regards,
    BR

    • This reply was modified 3 years, 10 months ago by managerslo.
    Thread Starter managerslo

    (@managerslo)

    Thank you Kharis

    My codes are (3);

    A) ADDITIONAL CSS code:

    html, body {
        max-width: 100%;
        overflow-x: hidden;
    }
    html {
    overflow: scroll;
    overflow-x: hidden;
    }
    .site {
        background-color: transparent !important;
    }
    .go-top.show {
      display: none !important;
    }
    .page-wrap .content-wrapper {
      padding-bottom: 0 !important;
    }
    /* Mouse cursor pointer cross look */
    div {
        cursor: crosshair;
    }
    .preloader .pre-bounce1, .preloader .pre-bounce2 {
        display: none;
    }
    .preloader .spinner {
        background-image: url(https://XXX.gif);
    	display: flex;
      height: 100vh;
    	width: 90%;
    	height: 90%;
    	margin: 0;
      position: fixed;
      top: 50%;
      left: 50%;
      -ms-transform: translate(-50%, -50%);
      transform: translate(-50%, -50%);
      background-repeat: no-repeat;
      background-size: contain;
    	background-position: center center;
    }
    .site-footer {
      display: none;
    }

    B) HTML code (inserted in the 3rd section; Edit elements – Edit HTML):

    
    <script>jQuery(function($){
        $(window).scroll(function() {
    
      // selectors
      var $window = $(window),
          $body = $('body'),
          $panel = $('.panel');
    
      // Change 33% earlier than scroll position so colour is there when you arrive.
      var scroll = $window.scrollTop() + ($window.height() / 3);
    
      $panel.each(function () {
        var $this = $(this);
    
        // if position is within range of this panel.
        // So position of (position of top of div <= scroll position) && (position of bottom of div > scroll position).
        // Remember we set the scroll to 33% earlier in scroll var.
        if ($this.position().top <= scroll && $this.position().top + $this.height() > scroll) {
    
          // Remove all classes on body with color-
          $body.removeClass(function (index, css) {
            return (css.match (/(^|\s)color-\S+/g) || []).join(' ');
          });
    
          // Add class of currently active div
          $body.addClass('color-' + $(this).data('color'));
        }
      });
    
    }).scroll();
    });</script>

    C) Page settings (EAC custom CSS)

    body {
      transition: background-color 3s ease;
    }
    .color-white {
      background-color: #ffffff;
    }
    .color-light {
        background-color: #cdcdcd;
    }
    .color-black {
      background-color: #000000;
    }
    #masthead {
        position: absolute !important;
        background-color: transparent;
    }

    Thank you for you help & Best regards,
    BR

    • This reply was modified 3 years, 11 months ago by managerslo.
    • This reply was modified 3 years, 11 months ago by managerslo.
    • This reply was modified 3 years, 11 months ago by managerslo.
    Thread Starter managerslo

    (@managerslo)

    Thank you Kharis

    I changed from Child theme to activating main Sydney theme, but nothing changed, the header slider text is still only in the primary language.

    Thread Starter managerslo

    (@managerslo)

    I found this on google search…

    “The checkbox is greyed for the strings generated by the Polylang functions, or wpml-config.xml files (which may be provided by your theme or plugins). These strings are automatically removed from the list when the corresponding plugin or theme is deactivated (although the translations are kept as explained above).”

    I did not deactivate the theme nor the plugins.

    Thread Starter managerslo

    (@managerslo)

    [tested the same issue on another Sydney site of mine]

    I tried to install polylang plugin to another of my Sydney (Sydney child theme) pages, and in the String translations I had wordpress-seo and WordPress, but I could not check/uncheck the String box.

    I also tried to change the theme from Sydney Child to Twenty Twenty-One, Twenty Twenty-Two and Sydney, and the problem was the same.

    I tried to downgrade WordPress version to 4.9.8. and the page broke down.

    I uploaded the newer Wp version via cPanel, and than started to activate every single Plugin individually. There was an error with activating 404-plugin, but after deleting it, the problem with String not translating was still there.

    Thank you & Best regards,
    BR

    • This reply was modified 4 years, 2 months ago by managerslo.
    Thread Starter managerslo

    (@managerslo)

    I also looked at my Child Theme / Theme File Editor and in Theme Files in Theme Functions/functions.php and there is this code:

    <?php
    // Exit if accessed directly
    if ( !defined( 'ABSPATH' ) ) exit;
    
    // BEGIN ENQUEUE PARENT ACTION
    // AUTO GENERATED - Do not modify or remove comment markers above or below:
    
    if ( !function_exists( 'chld_thm_cfg_parent_css' ) ):
        function chld_thm_cfg_parent_css() {
            wp_enqueue_style( 'chld_thm_cfg_parent', trailingslashit( get_template_directory_uri() ) . 'style.css', array( 'sydney-bootstrap' ) );
        }
    endif;
    add_action( 'wp_enqueue_scripts', 'chld_thm_cfg_parent_css', 10 );
    
    // END ENQUEUE PARENT ACTION

    Should I add, change something?

Viewing 15 replies - 16 through 30 (of 43 total)