Your account expired support, please renew to get your support.

Home Forums Themes Support Claue Removing google fonts from theme

Viewing 1 reply thread
  • Author
    Posts
    • #29481
      itamar
      Support Expired

      I’m trying to remove Google Font from my site, but since I’ve passed a template to you I can not remove the call to Google Font

      How to completely remove? I would like to load the font from a directory within my server

      (The font is POPPINS)

      In my opinion, it is loaded from the template with no removal option

      Here is my website https://jewish.shop

      And I’ve included a screenshot from the template settings

      Attachments:
      You must be logged in to view attached files.
    • #29492
      Harry
      Support Expired

      Hi,

      Please add below code to claue-child > functions.php

      if ( ! function_exists( 'jas_claue_enqueue_scripts' ) ) {
      	function jas_claue_enqueue_scripts() {
      		// Google font
      		wp_dequeue_style( 'jas-font-google', jas_claue_google_font_url() );
      
      		// Font Awesome
      		wp_dequeue_style( 'font-awesome' );
      		wp_dequeue_style( 'yith-wcwl-font-awesome' );
      		wp_enqueue_style( 'fontawesome', JAS_CLAUE_URL . '/assets/vendors/font-awesome/css/font-awesome.min.css' );
      
      		// Font Stroke
      		wp_enqueue_style( 'font-stroke', JAS_CLAUE_URL . '/assets/vendors/font-stroke/css/font-stroke.min.css' );
      
      		// Slick Carousel
      		wp_enqueue_style( 'slick', JAS_CLAUE_URL . '/assets/vendors/slick/slick.css' );
      		wp_enqueue_script( 'slick', JAS_CLAUE_URL . '/assets/vendors/slick/slick.min.js', array(), false, true );
      
      		// Magnific Popup
      		wp_enqueue_script( 'magnific-popup', JAS_CLAUE_URL . '/assets/vendors/magnific-popup/jquery.magnific-popup.min.js', array(), false, true );
      
      		// Isotope
      		wp_enqueue_script( 'isotope', JAS_CLAUE_URL . '/assets/vendors/isotope/isotope.pkgd.min.js', array(), false, true );
      
      		// Scroll Reveal
      		wp_enqueue_script( 'scrollreveal', JAS_CLAUE_URL . '/assets/vendors/scrollreveal/scrollreveal.min.js', array(), false, true );
      
      		// jQuery Countdown
      		wp_enqueue_script( 'countdown', JAS_CLAUE_URL . '/assets/vendors/jquery-countdown/jquery.countdown.min.js', array(), false, true );
      
      		// Enqueue script on single product
      		if ( function_exists( 'is_product' ) && is_product() ) {
      			wp_enqueue_script( 'sticky-kit', JAS_CLAUE_URL . '/assets/vendors/jquery-sticky-kit/sticky-kit.min.js', array(), false, true );
      		}
      
      		if ( class_exists( 'WooCommerce' ) ) {
      			wp_enqueue_script( 'wc-add-to-cart-variation' );
      			wp_enqueue_script( 'jquery-ui-autocomplete' );
      
      			// Zoom image
      			if ( is_singular( 'product' ) && cs_get_option( 'wc-single-zoom' ) && !wp_is_mobile() ) {
      				wp_enqueue_script( 'zoom' );
      			}
      		}
      
      		// Main scripts
      		wp_enqueue_script( 'jas-claue-script', JAS_CLAUE_URL . '/assets/js/theme.js', array( 'jquery', 'imagesloaded' ), '', true );
      
      		// Inline script
      		wp_add_inline_script( 'jas-claue-script', jas_claue_custom_js() );
      
      		// Custom localize script
      		wp_localize_script( 'jas-claue-script', 'JAS_Data_Js', jas_claue_custom_data_js() );
      
      		// Responsive stylesheet
      		wp_enqueue_style( 'jas-claue-animated', JAS_CLAUE_URL . '/assets/css/animate.css');
      
      		// Main stylesheet
      		wp_enqueue_style( 'jas-claue-style', get_stylesheet_uri() );
      
      		// RTL stylesheet
      		if ( is_rtl() ) {
                  wp_enqueue_style('jas-claue-rtl', JAS_CLAUE_URL . '/assets/css/rtl.css');
              }
      
      		// Inline stylesheet
      		wp_add_inline_style( 'jas-claue-style', jas_claue_custom_css() );
      
      		if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
      			wp_enqueue_script( 'comment-reply' );
      		}
      
      		do_action( 'claue_scripts');
      	}
      }
      add_action( 'wp_enqueue_scripts', 'jas_claue_enqueue_scripts', 10 );

      Kind regards

      Harry
      Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

Viewing 1 reply thread

You must be logged in to reply to this topic.