ThemeShaper Forums » Thematic

[closed]

Manifesto clone with Custom Menu and centering

(3 posts)
  • Started 9 years ago by Robo
  • Latest reply from Robo
  • This topic is not resolved
  1. Robo
    Member

    Wow, I managed to do some coding for my website yesterday.

    First, the website is www.robward.co.nz. Currently it is running the beginning of my clone of Manifesto:

    http://jimbarraud.com/2009/03/19/manifest/

    which is quite a stunningly simple WP layout.

    Second, the "ABOUT ARCHIVES LINKS" menu is a custom menu, called as a function in functions.php and changeable in WP using the Menus menu.

    Third, the menu is centered. I had almost no end of problems getting this to work, and the forums seemed to suggest that it could not be done. It works fine on Safari on Mac, Chrome on Mac and Windoze, and IE8!

    If anyone wants to check my code, they are most welcome as I am no expert at this stuff.

    Some of my css is here:

    #menu-custom-menu { /* want to make custom menu centered, but not working so far */
    margin:0px auto;
    text-align:center;
    font-size:15px;
    background-color:#FBFBFB;
    border-top:1px solid #EAEAEA;
    border-bottom:1px solid #EAEAEA;
    padding:2px;
    }

    #menu-custom-menu li { /* Set the custom menu list to horizontal -- nice!!! */
    display:inline;
    padding:0 10px 0 9px;
    text-transform:uppercase;
    }

    #menu-custom-menu li a { /* remove underline */
    text-decoration:none;
    color:#999999;
    }

    #menu-custom-menu li a:hover { /* remove underline */
    text-decoration:none;
    }

    and the functions.php function:

    // Remove Thematic Access
    function remove_thematic_actions() {
    remove_action('thematic_header','thematic_access',9);
    }
    add_action('init','remove_thematic_actions');

    function my_menu() { /* display the custom menu -- struth, it works!!! */
    wp_nav_menu( array('menu' => 'Custom Menu' ));
    }
    add_action('thematic_header', 'my_menu', 9);

    Posted 9 years ago #
  2. I'm a big fan of simplicity, too bad I can't seem to do anything the doesn't end up being busy and over-complicated. Nice start!

    Posted 9 years ago #
  3. Robo
    Member

    Yeah, many sites are cluttered and messy. I actually think that thematic out-of-the-box is actually pretty nice and clean.

    As an aside, I just discovered CSSEdit for Mac and am wondering why I have spent so much time hand-coding CSS when it appears it can be done a lot easier.

    Posted 9 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.