• Resolved Jslat

    (@jslat)


    As the Menu Cart list item is after the navbar ul tags it does not display inline, but instead just below.

    Thanks in advance.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hi! It looks like you are using YooTheme, which uses uses somewhat ‘exotic’ functions/structure to create menus and submenus… Consequently, Menu Cart Pro needs a little bit of help for correct integration. Here’s a script that should fix this.

    
    add_action( 'wp_footer', 'wpo_menucart_move_item' );
    function wpo_menucart_move_item() {
    	?>
    	<script type="text/javascript">
    	jQuery( function( $ ) {
    		$('.uk-navbar-nav').each( function() {
    			$menu = $(this);
    			$menu.parent().find('li.wpmenucart').appendTo($menu);
    		});
    	});
    	</script>
    	<?php
    }
    

    If you haven’t worked with code snippets (actions/filters) or functions.php before, read this guide: How to use filters

    Let us know if you need more help with this!

    Thread Starter Jslat

    (@jslat)

    Thanks for your help.

    Just a small typo in the li class in your solution, but once i spotted that it worked perfectly. Should be “find(‘li.wpmenucartli’)”.

    Thanks again.

    Plugin Contributor Ewout

    (@pomegranate)

    AH thanks for the sharp eye. The .wpmenucart class is present in the Pro version but not free and I hadn’t realized this. Glad to hear this resolves the issue ??

    Happy selling!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Menu cart li not inside menu ul’ is closed to new replies.