adsense

How to Edit Style Sheet Links in WordPress Headers





1. Log into the WordPress dashboard from the 'wp-admin' directory of your website. Go to 'Appearance' and click 'Editor' to load the 'Edit Themes' screen. Locate the 'header.php' file listed under 'Templates' and click its link.
2. Locate the '
' tags in 'header.php':
' type='text/css' />These tags do not look the same in every WordPress theme, and some use different values inside of the 'bloginfo()' function. When 'bloginfo()' uses the value above, it outputs the following URL:http://yourwebsite.com/wp-content/themes/themename/style.css

3. Change 'stylesheet_url' to 'template_directory' inside the 'bloginfo()' function to output the path to your theme's files:
' type='text/css' />The above code outputs this URL:http://yourwebsite.com/wp-content/themes/themename/
4. Add the rest of the file path to your '
' tag after the PHP code:
/styles/mystyle.css' type='text/css' />

Comments

0 Responses to "How to Edit Style Sheet Links in WordPress Headers"

Post a Comment

Popular Posts

About