Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Found typo, can find file. Wordpress, link CSS

So I can see my typo when I view source, but I can't figure out how to fix it.

Below you can see : http://diamondlifecafe.com/wordpress/wp-content/themes/PortfolioforAGstyle.css?ver=3.6.1

and I need a / between AG and style. But I've looked through all my files and can't find the file to fix this.

(update: my code can't be seen in this comment, so just say "view source" here http://diamondlifecafe.com/wordpress/

<!DOCTYPE html> <html> <head> <title> About – My Website </title> <meta name='robots' content='noindex,nofollow' /> <link rel='stylesheet' id='admin-bar-css' href='http://diamondlifecafe.com/wordpress/wp-includes/css/admin-bar.min.css?ver=3.6.1' type='text/css' media='all' /> <link rel='stylesheet' id='normalize-css' href='http://diamondlifecafe.com/wordpress/wp-content/themes/PortfolioforAG/css/normalize.css?ver=3.6.1' type='text/css' media='all' /> <link rel='stylesheet' id='grid-css' href='http://diamondlifecafe.com/wordpress/wp-content/themes/PortfolioforAG/css/grid.css?ver=3.6.1' type='text/css' media='all' /> <link rel='stylesheet' id='main-css' href='http://diamondlifecafe.com/wordpress/wp-content/themes/PortfolioforAGstyle.css?ver=3.6.1' type='text/css' media='all' /> <link rel='stylesheet' id='social-css' href='http://diamondlifecafe.com/wordpress/wp-content/themes/PortfolioforAG/css/webfonts/ss-social.css?ver=3.6.1' type='text/css' media='all' />

4 Answers

Scott Paterson
Scott Paterson
26,869 Points
wp_enqueue_style( 'normalize', get_template_directory_uri() . '/css/normalize.css' ); 
wp_enqueue_style( 'grid', get_template_directory_uri() . '/css/grid.css' ); 
wp_enqueue_style( 'grid', 'http://fonts.googleapis.com/css?family=Sorts+Mill+Goudy:400,400italic' );
wp_enqueue_style( 'main', get_template_directory_uri() . '/style.css' );

How about this adding in the slash before style.css?

Scott, It worked!!! Thank you for your help!!!!

Kathryn

Scott Paterson
Scott Paterson
26,869 Points

Have you tried in Functions.php or header.php in your custom there directory?

Yep. In all my files we say - wp_enqueue_style( 'main', get_template_directory_uri() . 'style.css' - and we never reference the full url...

function theme_styles() {

wp_enqueue_style( 'normalize', get_template_directory_uri() . '/css/normalize.css' ); 
wp_enqueue_style( 'grid', get_template_directory_uri() . '/css/grid.css' ); 
wp_enqueue_style( 'grid', 'http://fonts.googleapis.com/css?family=Sorts+Mill+Goudy:400,400italic' );
wp_enqueue_style( 'main', get_template_directory_uri() . 'style.css' );
Scott Paterson
Scott Paterson
26,869 Points

No problem :) , it is always the simple things, last week i spent most part trying to fix my site as it would not validate, i made clean installs, reloading things tweaking code as much as possible, to find out that one of my DNS names was pointing elsewhere and causing the issue.

one minute change fixed it all lol

I'm right with you, and you can see these simple-typos-that-take-hours-to-resolve all over computer education forums!

Thanks again! K