Strict Standards: Redefining already defined constructor for class bbdb in /home/themes/public_html/forums/bb-includes/db-mysql.php on line 12

Strict Standards: Declaration of BB_Walker_Blank::start_lvl() should be compatible with BB_Walker::start_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_lvl() should be compatible with BB_Walker::end_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::start_el() should be compatible with BB_Walker::start_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_el() should be compatible with BB_Walker::end_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Warning: Cannot modify header information - headers already sent by (output started at /home/themes/public_html/forums/bb-includes/db-mysql.php:12) in /home/themes/public_html/forums/my-templates/kakumei-variant/rss2.php on line 1
ThemeShaper Forums Topic: Thematic Menus Demystified http://forums.themeshaper.com/ Help In Shaping WordPress Themes en Thu, 28 May 2015 16:00:14 +0000 faeree on "Thematic Menus Demystified" http://forums.themeshaper.com/topic/thematic-menus-demystified-1/page/5#post-27172 Sun, 27 May 2012 20:46:43 +0000 faeree 27172@http://forums.themeshaper.com/ <p>moved to own thread </p> boerenooi on "Thematic Menus Demystified" http://forums.themeshaper.com/topic/thematic-menus-demystified-1/page/5#post-27007 Wed, 16 May 2012 11:46:21 +0000 boerenooi 27007@http://forums.themeshaper.com/ <p>Hi helgatheviking</p> <p>I'm having hard time getting this right. I need to put my menu into the start of my main container where the content is. How would I achieve this?</p> <p>Regards<br /> B<br /> xxx </p> helgatheviking on "Thematic Menus Demystified" http://forums.themeshaper.com/topic/thematic-menus-demystified-1/page/5#post-26482 Fri, 20 Apr 2012 03:02:35 +0000 helgatheviking 26482@http://forums.themeshaper.com/ <p>@mark, please create a new topic for your question. in said topic, please explain what you are trying to achieve, what you are trying, and what results you are seeing versus what you are expecting. </p> <p>just from #header {clear:both;} i can't really figure out what you want to do. </p> markbuskbjerg on "Thematic Menus Demystified" http://forums.themeshaper.com/topic/thematic-menus-demystified-1/page/5#post-26458 Thu, 19 Apr 2012 14:10:26 +0000 markbuskbjerg 26458@http://forums.themeshaper.com/ <p>Hi ... I guess your super help wasn't enough for a thematic noob as me..<br /> I'm trying to style menu in a child theme of Thematic.. I have made no alterations yet, so i knocked out the header with<br /> <pre><code>#header { clear: both; }</code></pre> <p>and pasted in your CSS...<br /> has something changed in the menu structure since you posted the code a year ago? I see no changes to my menu at all...</p> <p>i've also tried altering it in other ways, but nothing happens...<br /> I imported the style.css from the parent theme with </p> <p><code>@import url (&#39;../whiteboardframework/style.css&#39;);</code></p> <p>could that be a problem?<br /> It is my first time with child themes so i'm quite puzzled! (more used to just tweak a theme straight ahead) </p> helgatheviking on "Thematic Menus Demystified" http://forums.themeshaper.com/topic/thematic-menus-demystified-1/page/5#post-26056 Fri, 23 Mar 2012 02:05:05 +0000 helgatheviking 26056@http://forums.themeshaper.com/ <p>nimmolo, there is a tequila fund. it lives at my email address. ;) i'm partial to Herradura. but you should ask new questions in new threads so i'll have a better chance of actually seeing them. what are you trying to do here? </p> nimmolo on "Thematic Menus Demystified" http://forums.themeshaper.com/topic/thematic-menus-demystified-1/page/5#post-26055 Thu, 22 Mar 2012 22:23:16 +0000 nimmolo 26055@http://forums.themeshaper.com/ <p>Update:<br /> I've got the script loading after everyting using childtheme-override-head-scripts.<br /> Still, the script just doesn't modify the class properly. </p> nimmolo on "Thematic Menus Demystified" http://forums.themeshaper.com/topic/thematic-menus-demystified-1/page/5#post-26054 Thu, 22 Mar 2012 21:19:38 +0000 nimmolo 26054@http://forums.themeshaper.com/ <p>New question: </p> <p>How do I make a script load AFTER hoverintent, superfish, subfish, and thematic-dropdowns? </p> <p>I've found a script to center the Supersub dropdowns below their parent element.<br /> But it doesn't have any target class to modify currently because it's loading before superfish.</p> <p>incidentally I got it from <a href="http://www.fldtrace.com/css/center-a-dropdown-menu-using-css-and-jquery" rel="nofollow">http://www.fldtrace.com/css/center-a-dropdown-menu-using-css-and-jquery</a></p> <pre><code>&lt;script type=&quot;text/javascript&quot;&gt; $(document).ready(function() { $(&quot;ul.sf-menu li&quot;).mouseover(function() { var the_width = $(this).find(&quot;a&quot;).width(); var child_width = $(this).find(&quot;ul&quot;).width(); var width = parseInt((child_width - the_width)/2); $(this).find(&quot;ul&quot;).css(&#39;left&#39;, -width); }); }); &lt;/script&gt;</code></pre> <p>I'm thinking of saving it in its own .js file and calling it through a modification of the header extensions....? does that sound right? </p> nimmolo on "Thematic Menus Demystified" http://forums.themeshaper.com/topic/thematic-menus-demystified-1/page/5#post-25863 Mon, 12 Mar 2012 21:02:38 +0000 nimmolo 25863@http://forums.themeshaper.com/ <p>Thanks btw. </p> nimmolo on "Thematic Menus Demystified" http://forums.themeshaper.com/topic/thematic-menus-demystified-1/page/5#post-25818 Sun, 11 Mar 2012 02:45:38 +0000 nimmolo 25818@http://forums.themeshaper.com/ <p>Update 2: it works fine, Helga's code from page 1 of this thread.</p> <p>I had not updated all the function and action names to the childtheme variants.</p> <p>If only there were a delete button for your own posts (unreplied at least)! </p> nimmolo on "Thematic Menus Demystified" http://forums.themeshaper.com/topic/thematic-menus-demystified-1/page/5#post-25817 Sun, 11 Mar 2012 00:56:01 +0000 nimmolo 25817@http://forums.themeshaper.com/ <p>Sorry for being so verbose. If I could edit it down I would.</p> <p>Update.</p> <p>Actually, that worked for getting the designated "Primary navigation menu" in the Childtheme. I just had to go back to the appearance/menus page and re-save my menu choices.</p> <p>However, my function for adding the menu to the footer of the childtheme is not working yet. Here's the code.</p> <p>'<br /> // mobile Footer menu!</p> <p>function mobile_childtheme_footer_access() { ?&gt;</p> <p> &lt;div id="access"&gt;</p> <p> &lt;!-- no.skip-link, we're at the bottom of the page --&gt;</p> <p> &lt;?php </p> <p> if ((function_exists("has_nav_menu")) &#38;&#38; (has_nav_menu(apply_filters('thematic_mobile_menu_id', 'mobile-menu')))) {<br /> echo wp_nav_menu(thematic_nav_menu_args());<br /> } else {<br /> echo thematic_add_menuclass(wp_page_menu(thematic_page_menu_args()));<br /> }</p> <p> ?&gt;</p> <p> &lt;/div&gt;&lt;!-- #access --&gt;</p> <p> &lt;?php }</p> <p>add_action('thematic_footer','mobile_childtheme_footer_access',5);<br /> ' </p> nimmolo on "Thematic Menus Demystified" http://forums.themeshaper.com/topic/thematic-menus-demystified-1/page/5#post-25796 Fri, 09 Mar 2012 00:20:43 +0000 nimmolo 25796@http://forums.themeshaper.com/ <p>Helga you are absolute awesomeness, I don't know who compensates you for solving everyone's problems but if there's a tequila fund i'm happy to add to it.</p> <p>In this case however I'm a bit too thick for the solution so far...</p> <p>I'm using a theme switcher plugin for mobile clients, to steer them to a special-but-very similar child theme of Thematic, just for mobiles. To this end I'm wanting to register a second menu (shorter, no-dropdowns) and place the short menu in the footer for the mobile theme either via CSS or preferably functions.php, while removing the main top menu. </p> <p>My theme structure is something like<br /> Thematic<br /> Childtheme-thematic<br /> Mobile-childtheme-thematic</p> <p>and in Childtheme-thematic's functions.php i'm trying to register the new menu while playing nice with all the default args set up by header-extensions.php</p> <p>Certainly I'm doing something doofus-like because while the following code does give me two options in the Admin -&gt; Appearance -&gt; Menus panel - one for Masthead Navigation and one for Mobile Navigation - neither of those menus shows up in #access of the Childtheme site. Before moving on to getting the Mobile Childtheme working I'd first like to get that menu showing up in the non-mobile theme, of course.</p> <p>Here's my Childtheme functions.php header section (not Mobile-Childtheme functions.php)</p> <pre><code>function childtheme_override_init_navmenu() { if (function_exists( &#39;register_nav_menus&#39; )) { register_nav_menus( array( &#39;primary-menu&#39; =&gt; __( &#39;Masthead Navigation&#39;, &#39;thematic&#39; ), &#39;mobile-menu&#39; =&gt; __( &#39;Mobile Navigation&#39;, &#39;thematic&#39;)) ); } } add_action(&#39;init&#39;, &#39;childtheme_override_init_navmenu&#39;); // Create #access // In the header div function childtheme_override_access() { ?&gt; &lt;div id=&quot;access&quot;&gt; &lt;div class=&quot;skip-link&quot;&gt;&lt;a href=&quot;#content&quot; title=&quot;&lt;?php _e(&#39;Skip navigation to the content&#39;, &#39;thematic&#39;); ?&gt;&quot;&gt;&lt;?php _e(&#39;Skip to content&#39;, &#39;thematic&#39;); ?&gt;&lt;/a&gt;&lt;/div&gt;&lt;!-- .skip-link --&gt; &lt;?php if ((function_exists(&quot;has_nav_menu&quot;)) &#38;&#38; (has_nav_menu(apply_filters(&#39;thematic_primary_menu_id&#39;, &#39;primary-menu&#39;)))) { echo wp_nav_menu(thematic_nav_menu_args()); } else { echo thematic_add_menuclass(wp_page_menu(thematic_page_menu_args())); } ?&gt; &lt;/div&gt;&lt;!-- #access --&gt; &lt;?php } add_action(&#39;thematic_header&#39;,&#39;childtheme_override_access&#39;,1);</code></pre> <p>*edit- sorry, I don't know how to wrap code...</p> <p>I should also mention that as you see by the #1 placement in #access, I've previously moved access to the top of the header with the following Viking-code:</p> <pre><code>function remove_defaults() { remove_action(&#39;thematic_header&#39;,&#39;thematic_brandingopen&#39;,1); remove_action(&#39;thematic_header&#39;,&#39;thematic_access&#39;,9); } add_action(&#39;init&#39;,&#39;remove_defaults&#39;); add_action(&#39;thematic_header&#39;,&#39;thematic_brandingopen&#39;,2);</code></pre> <p>I took out<br /> <code>add_action(&#39;thematic_header&#39;,&#39;thematic_access&#39;,1);</code></p> <p>in the second to last line because it's being added by the custom menu code above.</p> <p>PS - Am I going to break anything by updating to Thematic 9.7.8? (or is it 9.8?) </p> andycheeseman on "Thematic Menus Demystified" http://forums.themeshaper.com/topic/thematic-menus-demystified-1/page/5#post-25771 Wed, 07 Mar 2012 22:50:30 +0000 andycheeseman 25771@http://forums.themeshaper.com/ <p>Great idea for styling the arrows through a background image.</p> <p>I'm having trouble with the native CSS arrows, specifically the one pointing down. It seemingly only displays 4 pixels of the top of the arrow.</p> <p>Visual Example ---&gt; <a href="http://i.imgur.com/vO27s.png" rel="nofollow">http://i.imgur.com/vO27s.png</a></p> <p>Any ideas on what could be causing this, or do you think a background image is the way forward?</p> <p>Thanks,<br /> Andy. </p> helgatheviking on "Thematic Menus Demystified" http://forums.themeshaper.com/topic/thematic-menus-demystified-1/page/5#post-25691 Wed, 29 Feb 2012 04:48:02 +0000 helgatheviking 25691@http://forums.themeshaper.com/ <p>i like the arrows. perso, i think they should be on by default. restyling the menu is something i'd love to see happen for a future thematic release: maybe thematic5?? </p> fwunder on "Thematic Menus Demystified" http://forums.themeshaper.com/topic/thematic-menus-demystified-1/page/5#post-25670 Mon, 27 Feb 2012 23:40:13 +0000 fwunder 25670@http://forums.themeshaper.com/ <p>Just to add to the mix, I "borrowed" some Drupal mods and used this thread to create a pretty easy skin, which seems to work fairly well. I call the skin "4x4" (just cuz). If it helps, great! You can see it working @ <a href="http://grafiks101.com/dev/?theme=Four-by-Four" rel="nofollow">http://grafiks101.com/dev/?theme=Four-by-Four</a></p> <p>I did turn set autoArrows : true and dropShadows : true in thematic-dropdowns.js which is explained somewhere around here...</p> <pre><code>/*** 4x4 SKIN ***/ .sf-menu { background-color: #BDD2FF; /* main bar color without image */ background-image: url(&#39;./images/root.jpg&#39;); background-position: bottom left; background-repeat: repeat-x; float: left; width: 100%; border-radius: 2px; -webkit-border-radius: 2px; margin-left: 1px; } .sf-menu a { border-right: 1px solid #FFFFFF; /* divider main bar */ padding: .75em 1em; text-decoration:none; border-left: 0px; border-top: 0px; border-bottom: 0px; } .sf-menu a, .sf-menu a:visited { /* visited pseudo selector so IE6 applies text colour*/ color: #1133AA; } .sf-menu li:hover, .sf-menu li.sfHover, .sf-menu a:focus, .sf-menu a:hover, .sf-menu a:active { /* all items when hovering */ background: #CFDEFF; outline: 0; } .sf-menu ul a:hover { /* link color when hovering */ background: #E4DFFF; color: #0B0FFF; border-bottom-color: #EEEEEE; } .sf-menu ul a { background: #BDD2FF; border-top: 1px solid #EEEEEE; border-bottom:none; border-right: none; } /*** arrows **/ .sf-menu a.sf-with-ul { padding-right: 2.25em; min-width: 1px; /* trigger IE7 hasLayout so spans position accurately */ } .sf-sub-indicator { position: absolute; display: block; right: .75em; top: 1.05em; /* IE6 only */ width: 10px; height: 10px; text-indent: -999em; overflow: hidden; background: url(&#39;./images/arrows-ffffff.png&#39;) no-repeat -10px -100px; /* 8-bit indexed alpha png. IE6 gets solid image only */ } a &gt; .sf-sub-indicator { /* give all except IE6 the correct values */ top: .8em; background-position: 0 -100px; /* use translucent arrow for modern browsers*/ } /* apply hovers to modern browsers */ a:focus &gt; .sf-sub-indicator, a:hover &gt; .sf-sub-indicator, a:active &gt; .sf-sub-indicator, li:hover &gt; a &gt; .sf-sub-indicator, li.sfHover &gt; a &gt; .sf-sub-indicator { background-position: -10px -100px; /* arrow hovers for modern browsers*/ } /* point right for anchors in subs */ .sf-menu ul .sf-sub-indicator { background-position: -10px 0; } .sf-menu ul a &gt; .sf-sub-indicator { background-position: 0 0; } /* apply hovers to modern browsers */ .sf-menu ul a:focus &gt; .sf-sub-indicator, .sf-menu ul a:hover &gt; .sf-sub-indicator, .sf-menu ul a:active &gt; .sf-sub-indicator, .sf-menu ul li:hover &gt; a &gt; .sf-sub-indicator, .sf-menu ul li.sfHover &gt; a &gt; .sf-sub-indicator { background-position: -10px 0; /* arrow hovers for modern browsers*/ } /*** shadows for all but IE6 ***/ .sf-shadow ul { background: url(&#39;./images/shadow.png&#39;) no-repeat bottom right; padding: 0 8px 9px 0; } .sf-shadow ul.sf-shadow-off { background: transparent; }</code></pre> <p>You can grab the (background and arrows) images from my site. I think I found this stuff @ <a href="http://users.tpg.com.au/j_birch/plugins/superfish/" rel="nofollow">http://users.tpg.com.au/j_birch/plugins/superfish/</a></p> <p>P.S. Hope the Drupal thing doesn't offend anyone. ;) </p> snw on "Thematic Menus Demystified" http://forums.themeshaper.com/topic/thematic-menus-demystified-1/page/4#post-25570 Wed, 22 Feb 2012 23:53:43 +0000 snw 25570@http://forums.themeshaper.com/ <p>@helga -- i figured it out! thanks so much for all the help. I needed to update to 9.8 so it would be easy. </p> helgatheviking on "Thematic Menus Demystified" http://forums.themeshaper.com/topic/thematic-menus-demystified-1/page/4#post-25550 Wed, 22 Feb 2012 17:00:20 +0000 helgatheviking 25550@http://forums.themeshaper.com/ <p>don't be put off if it takes a while to learn/understand hooks and filters. it is like learning a new language, it isn't going to happen overnight and you're going to go through a lot of trial and error. </p> <p>nice solve middlesister.... no jquery required! forgot about that argument </p> middlesister on "Thematic Menus Demystified" http://forums.themeshaper.com/topic/thematic-menus-demystified-1/page/4#post-25544 Wed, 22 Feb 2012 14:51:00 +0000 middlesister 25544@http://forums.themeshaper.com/ <p>Sure no problem. The code goes in your child theme's functions.php. You need to decide where you want your span tags, inside the a element or outside. Using 'before' and 'after' will result in<br /> <pre><code>&lt;a&gt;&lt;span&gt;link text&lt;/span&gt;&lt;/a&gt;</code></pre> <p>and using 'link_before' and 'link_after' will result in</p> <pre><code>&lt;span&gt;&lt;a&gt;link text&lt;/a&gt;&lt;/span&gt;</code></pre> <p>So, assuming you want the former your code will look like:</p> <pre><code>function my_sliding_door( $args ) { $args[&#39;before&#39;] = &#39;&lt;span&gt;&#39;; $args[&#39;after&#39;] = &#39;&lt;/span&gt;&#39;; return $args; } add_filter(&#39;thematic_nav_menu_args&#39;,&#39;my_sliding_door&#39;);</code></pre> <p>Then you can target those elements in your css file. Of course you can add classes to your spans as well if you like.</p> <p>And yes filters and hooks are a key concept. Once you can get your head around them, a lot of things will fall into place. </p> aengs115 on "Thematic Menus Demystified" http://forums.themeshaper.com/topic/thematic-menus-demystified-1/page/4#post-25542 Wed, 22 Feb 2012 11:38:37 +0000 aengs115 25542@http://forums.themeshaper.com/ <p>Middlesister, thanks for your reply. Could you bring it down more to a basic level for me? I pretty much know how to handle css and html but when I start messing with php I do it by the trial and error method without knowing much more than how an if statement works. ;-) </p> <p>So my first question is simply where is that code going to be placed? In my childthemes funtions? In the place where I want my menu to show up? </p> <p>I think I will need to do some reading up on thematic and how to use hooks. </p> trigga on "Thematic Menus Demystified" http://forums.themeshaper.com/topic/thematic-menus-demystified-1/page/4#post-25521 Tue, 21 Feb 2012 14:36:39 +0000 trigga 25521@http://forums.themeshaper.com/ <p>Sorry, I figured out how to implement it using "add_action" hook.</p> <p>And added the superfish classes like this:<br /> <code><br /> wp_nav_menu( array( 'walker' =&gt; new Custom_Walker, 'menu_class' =&gt; 'sf-menu' ) );<br /> </code> </p> trigga on "Thematic Menus Demystified" http://forums.themeshaper.com/topic/thematic-menus-demystified-1/page/4#post-25519 Tue, 21 Feb 2012 13:25:36 +0000 trigga 25519@http://forums.themeshaper.com/ <p>Hi Helga</p> <p>Would you mind explaining how you implement that walker code you gave us?<br /> How to use that to replace the normal menu and still retain the superfish classes?</p> <p>When I paste the code into my function file I result in the &lt;head&gt; content being moved in the &lt;body&gt; content. (so I think a closing tag is missing somewhere) And then I have two menus.</p> <p>Thank you for sharing all your knowledge. Sorry if the question is too basic.</p> <p>John. </p> middlesister on "Thematic Menus Demystified" http://forums.themeshaper.com/topic/thematic-menus-demystified-1/page/4#post-25516 Tue, 21 Feb 2012 12:08:01 +0000 middlesister 25516@http://forums.themeshaper.com/ <p>It's actually not so difficult as that. You can add your spans as arguments to the wp_nav_menu. And Thematic is nicely providing you with a filter for that:</p> <pre><code>function my_sliding_door( $args ) { $args[&#39;before&#39;] = &#39;Insert before the link text&#39;; $args[&#39;after&#39;] = &#39;Insert after the link text&#39;; $args[&#39;link_before&#39;] = &#39;Insert before the link&#39;; $args[&#39;link_after&#39;] = &#39;Insert after the link&#39;; return $args; } add_filter(&#39;thematic_nav_menu_args&#39;,&#39;my_sliding_door&#39;);</code></pre> <p>Put your spans where you want and remove the $args lines you don't need. Although you might get away with using CSS3 round corners and not using the sliding door technique at all. Depends on the look you are after. </p> aengs115 on "Thematic Menus Demystified" http://forums.themeshaper.com/topic/thematic-menus-demystified-1/page/4#post-25508 Tue, 21 Feb 2012 07:44:29 +0000 aengs115 25508@http://forums.themeshaper.com/ <p>Ok, thanks for the reply. At least it made it clear to me that "dont touch the menu". ;-) </p> <p>Knowing that I think the esiest way for me to fix what Im looking for is to register my own nav menus, hardcode them so that I can put my spans there. This would obviosly mean that I would disable the thematic menu. A shame really as I loved it ;-).</p> <p>Im not a great programmer so diving into jquery making the menu items contained in spans would be above my leauge. Again thanks for the reply. </p> helgatheviking on "Thematic Menus Demystified" http://forums.themeshaper.com/topic/thematic-menus-demystified-1/page/4#post-25500 Tue, 21 Feb 2012 00:37:44 +0000 helgatheviking 25500@http://forums.themeshaper.com/ <p>thematic does not have the markup to support 'sliding doors'. you could write a new menu walker (shoot me first)... or more likely you could wrap each menu item w/ the extra span using jquery. i'd go that route first. unfortunately both are sort of beyond the scope of this forum</p> <p>all the functions are in the thematic /library/extensions folder. everything in there is look but don't touch. </p> <p>but the menu is generated by the WP function wp_nav_menu()... hence my mention of the custom walker. </p> aengs115 on "Thematic Menus Demystified" http://forums.themeshaper.com/topic/thematic-menus-demystified-1/page/4#post-25498 Mon, 20 Feb 2012 23:27:33 +0000 aengs115 25498@http://forums.themeshaper.com/ <p>I will try to write something here instead of getting a new thread up and running.</p> <p>This thread has helped me big time getting my head around the thematic menu and I have essentially styled it with css as in the manner I like to have it. However there is still one thing I like to do.</p> <p>I want to do something like the menu on this homepage <a href="http://www.telia.se." rel="nofollow">http://www.telia.se.</a> You have likely seen such menus all over the Internet. It is a simple menu with plain links which when you hover them gets a rounded nice button behind them. While I don't have any problems to make a simple on hover background with a single background image I don't quite know how to make this work whit menu items of different size. I need the background image to be able to be scaled in width. </p> <p>I dove into google and found out that there is this commonly used "sliding doors" to use. But how do I implement that on the Thematic menu? As I am creating a child theme to thematic I don't even find the code for the menu, it simply loaded in from the parent via som hook or whatever you pro's call it ;-). I just tweak it with css but in order to get the sliding doors tecnuiqe to work it seems like I need to ad some code to the actual menu itself. Now to make things trickier I really like the wordpress 3.0 menu support and I am using that in my child theme so how do I get the "sliding door" working whit that?</p> <p>Any help? </p> <p>BTW, sry if there is a lot of bad spelling. English is not my first language. </p> snw on "Thematic Menus Demystified" http://forums.themeshaper.com/topic/thematic-menus-demystified-1/page/4#post-25469 Sun, 19 Feb 2012 03:39:48 +0000 snw 25469@http://forums.themeshaper.com/ <p>I'm sure it's something I'm doing wrong, but I haven't been able to get this to work.<br /> Here is all the functions in my child theme functions page:</p> <blockquote><p>// Remove the standard Thematic menu<br /> function remove_menu() {<br /> remove_action('thematic_header','thematic_access',9);<br /> }<br /> add_action('init', 'remove_menu');</p> <p>// Moving the thematic menu above the header<br /> add_action('thematic_header', 'thematic_access',6);</p> <p>//killing drop downs</p> <p>// Filter away the default scripts loaded with Thematic<br /> function childtheme_head_scripts() {<br /> // Abscence makes the heart grow fonder<br /> }<br /> add_filter('thematic_head_scripts','childtheme_head_scripts'); </p> <p>?&gt;</p></blockquote> <p>I created a custom menu called wp_nav_menu</p> <p>then I added it to an existing action hook:</p> <blockquote><p>// Remove the standard Thematic menu<br /> function remove_menu() {<br /> remove_action('thematic_header','thematic_access',9);<br /> }<br /> add_action('init', 'remove_menu');</p> <p>// Moving the thematic menu above the header<br /> add_action('wp_nav_menu','thematic_header', 'thematic_access',6);</p> <p>//killing drop downs</p> <p>// Filter away the default scripts loaded with Thematic<br /> function childtheme_head_scripts() {<br /> // Abscence makes the heart grow fonder<br /> }<br /> add_filter('thematic_head_scripts','childtheme_head_scripts'); </p> <p>?&gt;</p></blockquote> <p>...and the nav completely disappeared. I tried a couple other variations, which all caused errors or disappearance. Am I doing it totally wrong? Thanks! </p> helgatheviking on "Thematic Menus Demystified" http://forums.themeshaper.com/topic/thematic-menus-demystified-1/page/4#post-25381 Tue, 14 Feb 2012 14:45:55 +0000 helgatheviking 25381@http://forums.themeshaper.com/ <p>i wonder if that is b/c w/o superfish the menu doesn't get the ul class="sf-menu".... upon which all the styling is based. </p> <p>you don't need a widget for the menu, just use wp_nav_menu() and add it to an existing action hook. </p> snw on "Thematic Menus Demystified" http://forums.themeshaper.com/topic/thematic-menus-demystified-1/page/4#post-25375 Tue, 14 Feb 2012 04:24:34 +0000 snw 25375@http://forums.themeshaper.com/ <p>That seems like a good solution -- and then I assume I would drag the custom menu widget to the page top area. I'm not sure how that would affect my positioning, but it seems like I could change it with CSS.</p> <p>What I meant by "broke the menu" (sorry that was ambiguous) is that when I added this script:</p> <blockquote><p>function kia_kill_superfish(){<br /> return FALSE;<br /> }<br /> add_filter('thematic_use_superfish','kia_kill_superfish'); </p></blockquote> <p>...it broke the menu formatting. Adding this to the two functions I have above (which mysteriously don't kill the drop downs) made the menu completely unformatted, a vertical list using the browser default formatting.</p> <p>But it seems like your solution might work better anyhow, so I will try it! </p> helgatheviking on "Thematic Menus Demystified" http://forums.themeshaper.com/topic/thematic-menus-demystified-1/page/4#post-25354 Sun, 12 Feb 2012 20:08:27 +0000 helgatheviking 25354@http://forums.themeshaper.com/ <p>what does 'broke the menu' mean? unfortunately that doesn't help me diagnose the problem. </p> <p>the "killing dropdowns" bit just means it won't use the superfish script.. it doesn't actually prevent the dropdowns. why not just create a custom menu (appearance&gt;menus) that is only 1 level deep? you can filter in the requirement that it only be 1 menu, but most people don't change the menu that often... so you could just manually ensure the menu doesn't have any sub-items. </p> snw on "Thematic Menus Demystified" http://forums.themeshaper.com/topic/thematic-menus-demystified-1/page/4#post-25353 Sun, 12 Feb 2012 19:16:46 +0000 snw 25353@http://forums.themeshaper.com/ <p>@ Helga -- thanks so much for the quick reply! Adding the script kia_kill_superfish function above broke the menu -- was there something else to add with it? With the two functions I listed above, my site looks/works like this:<br /> <a href="http://www.nathankensinger.com" rel="nofollow">www.nathankensinger.com</a></p> <p>As you can see, it still has drop downs. The only page that currently has a child page is "Installations" -- it has a child page called "The Forgotten City", which you can see right now. Do I need to add something else -- to the CSS? -- to kill the drop downs? I am copying and pasting the functions I added to my function page, in case I've made some coding mistake:</p> <blockquote><p>// Remove the standard Thematic menu<br /> function remove_menu() {<br /> remove_action('thematic_header','thematic_access',9);<br /> }<br /> add_action('init', 'remove_menu');</p> <p>// Moving the thematic menu above the header<br /> add_action('thematic_header','thematic_access',6);</p> <p>//killing drop downs</p> <p>// Filter away the default scripts loaded with Thematic<br /> function childtheme_head_scripts() {<br /> // Abscence makes the heart grow fonder<br /> }<br /> add_filter('thematic_head_scripts','childtheme_head_scripts'); </p></blockquote> <p>Thanks all for your patience! I'm new to child themes and php </p> helgatheviking on "Thematic Menus Demystified" http://forums.themeshaper.com/topic/thematic-menus-demystified-1/page/4#post-25341 Sun, 12 Feb 2012 14:33:21 +0000 helgatheviking 25341@http://forums.themeshaper.com/ <p>does that not remove the drop down scripts?? i believe they will still drop down w/ CSS. to not allow any more than one level you need to filter the wp_nav_menu args. </p> <pre><code>function kia_kill_superfish(){ return FALSE; } add_filter(&#39;thematic_use_superfish&#39;,&#39;kia_kill_superfish&#39;);</code></pre>