StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #13  
Old 08-28-2011, 05:51 AM
adew adew is offline
Community Moderator
 
Join Date: Oct 2008
Location: Genève, Suisse
Posts: 14,270
Default

Quote:
Originally Posted by Deeleea View Post
Hi

This is exactly what I'm trying to do and I understand it on principle, but not completely sure about the excecution, particularly about this part



What does that look like in my functions file? (at least, I presume that's where it goes)

Tx
Yes, in functions.php.

Here's a simple example:
PHP Code:
add_filter'wp_nav_menu_args''child_menu_args' );

function 
child_menu_args$args ) {

    if( 
$args['theme_location'] == 'primary' ) {
        
$args['menu_class'] = $args['menu_class'] . ' sf-vertical';
    }
    
    return 
$args;

__________________
Ade
Themessence - Studiograsshopper

WordPress plugins: Dynamic Content Gallery | Reveal Page Templates | Custom Taxonomies Menu Widget

Check out the Genesis and Child Theme tutorials before posting your question - and please provide YOUR URL!
Make Andrea happy - read her Firebug tutorial and save yourself loads of time and effort.
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mega Menus/Menus for people who have long/lots of categories jeaniulani General Discussion 5 04-19-2010 02:50 PM
Sub-navigation question re: flyout menus shetakaey General Discussion 4 07-25-2009 10:27 PM
Flyout menus and upgrading to rev two dotman General Discussion 2 02-05-2009 09:47 PM


All times are GMT -5. The time now is 05:36 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.