Community Forums › Forums › Archived Forums › Design Tips and Tricks › Can't change the font in Genesis Framework No Sidebar theme, help please?
- This topic has 7 replies, 2 voices, and was last updated 7 years, 11 months ago by Victor Font.
-
AuthorPosts
-
April 25, 2016 at 3:31 am #184358Craig LinkMember
I'm really new using the Genesis Framework and I've slowly been picking it up over the last 12 hours.
I've been searching desperately for a way to edit the fonts within my site but so far I've found nothing.
If somebody cold shed some light on how to do this I'd be most grateful.
Thanks!
CraigApril 25, 2016 at 5:37 am #184363Victor FontModeratorStudio Press theme's use Google fonts. In the No Sidebar Pro theme, look for this code in functions.php around line 28:
wp_enqueue_style( 'google-fonts', '//fonts.googleapis.com/css?family=Lato:400,400italic,700|Oswald:300|Playfair+Display:400,400italic,700', array(), CHILD_THEME_VERSION );
Change the fonts to what you want, then search through style.css for any font-family tags and change those to the new font in which you want those elements displayed.
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?April 26, 2016 at 12:52 am #184431Craig LinkMemberHi Victor,
Thank you for your reply.
I located that line of code and tried to past the code a good font in.
Now however, I now have an error code on my site and can't seem to do anything else.
It reads:
Parse error: syntax error, unexpected '<' in /home/techno27/public_html/wp-content/themes/no-sidebar-pro/functions.php on line 26
Any ideas as to what might have gone wrong and how I can fix this?
Kind regards
CraigApril 26, 2016 at 7:39 am #184445Victor FontModeratorYou pasted the code incorrectly. What font are you trying to add to the theme?
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?April 27, 2016 at 1:37 am #184491Craig LinkMemberI'd like to change both the body text font as well as the header / site identity font.
The new Google font is here:
<link href='https://fonts.googleapis.com/css?family=Lora:400,400italic,700' rel='stylesheet' type='text/css'>
I managed to find the line in functions.php easily enough:
wp_enqueue_style( 'google-fonts', '//fonts.googleapis.com/css?family=Lato:400,400italic,700|Oswald:300|Playfair+Display:400,400italic,700', array(), CHILD_THEME_VERSION );
So how/where precisely should I paste the code?
Please forgive me if it's trouble but my knowledge of coding is literally zero but I'm trying to learn as quick as I can.
Regards
April 27, 2016 at 2:35 pm #184556Victor FontModeratorHere's the new line of code:
wp_enqueue_style( 'google-fonts', '//fonts.googleapis.com/css?family=Lato:400,400italic,700|Oswald:300|Playfair+Display:400,400italic,700|Lora:400,400italic,700', array(), CHILD_THEME_VERSION );
You still have to change the CSS before you'll see it work.
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?April 28, 2016 at 2:33 am #184588Craig LinkMemberOkay that's all sorted now.
I only have one more question then we can consider this resolved.
I'd like to now change the font for the site title?
The new font is here if it makes things easier;
<link href='https://fonts.googleapis.com/css?family=Lato:400,300' rel='stylesheet' type='text/css'>
Again I can't thank you enough for your help!
Regards
CraigMay 3, 2016 at 6:00 am #184893Victor FontModeratorYou have to add the CSS font-family directive to whatever code block is formatting the title. (probably .entry-title)
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet? -
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.