Note that there are some explanatory texts on larger screens.

plurals
  1. POJquery not working properly in Wordpress
    primarykey
    data
    text
    <p>this is my code for footer.php in wordpress </p> <pre><code>&lt;div class="col-fr col-space flink" id="a-1"&gt; &lt;h4&gt;title&lt;/h4&gt; &lt;?php $menuParameters = array( 'menu' =&gt; 'New To website', 'container' =&gt; false, 'container_class' =&gt; 'footmenu', 'echo' =&gt; false, 'items_wrap' =&gt; '%3$s', 'depth' =&gt; 0, ); echo strip_tags(wp_nav_menu( $menuParameters ), '&lt;a&gt;' ); ?&gt; &lt;/div&gt; &lt;div class="col-fr flink col-space" id="a-2"&gt; &lt;h4&gt;title&lt;/h4&gt; &lt;?php $menuParameters = array( 'menu' =&gt; 'Most Popular', 'container' =&gt; false, 'container_class' =&gt; 'footmenu', 'echo' =&gt; false, 'items_wrap' =&gt; '%3$s', 'depth' =&gt; 0, ); echo strip_tags(wp_nav_menu( $menuParameters ), '&lt;a&gt;' ); ?&gt; &lt;/div&gt; &lt;div class="col-fr flink col-space" id="a-3"&gt; &lt;h4&gt;title?&lt;/h4&gt; &lt;?php $menuParameters = array( 'menu' =&gt; 'Need Help', 'container' =&gt; false, 'container_class' =&gt; 'footmenu', 'echo' =&gt; false, 'items_wrap' =&gt; '&lt;ul&gt;%3$s&lt;/ul&gt;', 'depth' =&gt; 0, ); echo strip_tags(wp_nav_menu( $menuParameters ), '&lt;a&gt;' ); ?&gt; &lt;/div&gt; &lt;div class="col-fr flink" style="margin-right:0px" id="a-4"&gt; &lt;h4&gt;title&lt;/h4&gt; &lt;?php $menuParameters = array( 'menu' =&gt; 'quicklink', 'container' =&gt; false, 'container_class' =&gt; 'footmenu', 'echo' =&gt; false, 'items_wrap' =&gt; '%3$s', 'depth' =&gt; 0, ); echo strip_tags(wp_nav_menu( $menuParameters ), '&lt;a&gt;' ); ?&gt; &lt;/div&gt; &lt;script&gt; var ul = $("&lt;ul&gt;&lt;/ul&gt;").appendTo("#a-1"); $("#a-1 a").each(function() { $(this).wrap("&lt;li&gt;&lt;/li&gt;").parent().appendTo(ul); }); var ul = $("&lt;ul&gt;&lt;/ul&gt;").appendTo("#a-2"); $("#a-2 a").each(function() { $(this).wrap("&lt;li&gt;&lt;/li&gt;").parent().appendTo(ul); }); var ul = $("&lt;ul&gt;&lt;/ul&gt;").appendTo("#a-3"); $("#a-3 a").each(function() { $(this).wrap("&lt;li&gt;&lt;/li&gt;").parent().appendTo(ul); }); var ul = $("&lt;ul&gt;&lt;/ul&gt;").appendTo("#a-4"); $("#a-4 a").each(function() { $(this).wrap("&lt;li&gt;&lt;/li&gt;").parent().appendTo(ul); }); &lt;/script&gt; </code></pre> <p>this script not work normally but if i add</p> <pre><code>&lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"&gt;&lt;/script&gt; </code></pre> <p>to header.php file before</p> <pre><code> &lt;?php wp_head(); ?&gt; &lt;/head&gt; </code></pre> <p>then its work fine... so what wrong with my code.. i don't want to add jquery add again header. it's load by defult already. version also same.. i tried paste that code heaer.php but not work also tried to make one separate js file for this and load.. but no work.. </p> <p>any solution.. ?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload