ThemeShaper Forums » Thematic

[closed]

suckerfish nav-bar style

(12 posts)
  • Started 2 years ago by logostar
  • Latest reply from logostar
  • This topic is resolved

Tags:

  1. logostar
    Member

    Is it possible to get suckerfish to display in the nav-bar style?
    I notice both the default and classic navigation are different menu and sf.menu. Menu seems to be the steps to achieve this but it doesnt work.
    [http://users.tpg.com.au/j_birch/plugins/superfish/#sample4]

    Posted 2 years ago #
  2. don't understand your question. thematic already uses superfish

    Posted 2 years ago #
  3. logostar
    Member

    Yes, Thematic uses suckerfish. How can one achieve the styling as shown from the link above? Rather then have child links displayed vertically, how can I change the codes to have it look like sample 4 nav-bar style?

    I'm saying, its possible the classic template navigation was built to do so, however it doesn't seem to work. I tried including the additional css from the site but it doesn't make much difference - still in vertical view.

    [side note] I notice a section with the same issue, I tried their code and it doesnt work either.

    Posted 2 years ago #
  4. found example 4

    you need to use their stylesheet

    http://users.tpg.com.au/j_birch/plugins/superfish/css/superfish-navbar.css

    AND according to the stylesheet you also need to add the class sf-navbar in addition to sf-menu

    Posted 2 years ago #
  5. logostar
    Member

    Thank you Helga! Seems to me that I haven't noticed sf-navbar to be added to sf-menu class (using child theme)

    Am I missing something? The sub links only seem to show up when hovering over the parent link. Would the code below allow it to work?

    ( $(document).ready(function(){
    $("ul.sf-menu").superfish({
    pathClass: 'current'
    });
    }); )

    Posted 2 years ago #
  6. logostar
    Member

    Has anyone figured how to allow the sub links to be displayed once the current parent page is selected?

    Posted 2 years ago #
  7. sf-navbar ISN'T added to the menu by default. you'll need to filter the menu arguments.

    something like this ought to do that:

    // change the default arguments for wp_page_menu()
    function child_nav_menu_args($args) {
    	$args['menu_class'] = 'sf-menu sf-navbar';
    	return $args;
    }
    add_filter('thematic_nav_menu_args','child_nav_menu_args');

    whether that makes the whole thing work like you're hoping, i couldn't say.

    Posted 2 years ago #
  8. logostar
    Member

    I did included sf-navbar and while it did give the appearance of said link, It did not display as the site showed. As i've mentioned above

    $(document).ready(function(){
    $("ul.sf-menu").superfish({
    pathClass: 'current'
    });
    });

    could be whats required. How can I achieve this?

    Posted 2 years ago #
  9. i really have no idea how to make superfish work the way you want. but you can see this thread for how to add scripts to the header:

    http://forums.themeshaper.com/topic/jquery-in-thematic-demystified

    Posted 2 years ago #
  10. logostar
    Member

    I found the solution here on the forum!

    Posted 2 years ago #
  11. can you share the solution in case someone else finds this thread?

    Posted 2 years ago #
  12. logostar
    Member


RSS feed for this topic

Topic Closed

This topic has been closed to new replies.