WordPress.org

Ready to get started?Download WordPress

Forums

WP Menu Cart
[resolved] WP Menu Cart & Artisteer 4.1 designed theme (7 posts)

  1. Jurij
    Member
    Posted 1 year ago #

    Hi,
    this topic was helpful for me to: http://wordpress.org/support/topic/wp-menu-cart

    To save time to somebody with the same issue, here is what I did.

    In the header.php I have change this:

    <nav class="art-nav">
        <div class="art-nav-inner">
        <?php
    	echo theme_get_menu(array(
    			'source' => theme_get_option('theme_menu_source'),
    			'depth' => theme_get_option('theme_menu_depth'),
    			'menu' => 'primary-menu',
    			'class' => 'art-hmenu'
    		)
    	);
    	get_sidebar('nav');
    ?>
            </div>
        </nav>

    into that:

    <nav class="art-nav">
        <div class="art-nav-inner">
        <?php
    	echo wp_nav_menu(array(
    			'source' => theme_get_option('theme_menu_source'),
    			'depth' => theme_get_option('theme_menu_depth'),
    			'menu' => 'primary-menu',
    			'menu_class' => 'art-hmenu'
    		)
    	);
    	get_sidebar('nav');
    ?>
            </div>
        </nav>

    Main idea come from following this comment from a topic above:

    The only change I made was to replace the Artisteer menu function with the WordPress wp_nav_menu function in my themes header.php file, and now your cart icon is displayed! I went further and parsed the Artisteer style classes in the function, and now the menu renders exactly how I have set it up in Artisteer!

    Thanks!

    http://wordpress.org/extend/plugins/wp-menu-cart/

  2. Jeremiah
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Jurij, thanks for posting your solution! Hopefully this benefits anyone else struggling with Artisteer. :)

  3. mikebw2000
    Member
    Posted 6 months ago #

    I tried the above solution using wordpress 3.8 and jigoshop but the cart is not showing. Any other solutions?

  4. Corrado Prever
    Member
    Posted 6 months ago #

    I just try and is not working....:-(

  5. Ewout
    Member
    Plugin Author

    Posted 6 months ago #

    The menu_class argument doesn't work when you have not created a menu (appearance >menus, then assign it to the primary menu).
    If you compare the source, you'll notice that it doesn't work because the
    <ul> is missing the "art-hmenu" class.

    Creating a menu should fix this issue (it did on my test install). You'll need a menu for the Menu Cart either way!

  6. mikebw2000
    Member
    Posted 6 months ago #

    I can verify that the above solution does work. I had some theme issues and that why it wasnt working. I had double child them. Thanks to the author for good plugin!

  7. Ewout
    Member
    Plugin Author

    Posted 4 months ago #

    For anyone that has a different header template than in the example posted by Jurij, it comes done to just replacing the menu function, the rest can be left in tact.

    replace:

    echo theme_get_menu(array(
    			'source' => theme_get_option('theme_menu_source'),
    			'depth' => theme_get_option('theme_menu_depth'),
    			'menu' => 'primary-menu',
    			'class' => 'art-hmenu'
    		)
    	);

    by:

    echo wp_nav_menu(array(
    			'source' => theme_get_option('theme_menu_source'),
    			'depth' => theme_get_option('theme_menu_depth'),
    			'menu' => 'primary-menu',
    			'menu_class' => 'art-hmenu'
    		)
    	);

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic