inner anchor scrolling with wordpress
Your anchor should point to an element with an id, e.g. <a href=”#topic1″>….</a> content <h3 id=”topic1″>….</h3> Otherwise the anchor doesn’t have somewhere to point to. Hope this helps.
Your anchor should point to an element with an id, e.g. <a href=”#topic1″>….</a> content <h3 id=”topic1″>….</h3> Otherwise the anchor doesn’t have somewhere to point to. Hope this helps.
this isn’t a WordPress thing, just an issue with your JS. this: jQuery(“select[name^=’post_author’]”).attr(‘selectedIndex’,selected); should be: jQuery(“select[name^=’post_author’]”).val(selected).attr(‘selected’,’selected’);
there is a plugin (discontinued): http://wordpress.org/extend/plugins/wp-imageflow/) and a Nextgen addon: http://wordpress.org/extend/plugins/nextgen-imageflow/. More samples and the original code (to the best of my knowledge) can be found here: http://finnrudolph.de/ImageFlow/
Twenty Eleven is the default theme and 3.2.1 is working fine for me here, on both a local machine and a server build. Are you getting WordPress directly from WordPress.org? Also, make sure your default theme is twenty eleven and try that. If it is not, you may have a larger issue on your hands.
Your best bet would be to consult the author of plugin since it’s using a custom jQuery plugin script. how can I prevent showing my menu un styled? You can add a class of no-display to the elements of the menu that are un styled as the page loads then in css set .no-display {display:none;}Then … Read more
WordPress comes with copy of jQuery bundled. See wp_enqueue_script() documentation for how to: Register you script properly and make it load jQuery as dependency Use required noConflict wrapper so you can use jQUery functions (simply $ won’t work in WP).
Echo your output in your AJAX callback function Exit PHP after you echo your output using exit; Since you’ve localized the ajaxurl variable, use it in your AJAX request Pass action : ‘my_special_action’ into your AJAX request Whatever action you use, use the same for both nopriv and normal AJAX hooks Here’s how your AJAX … Read more
I think this is probably a more-involved question, but I’ll try to answer it as-is. The following code will wrap each post’s content in a <div>: <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div id=”slide<?php the_ID(); ?>> // Post content – i.e. your slider image – goes here </div> <?php endwhile; … Read more
Are you sure the jQuery library is loaded on your page? The error you’re getting implies it isn’t. View the source and search for jQuery. Then try adding this some where in your functions.php (or plugin) file and see if your script works. <?php add_action( ‘wp_enqueue_scripts’, ‘wpse30127_enqueue’ ); function wpse30127_enqueue() { wp_enqueue_script( ‘jquery’ ); }
I do it this way and it works fine. Make sure you don’t have jQuery defined anywhere else on your site (like manually in the header), as some browsers don’t like that. /** * Load assets on initiation */ add_action(‘init’, ‘load_assets’); function load_assets(){ wp_enqueue_scripts(‘jquery’); }