Hi Guys,
Im developing a retail site for a client. The client wants a mega menu featuring a featured product on each page. This is similar to:
Ive chosen to use pagelines/wordpress/jigoshop as the platforms. After looking around I found that no plugin currently has the ability to do this, so I ended up writing my own menu stucture by extending wordpresses's walker nav class and then styling the menu. This way you have the required container divs to construct the mega menu.
I'm having some difficulties now though determining how to reference the clast instance of a class with php code. For example in basic, if you have a menu structure ike this :
<div>
<div class="someclass"></div>
<div class="someclass"></div>
<div class="someclass"></div>
</divl>
I want to reference the last class instance. can I store these in an array and then reference the ubound of the array?
What I want to do is insert another class after the last class instance but do this recursively since they can be nested within the panes of the mega menu.
<div>
<div class="someclass"></div>
<div class="someclass"></div>
<div class="someclass"></div>
<div class="newdiv"></div>
</div>
If I can do this, problem solved because then I can just call the function that is references the jigoshop products..
I contacted one of the pros also. Hopefully will get a response quickly..











