ThemeShaper Forums » Thematic

[closed]

Remove Superfish Dropdowns

(8 posts)
  • Started 13 years ago by hsatterwhite
  • Latest reply from eryx
  • This topic is not resolved
  1. hsatterwhite
    Member

    How do I remove the default dropdowns from an out of the box thematic child theme? I want to remove any markup, css, and javascript from the child theme as it is not needed. I don't need a single trace of it rendering in the theme.

    Thank you!

    Posted 13 years ago #
  2. rickg
    Member

    I'm not sure what you're asking... if you don't want to use the sample child theme just start with a blank child theme folder and a blank style.css inside of it that calls Thematic like this:

    /*
    Theme name: childtheme
    Template: thematic
    */

    If there's nothing else in there you'll have an unstyled page that is marked up with Thematic structure.

    Posted 13 years ago #
  3. hsatterwhite
    Member

    Hi rickg,

    Thanks for the info -- I wasn't aware you could actually do that, but that makes total sense.

    Ideally I want to remove the dropdown menu functionality on the main navigation that comes out of the box with thematic.

    Posted 13 years ago #
  4. I assume you've also checked out the official FAQ section for Thematic: http://themeshaper.com/thematic/guide/?page_id=12 - if you scroll down to thematic_head_scripts() it actually shows you how to replace the dropdown menu with your own scripts.

    If you want to style the menu further your own way, maybe this is a possible step towards the solution:

    http://www.cozmoslabs.com/2009/04/15/add-a-search-box-to-the-thematic-menu/

    This great tutorial tells you how to add a search box to the menu, and the first thing it says to do is to 'unhook' the thematic menu, so that you can use your own menus.

    This is what the child theme's functions.php is for, as far as I've understood it anyway.

    p/s: Superfish is pretty cool. What are you planning to replace it with?

    Posted 13 years ago #
  5. I am having the same problem removing the dropdown menus. Flick, thanks for providing those two great links.

    I have taken a look at both but have kind of become stuck.

    The first post in the themeshaper guide does show you how to edit the code but I can't seem to find the option the removes the dropdown menu on the superfish options.

    http://users.tpg.com.au/j_birch/plugins/superfish/#options

    Your second link was also great but it removed the whole menu, this would mean you would have to rebuild the menu with your own class names. It would make more sense to simply modify the Themematic theme so that the javascript for the dropdowns is just not called.

    Is there another option that I am missing?

    Thanks for all your help

    Posted 12 years ago #
  6. This should do the trick:


    .sf-menu ul {
    display: none;
    }

    Posted 12 years ago #
  7. killing the javascript is covered here:

    http://forums.themeshaper.com/topic/thematic-menus-demystified-1

    Posted 12 years ago #
  8. Thank you both for your posts.

    Posted 12 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.