| bio | website | sanjaypoyzer.com |
|---|---|---|
| location | ||
| age | ||
| visits | member for | 5 months |
| seen | Mar 10 at 19:18 | |
| stats | profile views | 3 |
|
Feb 20 |
comment |
My jQuery is enqueued properly. So why isn't it working? Ah, double checked the code I'd coped over from Chip, had missed a bit. Many thanks. |
|
Feb 20 |
accepted | My jQuery is enqueued properly. So why isn't it working? |
|
Feb 20 |
comment |
My jQuery is enqueued properly. So why isn't it working? Ah, copied your code over wrong. All understood now, many thanks! |
|
Feb 20 |
comment |
My jQuery is enqueued properly. So why isn't it working? This doesn't seem to have changed anything either. I wasn't getting anything in the console before but since adding the $ as per Chip Bennett's suggestion, I am now getting this error: Uncaught TypeError: Property '$' of object [object Window] is not a function buttons.js:1 |
|
Feb 20 |
comment |
My jQuery is enqueued properly. So why isn't it working? Most similar questions seem to be pointing towards jQuery not loading properly but I know that's not the case on mine as other jQuery powered elements such as slideshows are working fine. |
|
Feb 20 |
awarded | Editor |
|
Feb 20 |
revised |
My jQuery is enqueued properly. So why isn't it working? added that jQuery has loaded |
|
Feb 20 |
comment |
My jQuery is enqueued properly. So why isn't it working? The code seems to work fine in a jsfiddle away from Wordpress though, which is why I thought it must be wp specific. |
|
Feb 20 |
comment |
My jQuery is enqueued properly. So why isn't it working? This doesn't seem to have changed anything. :( |
|
Feb 20 |
asked | My jQuery is enqueued properly. So why isn't it working? |
|
Feb 13 |
accepted | How can a 'scripts' directory be hooked into wp_head();? |
|
Feb 13 |
comment |
How can a 'scripts' directory be hooked into wp_head();? Ah I see! Thanks so much. |
|
Feb 13 |
comment |
How can a 'scripts' directory be hooked into wp_head();? Ok so I'm looking at the pinboard theme and in this is what it's doing: add_action( 'init', 'pinboard_register_scripts' );
if ( ! function_exists( 'pinboard_enqueue_scripts' ) ) :
function pinboard_enqueue_scripts() {
wp_enqueue_script( 'ios-orientationchange-fix' );
wp_enqueue_script( 'jquery' );
wp_enqueue_script( 'flexslider' );
wp_enqueue_script( 'fitvids' );
Can't I just add in a new script like wp_enqueue_script( 'example' ); to that list? I just tried it and it doesn't seem to work. |
|
Feb 13 |
asked | How can a 'scripts' directory be hooked into wp_head();? |
|
Jan 15 |
awarded | Commentator |
|
Jan 15 |
accepted | Is there any way to have Featured Text, as opposed to Featured Image? |
|
Jan 15 |
comment |
Is there any way to have Featured Text, as opposed to Featured Image? Thanks, especially for telling me where the excerpt box is found. |
|
Jan 15 |
comment |
Is there any way to have Featured Text, as opposed to Featured Image? Ah, I see. I didn't realise that there was an additional, optional excerpt box. Thanks all. |
|
Jan 14 |
awarded | Scholar |
|
Jan 14 |
comment |
Is there any way to have Featured Text, as opposed to Featured Image? Couldn't use excerpt, had to be text not in the post. Thanks though. |