Support » Fixing WordPress » How do I convert existing HTML navigation to the sidebar?

  • 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?


Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How do I convert existing HTML navigation to the sidebar?’ is closed to new replies.