Forum Replies Created

Viewing 15 replies - 661 through 675 (of 3,660 total)
  • Chip Bennett

    (@chipbennett)

    First, change this:

    <div id="topnav">
    <?php wp_nav_menu( array( 'theme_location' => 'topnav', 'container_id' => 'topnav', depth => 1 )); ?>
    </div>
    
    <div id="secondnav">
    <?php wp_nav_menu( array( 'theme_location' => 'nav-jobs', 'container_id' => 'secondnav', 'depth' => 1 )); ?>
    </div>

    …to this:

    <?php wp_nav_menu( array( 'theme_location' => 'topnav', 'container_id' => 'topnav', depth => 1 )); ?>
    
    <?php wp_nav_menu( array( 'theme_location' => 'nav-jobs', 'container_id' => 'secondnav', 'depth' => 1 )); ?>

    The rest really is a CSS issue, that, without seeing actual, rendered code, we really can’t help with.

    Chip Bennett

    (@chipbennett)

    Only ever download WordPress Themes from known, trusted sources. Here’s why.

    Chip Bennett

    (@chipbennett)

    If you’re making a settings page for a publicly distributed Theme, you should be putting that settings page under Appearance. Why do you need three (?!?) separate sub-menu pages for Theme settings?

    Chip Bennett

    (@chipbennett)

    I wanted to have a static two row menu system, rather than a drop-down.

    Okay, so then you really do want two separate menus.

    That page seems to make sense but what about submenu styles?

    You can style each menu separately, based on the ID or class you pass to the UL or the containing DIV, via wp_nav_menu().

    Let’s try to step through it, completely, one more time:

    REGISTER NAV MENU LOCATIONS

    In functinos.php:

    register_nav_menus( array(
        'topnav' => 'Top Navigation Menu',
        'secondnav' => 'Second Navigation Menu'
    ) );

    OUPUT TOPNAV

    We’re going to get rid of all extraneous markup, and pass IDs and classes instead directly to wp_nav_menu() (please be sure to reference the wp_nav_menu() Codex reference to understand its parameters):

    wp_nav_menu( array(
        'theme_location' => 'topnav',
        'container_id' => 'topnav',
        'depth' => 1
    );

    OUTPUT SECONDNAV

    Same drill as above:

    wp_nav_menu( array(
        'theme_location' => 'secondnav',
        'container_id' => 'secondnav',
        'depth' => 1
    );

    CREATE/APPLY CUSTOM MENUS

    1. Go to Dashboard -> Appearance -> Menus
    2. If you’ve not done so already, create the custom navigation menus that you wish to apply to the two Theme locations.
    3. Apply each of those menus to the appropriate Theme location, via the “Theme Locations” meta box in the upper left-hand corner

    APPLY CSS STYLES

    This part is mostly up to you, because I don’t know the exact styling you’re looking for. You can target the topnav menu via #topnav .menu, and you can target the secondnav menu via #secondnav .menu.

    Chip Bennett

    (@chipbennett)

    For some reason all of the imposed classes are making my head hurt but am sure it is simple enough to do. Or at least I hope it is.

    If you’re just trying to develop a dropdown menu, I would encourage you to take a look at Twenty Eleven. It has solid CSS for controlling a three-level dropdown menu, as generated by wp_nav_menu().

    Also, I’d appreciate your feedback on the CSS classes section of the wp_nav_menu() Codex entry. I recently added it, and would love to know if it’s useful, or needs improvement.

    Chip Bennett

    (@chipbennett)

    Can we back up – a bunch – and ask a more fundamental question:

    Looking at your HTML markup, this actually looks like one, single menu. Is that correct? Or are these, in fact, two different menus?

    If a single menu: why not just nest your menu items, so that they display the way you want them to?

    Chip Bennett

    (@chipbennett)

    and changed the nav to <?php wp_nav_menu( array( 'menu' => 'primary' )); ?>

    'menu', or 'theme_location'?

    Also: have you defined separate custom menus, and applied those custom menus to the specified Theme locations?

    Chip Bennett

    (@chipbennett)

    <?php wp_nav_menu( array( 'menu' => 'primary' )); ?>

    You’re still using the wrong parameter. You need to use 'theme_location' rather than 'menu'.

    Chip Bennett

    (@chipbennett)

    Why then is the subtitle of this forum “– XHTML and CSS” ? I appreciate forums as a place to learn and ask questions. I didn’t know you needed to be of a certain skill level to participate.

    Apologies, but most of the volunteers here are generally geared toward answering WordPress-specific, Theme-related questions. There are simply better places available for CSS-specific help.

    As for your question: I’m using customizing Twenty Ten (child theme). That particular text is at the end of each post. It’s where the reader clicks to make a comment.

    I’m guessing I make this change in a PHP file, but which one?

    That text/link is being output by the comments_popup_link() template tag, found in the loop.php template-part file.

    Chip Bennett

    (@chipbennett)

    What is “the Exhibition Design”?

    Chip Bennett

    (@chipbennett)

    You have two separate Theme locations, but are referencing the same one in both calls to wp_nav_menu().

    First, be sure you’ve registered two separate menu locations, in functions.php:

    register_nav_menus( array(
        'primary' => 'Primary Menu',
        'secondary' => 'Secondary Menu'
    ) );

    Second, call the appropriate Theme location in each wp_nav_menu() call. Assuming you want to use primary in the first call:

    <div id="topnav">
    <ul>
    <li><?php wp_nav_menu( array( 'theme_location' => 'primary' )); ?></li>
    </ul>
    </div>

    …then you’ll need to reference secondary in the other call:

    <div id="secondnav">
    <li><?php wp_nav_menu( array( 'depth' => '2', 'theme_location' => 'secondary' )); ?></li>
    </div>
    Chip Bennett

    (@chipbennett)

    iTheme2 is a commercial Theme, for which the developer provides paid support. You should consult the support offerings of the developer.

    Chip Bennett

    (@chipbennett)

    Chip Bennett

    (@chipbennett)

    Change the folder name from demo, back to suffusion?

    p.s. changing this folder name affords you no additional security, but will incur unintended consequences, and headaches.

    Chip Bennett

    (@chipbennett)

    @adunate:

    That’s generally the response you’ll get, for questions involving making CSS changes.

    As to your second question:

    Also, I’d like to change the comment link from saying “No Comment” to “Add Comment”. Where do I do this?

    Where, exactly in your template file is that text being output?

Viewing 15 replies - 661 through 675 (of 3,660 total)