jfkweb
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Sprite Rollover Hover state not appearing.yep, cheers alchymyth, thought it might be a wordpress theme thing because thought the css was ok.
thanks
Forum: Themes and Templates
In reply to: Sprite Rollover Hover state not appearing.Yeah see the line now, suppose its because of the string of nested classes the theme declared. Thanks for you help!
Forum: Themes and Templates
In reply to: Sprite Rollover Hover state not appearing.Have change css to
‘
li#turkey a:hover{
background-position:-200px 0;
}
‘still the same…
Forum: Themes and Templates
In reply to: Sprite Rollover Hover state not appearing.I had the position rule commented and the background color included, have pute back to just declaring position now.
Forum: Themes and Templates
In reply to: Sprite Rollover Hover state not appearing.Actually have just put code back to the way it should be and what you mentioned has gone!?
Forum: Themes and Templates
In reply to: Sprite Rollover Hover state not appearing.Just see that now! thanks! Shouldn’t my id over-ride the theme’s classes though?
Forum: Themes and Templates
In reply to: Sprite Rollover Hover state not appearing.Hi , yes i was just trying that way around to test that the image was being moved by 200px. It doesnt work when the link state is 0 0 either. I’ll change back to original code so you can see. btw https://www.visible.ie.
Thanks.
Forum: Hacks
In reply to: how to 'use google libraries'Nice One. Will do. ??
Forum: Hacks
In reply to: how to 'use google libraries'Thanks a mil! got it working, kind of, hoping its a css thing, when click a header it pushes div below it down the page then it bounces back to where it should be. sound familiar? anyway no worries thanks for your help, big donation coming your way ??
happy paddys day to ye!
Forum: Hacks
In reply to: how to 'use google libraries'Sorry Jason, i’m not ignoring you you’re just using terms i dont really understand, wasnt sure whether that line was as an example, but have read a bit on it now and get that bit.
‘Dependency’ is a new one to me, i get what it is (the third part of the wp_register_script?)
so this is my_accordion.js
<script> jQuery(document).ready(function() { jQuery("#accordion").accordion({ header: "h3" }); }); </script>
and this is my functions.php
<?phpfunction my_scripts_method() { // script depends on jquery-ui-accordian, so register // that as a dependency wp_register_script('my_accordion', get_template_directory_uri() . 'my_accordion.js', array('jquery-ui-accordian'), '1.0' ); wp_enqueue_script('my_accordion') } add_action('wp_enqueue_scripts', 'my_scripts_method'); ?>
is this all i need?
Thank you!
Forum: Hacks
In reply to: how to 'use google libraries'thanks so all i need in functions.php is
<?php function my_scripts_method() { // register your script location, dependencies and version wp_register_script('custom_script', get_template_directory_uri() . '/js/custom_script.js', array('jquery'), '1.0' ); // enqueue the script wp_enqueue_script('custom_script'); } add_action('wp_enqueue_scripts', 'my_scripts_method'); ?>
so i leave that line with jquery-ui-accordion as Jason wrote it? just change the name of the js file?
much appreciated, thought this would be more automatic but its good to explore!
Forum: Hacks
In reply to: how to 'use google libraries'cant find functions codex page.
Forum: Hacks
In reply to: how to 'use google libraries'Thank you guys. Dont have a functions.php file, should copy one from twentyeleven and add this? Was looking for relevant codex page is it ‘Function Reference/wp enqueue script?
do i need to put this in separate js file and then call it from functions.php using above structure? do i need to mention jquery-ui-accordion as you have above, thought it would be automatically called? sorry, quite confused.
<script>
jQuery(document).ready(function() {
jQuery(“#accordion”).accordion({ header: “h3” });
});
</script>Forum: Hacks
In reply to: how to 'use google libraries'ok thanks Jason and Esmi. Where is WP_DEBUG?
so i should get accordion working while UGL is deactivated?
I have the accordion working now though. when i deactivate UGL it stops working.
‘All it does is change the location the script is loaded from if you enqueue it correctly in the supported manner.” – have i enqueued it properly, if not what is the correct way?
Many Thanks
Frank
Forum: Hacks
In reply to: how to 'use google libraries'so with plugin installed when i use the following code, its callung from google CDN?
<head> <style type="text/css" media="screen"> @import url("<?php bloginfo("stylesheet_url"); ?>");</style> <?php wp_enqueue_script('jquery'); ?> <?php wp_enqueue_script('jquery-ui-core'); ?> <?php wp_head(); ?> <script> jQuery(document).ready(function() { jQuery("#accordion").accordion({ header: "h3" }); }); </script> </head>