-
kala
ParticipantHow 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?
Daniel Tara
KeymasterIn 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 functionpinboard_available_fonts()
to make them available in theme options.kala
Participantfor 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.Daniel Tara
KeymasterHere’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
kala
Participantdoesn’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=pinboardhelp!!
Daniel Tara
KeymasterThe 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.
kala
Participantbut 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.
kala
Participantalready wrote my admin, they have to do something (I hope they do …), but now the question is, why is this happen? fear change anything …:/
Daniel Tara
KeymasterThat’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.
kala
Participantnow 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..kala
ParticipantI 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?
Tagged: fonts, sidebar header wide
You must be logged in to reply to this topic.