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!
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!
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.
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.
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?
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
This should do the trick:
.sf-menu ul {
display: none;
}
killing the javascript is covered here:
http://forums.themeshaper.com/topic/thematic-menus-demystified-1
Thank you both for your posts.
This topic has been closed to new replies.