Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I add animated images before each nav menu item?
    primarykey
    data
    text
    <p>I have the working HTML and CSS for these nav menu items, but I need to find out how to add these unique images right before each menu item in WordPress. Since these are animated on hover over the menu name, I couldn't make them work as CSS background images, so I had to put them in the HTML.</p> <p>Here's the HTML:</p> <pre><code>&lt;aside&gt; &lt;nav id="side-nav"&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="#"&gt;&lt;img src="http://www.example.com/wp-content/themes/BLANK-Theme/images/2020-WashoeBasket-01.png" height="25" width="34"&gt;Shop&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;&lt;img src="http://www.example.com/wp-content/themes/BLANK-Theme/images/2020-WashoeBasket-02.png" height="25" width="34"&gt;Dine&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;&lt;img src="http://www.example.com/wp-content/themes/BLANK-Theme/images/2020-WashoeBasket-04.png" height="25" width="34"&gt;Visit&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;&lt;img src="http://www.example.com/wp-content/themes/BLANK-Theme/images/2020-WashoeBasket-05.png" height="25" width="34"&gt;Culture&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;&lt;img src="http://www.example.com/wp-content/themes/BLANK-Theme/images/2020-WashoeBasket-13.png" height="25" width="34"&gt;Lodgings&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;&lt;img src="http://www.example.com/wp-content/themes/BLANK-Theme/images/2020-WashoeBasket-06.png" height="25" width="34"&gt;Entertainment&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;&lt;img src="http://www.example.com/wp-content/themes/BLANK-Theme/images/2020-WashoeBasket-16.png" height="25" width="34"&gt;Services&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/nav&gt; &lt;/aside&gt; </code></pre> <p>Here is the PHP for WordPress to automatically put the page names and links into the menu items. </p> <pre><code>&lt;?php wp_nav_menu(array('menu' =&gt; 'Main Nav Menu')); ?&gt; </code></pre> <p>How to add in the image links into this?</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.
    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