How do I convert existing HTML navigation to the sidebar? (4 posts)

  1. charles_i
    Posted 7 years ago #

    I have a small website that I want to convert to WordPress. I have created a basic Theme which shows all the elements I need. At the moment the sidebar is empty, I just want to add my existing HTML/CSS sidebar to it. I did a search in Themes and found several that say "navigation" and "sidebar navigation" but the samples show the navigation is actually at the top - not on the sidebar. It seems that the only navigation is 'Categories' but that is not a graphic CSS rollover navigation.

    I tried looking for simple code to enter into sidebar.php and functions.php to create a navigation widget but I have only found posts about complex sidebars - like ones that appear on only one page or different sidebars for different pages. I presume that the minimum code for a sidebar is something like this:

    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('menu') ) : ?>

    and in functions something like:

    if ( function_exists('register_sidebars') );
    but how do I add my nav which is this:
    <div id="nav">
    </div><div id="main">`

    I presume if I create a simple generic sidebar nav widget that I can add each of the above in the Dashboard. Is that correct?


  2. Use a text widget?

  3. charles_i
    Posted 7 years ago #

    I was thinking that might be the easiest way. Unless there's another suggestion.

  4. Well the only other idea I have is to make them links in your blogroll .... or pages in your WP setup, and have that list pages.

Topic Closed

This topic has been closed to new replies.

About this Topic