Tagged Questions
2
votes
2answers
174 views
How to move style from template file to <head> section?
Imagine the following situation:
//header.php contains:
<header id="header">logo and navigation</header>
//my-template.php contains:
<?php get_header(); ?>
<style ...
0
votes
1answer
265 views
What's a good way to unenqueue all scripts for a single template page?
I've found that my attachment templates are inheriting the enqueued scripts for single posts. My first instinct was to unenqueue these scripts one-by-one or to do an is_attachment() check before ...
0
votes
1answer
394 views
Run a jquery script on on a certain template page
All I want to do is basically this:
wp_register_script( 'jquery_zebra', get_bloginfo('stylesheet_directory') . '/library/scripts/jquery.zebra.js', array('jquery'));
wp_register_style( ...