173 posts
  • Has sold $40,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Has been part of the Envato Community for over 3 years
  • Sells items exclusively on Envato Market
+1 more
Decneo says

it works fine on my HTML version but not for wordpress Version.

here is in html :

Please click image below for big pic

IN WP :

Header.php

<?php wp_nav_menu( array(‘container_id’ => ‘nav’,’container_class’ => ‘navigation’,’container’ => ’’ ) ); ?>

in function.php :

if (function_exists(‘register_nav_memus’)) {

register_nav_menus(array('main_menu' =>'Main Navigation Menu'));
}

In js load :

The result is the menu not showing like my html version, it just list normal.

Best regards, Decneo

1179 posts
  • Has referred 200+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+2 more
mabuc says

try this one..

<?php
wp_nav_menu( array( 'container_class' => 'menu', 'container_id' => 'dropdown', 'menu_id' => '', 'menu_class' => 'sf-menu' ) );
?>

HTML should be…

<nav id="dropdown" class="menu">
    <ul class="sf-menu"> </ul>
</nav>

Enqueue script..

wp_register_style( 'superfish-style', get_stylesheet_directory_uri() . '/js/superfish/superfish.css' );    
wp_register_script( 'superfish', get_template_directory_uri() . '/js/superfish/superfish.js' );    
wp_enqueue_style( 'superfish-style' );
wp_enqueue_script( 'superfish' );

I hope this helps.. :)

173 posts
  • Has sold $40,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Has been part of the Envato Community for over 3 years
  • Sells items exclusively on Envato Market
+1 more
Decneo says

try this one..
<?php
wp_nav_menu( array( 'container_class' => 'menu', 'container_id' => 'dropdown', 'menu_id' => '', 'menu_class' => 'sf-menu' ) );
?>

HTML should be…

<nav id="dropdown" class="menu">
    <ul class="sf-menu"> </ul>
</nav>

Enqueue script..

wp_register_style( 'superfish-style', get_stylesheet_directory_uri() . '/js/superfish/superfish.css' );    
wp_register_script( 'superfish', get_template_directory_uri() . '/js/superfish/superfish.js' );    
wp_enqueue_style( 'superfish-style' );
wp_enqueue_script( 'superfish' );
I hope this helps.. :)

Thank you for your replied mabuc. I will customize mine as yours then will let you know.

I’m not sure some jQuery effect not work but some jQuery work like flexslider, is it conflict with the superfish?

PS: all work fine in HTML Version,(also Every jQuery).

1179 posts
  • Has referred 200+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+2 more
mabuc says


try this one..
<?php
wp_nav_menu( array( 'container_class' => 'menu', 'container_id' => 'dropdown', 'menu_id' => '', 'menu_class' => 'sf-menu' ) );
?>

HTML should be…

<nav id="dropdown" class="menu">
    <ul class="sf-menu"> </ul>
</nav>

Enqueue script..

wp_register_style( 'superfish-style', get_stylesheet_directory_uri() . '/js/superfish/superfish.css' );    
wp_register_script( 'superfish', get_template_directory_uri() . '/js/superfish/superfish.js' );    
wp_enqueue_style( 'superfish-style' );
wp_enqueue_script( 'superfish' );
I hope this helps.. :)

Thank you for your replied mabuc. I will customize mine as yours then will let you know.

I’m not sure some jQuery effect not work but some jQuery work like flexslider, is it conflict with the superfish?

PS: all work fine in HTML Version,(also Every jQuery).
if it’s conflict try to use jquery no conflict
var $j = jQuery.noConflict(); 
173 posts
  • Has sold $40,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Has been part of the Envato Community for over 3 years
  • Sells items exclusively on Envato Market
+1 more
Decneo says



try this one..
<?php
wp_nav_menu( array( 'container_class' => 'menu', 'container_id' => 'dropdown', 'menu_id' => '', 'menu_class' => 'sf-menu' ) );
?>

HTML should be…

<nav id="dropdown" class="menu">
    <ul class="sf-menu"> </ul>
</nav>

Enqueue script..

wp_register_style( 'superfish-style', get_stylesheet_directory_uri() . '/js/superfish/superfish.css' );    
wp_register_script( 'superfish', get_template_directory_uri() . '/js/superfish/superfish.js' );    
wp_enqueue_style( 'superfish-style' );
wp_enqueue_script( 'superfish' );
I hope this helps.. :)

Thank you for your replied mabuc. I will customize mine as yours then will let you know.

I’m not sure some jQuery effect not work but some jQuery work like flexslider, is it conflict with the superfish?

PS: all work fine in HTML Version,(also Every jQuery).
if it’s conflict try to use jquery no conflict
var $j = jQuery.noConflict(); 

Thank you very much mabuc,it’s work now without using jQuery.noConflict(); some of my js conflict the supperfish.

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by