Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use wp_enqueue_script() / wp_enqueue_style() #1

Open
crgeary opened this issue Jun 18, 2014 · 0 comments
Open

Use wp_enqueue_script() / wp_enqueue_style() #1

crgeary opened this issue Jun 18, 2014 · 0 comments

Comments

@crgeary
Copy link

crgeary commented Jun 18, 2014

Use wp_enqueue_script() & wp_enqueue_style() to include your CSS/JS files. You have your theme stylesheet, markdown, fontdeck all hard coded into your header making it impossible to reorder/modify via hooks.

Example:

function wpthb_enqueue()
{
    wp_enqueue_style( 'fontdeck', 'http://f.fontdeck.com/s/css/D8Fz3XWt+VC0VDejQHe7Mks5Qzc/jeffreysambells.com/3438.css' );
    wp_enqueue_style( 'style', get_bloginfo( 'stylesheet_url' ) ) );
}
add_action( 'wp_enqueue_scripts', 'wpthb_enqueue' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant