badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

Change the font type of the slogan

Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #21965
    YAN
    Participant

    Dear Support,

    I would like to know if the slogan font type could be changed?

    If yes, could you please tell me how? FYI, i would like to change it to “Lucida Handwriting” font.

    Thank you for your support & Best regards,

    #22006

    Hi YAN,

    We have embedded the google fonts in our theme. Since, there is no Lucida Handwriting font in google.com/fonts. So we cannot embedded it in our theme.
    You have to customize the code. You need to hire a developer to embed this font.

    Thank you!

    #22303
    YAN
    Participant

    Dear Support,

    Could you please tell me where i can customize the code in the editor (in what .php file) by putting one of google.com/fonts.

    thanks a lot for the support & best regards.

    #22384

    Hi YAN,

    We recommended not to change the code because if you change the code then while updating to our new version all your customisation code will be lost. So better make child theme and first unhook the functions and the edit the code.

    http://codex.wordpress.org/Child_Themes

    The font is enqueued form theme folder-> inc-> functions-> functions.php on line no 67. You can see this below code
    wp_register_style( 'interface_google_font', '//fonts.googleapis.com/css?family='.$interface_google_font_load .':400,700italic,700,400italic');

    Thank you!

    #39983
    Pavel
    Participant

    Hi,

    because the standard Google loading fonts can not work with latin extended, which I use, it is necessary to add to the line inc/function/function.php 68 “&subset=latin,latin-ext”
    So I’m in a child theme function.php to put this:

    function bobo_google_custom () {
    wp_dequeue_style(‘interface_google_font’);
    wp_deregister_style(‘interface_google_font’);
    wp_register_style( ‘interface_google_font’, ‘//fonts.googleapis.com/css?family=’.$interface_google_font_load .’:400,700italic,700,400,800italic&subset=latin,latin-ext’);
    }

    add_action( ‘wp_enqueue_scripts’, ‘bobo_google_custom’ );

    where I disconnect the original script and put your own. But I do not know how to resolve the variable $ interface_google_font_load that there is not inserted.

    #40050

    Hi Pavel,

    Its better to create your own forum topic rather than posting on others forum topic. Because other user also get notified if post on their forum topic.
    Just create a folder name interface-pro-child inside wp-content-> themes. You need to create two file.
    Style.css and
    functions.php
    Under style.css add this below code

    /*
     Theme Name:   Interface Pro Child
     Theme URI:    http://example.com/twenty-fifteen-child/
     Description:  Interface Pro Child Theme
     Author:       Theme Horse
     Author URI:   http://example.com
     Template:     interface-pro
     Version:      1.0.0
     Text Domain:  twenty-fifteen-child
    */
    @import url("../interface-pro/style.css"); 
    

    and under functions.php add this below code

    <?php
    
    // Unhook default Thematic functions
    function unhook_thematic_functions() {
        // Don't forget the position number if the original function has one
    
    remove_action( 'wp_enqueue_scripts', 'interface_scripts_styles_method' );
    
    }
    add_action('init','unhook_thematic_functions'); // removes the header content by using hook interface_header
    
    add_action( 'wp_enqueue_scripts', 'interface_scripts_child_styles_method' );
    
    function interface_scripts_child_styles_method() {
    	global $interface_theme_default, $interface_theme_setting_value,$interface_default;
       $options = $interface_theme_default;
       $options_setting = $interface_theme_setting_value;
       /**
    	 * Loads our main stylesheet.
    	 */
    	// Load our main stylesheet.
    	wp_enqueue_style( 'interface_style', get_stylesheet_uri());
    	wp_style_add_data( 'interface-ie', 'conditional', 'lt IE 9' ); 
    	
    	if ('on' == $options['site_design']) {
    	//Css for responsive design
    	wp_enqueue_style( 'interface-responsive', get_template_directory_uri() . '/css/responsive.css');
    	}
    	/**
    	 * Adds JavaScript to pages with the comment form to support
    	 * sites with threaded comments (when in use).
    	 */
    	if ( is_singular() && comments_open() && get_option( 'thread_comments' ) )
    		wp_enqueue_script( 'comment-reply' );
    
    	/**
    	 * Register JQuery cycle js file for slider.
    	 * Register Jquery fancybox js and css file for fancybox effect.
    	 */
    	wp_enqueue_script( 'jquery_cycle', INTERFACE_JS_URL . '/jquery.cycle.all.min.js', array( 'jquery' ), '2.9999.5', true );
    	wp_register_script( 'jquery_fancybox', INTERFACE_JS_URL . '/jquery.fancybox-1.3.4.pack.js', array('jquery'), '1.3.4', true ); 
     	wp_enqueue_style( 'jquery_fancybox_style', INTERFACE_CSS_URL . '/jquery.fancybox-1.3.4.css', true);  
      $interface_google_font_loads = array();
       if( $interface_default['interface_general_typography'] != $options_setting[ 'interface_general_typography' ] ) :
       	array_push( $interface_google_font_loads,$options_setting[ 'interface_general_typography' ] );
       endif;
    
        if( $interface_default['interface_navigation'] != $options_setting[ 'interface_navigation' ] ) :
       	array_push( $interface_google_font_loads,$options_setting[ 'interface_navigation' ] );
       endif;
    
        if( $interface_default['interface_title'] != $options_setting[ 'interface_title' ] ) :
       	array_push( $interface_google_font_loads,$options_setting[ 'interface_title' ] );
       endif;
    
       if( 'PT Sans' == $options_setting[ 'interface_general_typography' ] || 'PT Sans' == $options_setting[ 'interface_navigation' ] ):
       	array_push( $interface_google_font_loads,'PT+Sans');
      	endif;
    
      	$interface_google_font_load = implode("|", $interface_google_font_loads);
    
      	wp_register_style( 'interface_google_font', 'http://fonts.googleapis.com/css?family='.$interface_google_font_load .':400,700italic,700,400,800italic&subset=latin,latin-ext');
      	wp_enqueue_style( 'interface_google_font' );
     /**
    	 * Enqueue Slider setup js file.
    	 * Enqueue Fancy Box setup js and css file.	 
    	 */
    	 	if( 'revolution-slider' != $options[ 'slider_type' ] && '0' == $options[ 'disable_slider' ] ) { 
    		if ( (  'slider-on-everypage' == $options[ 'slider_status' ] ) || ( ( is_home() || is_front_page() ) &&  'slider-on-homepage' == $options[ 'slider_status' ] ) ) {
    		wp_enqueue_script( 'interface_slider', INTERFACE_JS_URL . '/interface-slider-setting.js', array( 'jquery_cycle' ), false, true );
    		}
    	}
    	wp_enqueue_script( 'interface_fancybox_setup', INTERFACE_JS_URL . '/interface-custom-fancybox-script.js', array('jquery_fancybox'), false , true);   
    	wp_enqueue_script( 'backtotop', INTERFACE_JS_URL. '/backtotop.js', array( 'jquery' ) );
    	wp_enqueue_script( 'scripts', INTERFACE_JS_URL. '/scripts.js', array('jquery') );
    	wp_enqueue_script( 'jquery_custom', INTERFACE_JS_URL. '/jquery.custom.js', array('jquery') );
    	wp_enqueue_script('easing', INTERFACE_JS_URL . '/jquery.easing.1.3.js', array('jquery'), true);
    	wp_enqueue_script('quicksand', INTERFACE_JS_URL . '/jquery.quicksand.js', array('jquery'), true);
    	wp_enqueue_style( 'jquery_fancybox_style' ); 
    
    } 
    
    /****************************************************************************************/
    ?>

    Hope this may help to solve your problem
    Thank you!

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.