Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #859587

    I have a root folder with all font extension. How can use it in function.php of my theme child?

    #859596

    or you use a google font instead : i think ropa is very nearby the DIN Font

    #859598

    Yes, Ropa is similar http://lumex.it/nuovo/

    #859971

    Hi,

    Great, so you are good with this for now?

    Best regards,
    Rikard

    #859988

    Really no, I want use DIN font not Rpa Sans :-)

    #860027

    Hi,

    This plugin should help you: https://wordpress.org/plugins/use-any-font/

    Best regards,
    John Torvik

    #860261

    ropa not roboto ! this is on default not integrated in enfold.

    tell us exactly where your fonts are (maybe a good place is /wp-content/uploads/fonts) and the names of your files

    than you might place a @import rule to style.css of your child-theme – something like this:

    @font-face{ 
    	font-family: 'MyWebFont';
    	src: url('WebFont.eot');
    	src: url('WebFont.eot?#iefix') format('embedded-opentype'),
    	     url('WebFont.woff') format('woff'),
    	     url('WebFont.ttf') format('truetype'),
    	     url('WebFont.svg#webfont') format('svg');
    }

    you have to put in your path to your files

    ____________________________
    if you like to test Ropa – this goes to functions.php of your child-theme:

    add_filter( 'avf_google_heading_font',  'avia_add_heading_font');
    function avia_add_heading_font($fonts)
    {
    $fonts['Ropa Sans'] = 'Ropa Sans:400,400i';
    return $fonts;
    }
    
    add_filter( 'avf_google_content_font',  'avia_add_content_font');
    function avia_add_content_font($fonts)
    {
    $fonts['Ropa Sans'] = 'Ropa Sans:400,400i';
    return $fonts;
    }
    • This reply was modified 7 years, 2 months ago by Guenni007.
    #860495

    Hi,

    Thanks for helping out @guenni007 :-)

    Did you that out @unicaweb?

    Best regards,
    Rikard

    #860505

    Thanks, I insert folder font under /uploads/fonts and in function.php

    @font-face{
    font-family: ‘DIN’;
    src: url(‘din-next.eot’);
    src: url(‘din-next?#iefix’) format(’embedded-opentype’),
    url(‘din-next.woff’) format(‘woff’),
    url(‘din-next.ttf’) format(‘truetype’),
    url(‘din-next.svg#webfont’) format(‘svg’);
    }

    #860852

    Hi,

    Thanks for the feedback, did you paste the CSS in functions.php? If so then please move it to Quick CSS.

    Best regards,
    Rikard

    #865578

    Yesm, it is in child style.css and my fonts under /wp-content/uploads/fonts

    #866024

    Hi,

    Please refer to this post and add your custom fonts – http://justcreative.com/2013/01/22/how-to-use-custom-fonts-with-font-face-on-wordpress/

    Best regards,
    Yigit

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