• Resolved danjde

    (@danjde)


    Hello,
    I’m trying to customize the font type of the template that I’m editing,
    I gave the import parameter in the style.css file:

    @ import url (http://fonts.googleapis.com/css?family=Cabin+Sketch:400, 700);

    and I changed some font information in this way:

    font-family: ‘Cabin Sketch’;

    unfortunately it seems that does not see that font, I’ve gived as indication “Cabin Sketch” should I use a name without spaces or with different parameters?

    thank you very much

    david

Viewing 5 replies - 1 through 5 (of 5 total)
  • What is the URL to your site?

    please use the ‘code’ button or backticks to mark the posted code – http://codex.wordpress.org/Forum_Welcome#Posting_Code

    did you use that code exactly as you posted it here?

    Thread Starter danjde

    (@danjde)

    Excuse me, the site was offline, now is online, here the link site: http://www.ilariascala.it/

    for the code button, I’ve enabled it by frontend through the “code button”.
    I will use the backticks, perhaps better 😉

    Yes, I’ve used the exactly code,
    meanwhile I’ve make other attempts:

    I’ve tryed with the “import” function with the “src” on local as described, with no result:

    font-family: 'Cabin Sketch', cursive;
    src: url('skins/fonts/cabin/CabinSketch-Regular.ttf');

    I’ve tryed with the “import” function with the “src” on remote as described, with no result:

    font-family: 'Cabin Sketch', cursive;
    src: url('http://fonts.googleapis.com/css?family=Cabin+Sketch');

    From firebug, for testing web page title (Ilaria Scala) the font seem Cabin Sketch but instead looks different.

    many thanks for your help!

    davide

    for google fonts, try:

    /* =Fonts
    -------------------------------------------------------------- */
    @import url(http://fonts.googleapis.com/css?family=Cabin+Sketch);

    (no @font-face ..)

    also, your theme or child theme seems to be using !important on the style of the linked site title; possibly remove that.

    also, no idea why your site loads the parent styles after the styles of the child theme.
    there seems to be some confusion about what to edit where.

    please post in the theme’s forum at http://wordpress.org/support/theme/alexandria/ to clarify how to work with a child theme, and how to integrate custom fonts.

    Thread Starter danjde

    (@danjde)

    Thanks for you suggestion,
    probably the problem was not due to a lack of integration of the font,
    today first of every changes, I’ve seen active the “Cabin Sketch” fonts;
    probably the theme has its own cache and the modifications not displayed in real time, I have to check…

    thanks again

    davide

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘customizing template font’ is closed to new replies.