add and change fonts

Viewing 12 posts - 1 through 12 (of 12 total)
  • #14465
    kala
    Participant

    How can I add fonts which are not in the Theme Options? I want to change font and size of the titles of the posts and sidebar header wide (under the header). How it is called the font used in demo?

    #14469
    Daniel Tara
    Keymaster

    In functions.php inside the function pinboard_register_styles() you have a variable $web_fonts where you can add more Google Fonts. You should also add them inside the function pinboard_available_fonts() to make them available in theme options.

    #14475
    kala
    Participant

    for example I want this: font-family: ‘Nothing You Could Do’, cursive;

    how do I add this inside the function pinboard_available_fonts()?

    …….’monaco’ => ‘Monaco, Consolas, “Lucida Console”, “Bitstream Vera Sans Mono”, monospace’,
    ‘Nothing You Could Do’, cursive;
    );

    and in “variable $web_fonts” no have idea how… 🙁

    and next step, if I want to change font of headings of the post and sidebar–wide where I add this? in header.php or functions.php?
    I have tried add this code h1 { font-family: ‘Nothing You Could Do’, ; font-weight: 400; } directly into “Theme Options, layout” but nothing has changed.

    #14479
    Daniel Tara
    Keymaster

    Here’s how to do it in pinboard_available_fonts():

    	'monaco' => 'Monaco, Consolas, "Lucida Console", "Bitstream Vera Sans Mono", monospace',
    	'nothing-you-could-do' => '"Nothing You Could Do", cursive',
    );

    and in $web_fonts:

    	'pt-serif' => 'PT+Serif',
    	'nothing-you-could-do' => 'Nothing+You+Could+Do',
    );

    Then you should be able to select the font in Theme Options > Typography

    #14482
    kala
    Participant

    doesn’t work, I add this as yo write, update file and have nothing, white page
    🙁
    tried several times, with another fonts and nothing, white page. and now the worst thing, I delete changes, update and have white page, my site disappeared, write in google the name of my page and you will see white page, the only thing I’ve got:
    http://www.przystanekhiszpania.pl/wp-admin/theme-editor.php?file=functions.php&theme=pinboard

    help!!

    #14483
    Daniel Tara
    Keymaster

    The code above had a typo, I have fixed it now.

    If anything bad happens you can restore the original file at any time from here.

    #14484
    kala
    Participant

    but I still doesn’t have access to the site or admin, I have only access to page with “edit function.php” but any attempt to introduce any changes ended with white page. and what now? I don’t want to change anything, I just want to recover my page.

    #14486
    Daniel Tara
    Keymaster

    You can also restore it via ftp, try FileZilla.

    #14489
    kala
    Participant

    already wrote my admin, they have to do something (I hope they do …), but now the question is, why is this happen? fear change anything …:/

    #14493
    Daniel Tara
    Keymaster

    That’s what happens when code contains a typo, don’t worry it’s totally fixable, though you might want to direct your admin to this topic so he understands exactly what’s going on.

    #14497
    kala
    Participant

    now I have this info: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ‘)’ in /home/hiszpania/ftp/wp-content/themes/pinboard/functions.php on line 525
    I have to correct it but functions.php is blocked, have copy but still no have idea what I need to correct, where´s the error, I don´t know this language..

    #14511
    kala
    Participant

    I erased the unfortunate font, page is already running! but now the question is, if I want to add a new font, how to do it? Why they write that you can add all google fonts if it doesn’t work? Maybe I can only change something into “Theme Options, Layout” where is a place for custom CSS?

Viewing 12 posts - 1 through 12 (of 12 total)

You must be logged in to reply to this topic.