Gooogke font add on to theme - by ivava - on WordPress WooCommerce support

This topic has 7 replies, 3 voices, and was last updated 7 years, 9 months ago ago by Rose Tyler

  • Avatar: ivava
    ivava
    Participant
    February 14, 2017 at 12:46

    Hi there I tried to add this code to functions.php , but didnt work.:/

    function wpb_add_google_fonts() {
    wp_enqueue_style( ‘wpb-google-fonts’, ‘http://fonts.googleapis.com/css?family=Cormorant+Infant&subset=latin-ext’, false );
    }
    add_action( ‘wp_enqueue_scripts’, ‘wpb_add_google_fonts’ );

    Could you help me please how can I add this font into the theme …Classico?

    Many thanks,

    Iva

    6 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 15, 2017 at 15:14

    Hello,

    Please update the theme to the last version.
    Before update delete “woocommerce” folder in the directory wp-content/themes/classico/ and it’ll be reuploaded from a new theme package.
    Also update all required plugins https://www.8theme.com/download-plugins/ .
    Don’t forget to create back up of your files and database before starting update process!
    https://www.youtube.com/watch?v=KdWESIIPU1k&feature=youtu.be
    (it’s for Legenda theme but the process is the same).

    Then try to use your code or change it follow the example:

    if(!function_exists('my_theme_styles')) {
        function my_theme_styles() {
            wp_enqueue_style("my-google-fonts","http://fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic|Raleway:400,300,500,600,700,800|Cookie&subset=latin,latin-ext");
        }
    }
    add_action( 'wp_enqueue_scripts', 'my_theme_styles', 40);

    Regards,
    Rose Tyler.

    Avatar: ivava
    ivava
    Participant
    February 17, 2017 at 19:55

    Aw thank you,

    but it didn’t help. I cant see it in theme options…maybe I have to hard code it.
    Thats fine , also could you please help me with my logo is not showing up on the main page ….?

    http://kajatheone.com/

    for some reason…?

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    February 18, 2017 at 09:22

    Hello,

    Please read here how to add custom font http://www.wpbeginner.com/wp-themes/how-add-google-web-fonts-wordpress-themes/ .

    As I see you uploaded non-existing image in the page editor http://prntscr.com/ea8j4t .
    Remove it and logo from Theme Options will appear.

    Best regards,
    Jack Richardson.

    Avatar: ivava
    ivava
    Participant
    February 19, 2017 at 17:46

    Oh,
    Thank you very much!!!!

    Thank you

    Iva

    Avatar: ivava
    ivava
    Participant
    February 19, 2017 at 19:51

    Oh so sorry i have one more question… after wordpress update …the back end is not showing any static block but in my theme there is one the footer …but I dont know where tro find it in the back end in wordpress so I can change it .

    Many thanks

    Iva

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 20, 2017 at 11:26

    Hello,

    Footer can be edited in Static Block section. To enable Visual Composer editor for static block go to Visual Composer > Role Manager > Post Types > Custom > tick “static blocks”.
    Also, you can go to Appearance > Widgets > add “Static Block” widget from Footer widget area.
    If this is not what you want then provide wp-admin access in Private Content so we could check issue.

    Regards,
    Rose Tyler.

  • Viewing 7 results - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.