• Hi Guys,

    I am basically designing and developing a html + css website. Now this needs to be made editable through wordpress. So far I know how to make the content editable (by making use of the code in page.php), but I’ve never managed to make the navigation menu editable through the CMS too.

    What I basically need is that, the user can create sub-menu’s for the menu, for example he can insert a Plastering Page under the Services Menu Button. What is the best way to do this?

Viewing 10 replies - 1 through 10 (of 10 total)
  • You can create and edit menus in the Admin area, under Appearance/Menus.

    Thread Starter Rys

    (@ryn_90)

    Yes, but I have to make support for the menu, am I right? Then what would I need to support a menu, what would I need to include to my theme/template.

    Take a look at this codex page and the tutorial linked at the bottom.

    Thread Starter Rys

    (@ryn_90)

    That’s cool, will give it a look. Thanks Very much 🙂

    Thread Starter Rys

    (@ryn_90)

    What do you think is best, create my own theme from scratch, or for now just use the twenty ten as a sample? I have never created my own theme before to be honest, at the moment I am just using my pages as templates.

    Twenty Ten is a great theme to begin with because it supports a lot of features (custom menus & headers for example) and it’s highly customizable. You could try creating a child theme based on it: instead of starting from scratch, you can make changes gradually (and the possibility to make it a separate, new theme still remains).

    my question is the same with ryn.. Thanks for the tips guys.

    Thread Starter Rys

    (@ryn_90)

    So I can use a child theme even If I want to use my HTML + CSS design?

    Yes. WordPress will use the child theme’s templates if they’re present (if not, those of the parent theme); so to override HTML, just create a template file in your child theme’s directory with the same name.
    Regarding CSS: if you import the parent theme’s stylesheet, you can achieve the same functionality: your rules will override previous ones in the parent theme.
    The Codex page I linked in my previous post shows some basic examples and some tutorials too.

    So the main advantage is that you can use all the functions and templates defined in the parent theme, but you can override anything at the same time. For example, if you create a custom HTML template for every page, the Twenty Ten functions (creating paging links etc) are still available.

    Thread Starter Rys

    (@ryn_90)

    What I am currently doing is I have a Template PHP will in the Twenty Ten directory, is this considered a child? I am still using the same functions.php files etc. However, I changed the CSS file.

    At the moment I was looking through the link you gave me and managed to create a navigation menu, all I need to do now is style it. Having some trouble with it to be honest, even tried to copy and paste twenty ten’s navigation css, but it’s not working 100% as it should.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘How to create a Navigation Menu’ is closed to new replies.