WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] making a theme widget aware (12 posts)

  1. Mosaka
    Member
    Posted 6 years ago #

    Hi can someone help me edit this side bar html to make it widget aware? I am new to this whole CSS HTML thing. I'm lost!

    <!-- begin sidebar -->
    <div id='menu-right'>

    <h5 class='coltitle'><?php _e('Recent Posts'); ?></h5>

      <?php get_archives('postbypost', '10'); ?>
      <li id="search">
      <script type="text/javascript"><!--
      google_ad_client = "pub-";
      google_ad_width = 250;
      google_ad_height = 250;
      google_ad_format = "250x250_as";
      google_ad_type = "text_image";
      google_ad_channel = "";
      google_color_border = "1d0006";
      google_color_bg = "1d0006";
      google_color_link = "CC0000";
      google_color_text = "CC0000";
      google_color_url = "CC0000";
      //-->
      </script>
      <script type="text/javascript"
      src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
      </script>

    <h5><?php _e('Main Menu'); ?></h5>

      <li id="menu">
      <?php wp_list_pages('depth=1&title_li=' ); ?>

    <h5><?php _e('Main Categories'); ?></h5>

      <li id="categories">
      <?php wp_list_cats(); ?>

    <h5><?php _e('Archives'); ?></h5>

      <li id="archives">
      <?php wp_get_archives('type=monthly'); ?>
      <li id="link"><h5><?php _e('Blogroll'); ?></h5>

      <?php get_links('-1', '
    • ', '
    • ', '
      '); ?>
      <li id="meta"><h5><?php _e('Meta'); ?></h5>

    </div>

    <!-- end sidebar -->

  2. cheese apples
    Member
    Posted 6 years ago #

    Put this at the top of the file

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

  3. Mosaka
    Member
    Posted 6 years ago #

    Hmm..that didn't seem to work.

  4. Mosaka
    Member
    Posted 6 years ago #

    Can someone please help?

  5. SAFFLEUR
    Member
    Posted 6 years ago #

    Did you also make or have a functions.php file for you theme? It is necessary.

  6. Mosaka
    Member
    Posted 6 years ago #

    no. how do I do that?

  7. Mosaka
    Member
    Posted 6 years ago #

    ok problem fixed. i copied one from another file.

  8. Mosaka
    Member
    Posted 6 years ago #

    Hi for anyone who reads this I copied the functions.php folder from my wordpress classic theme and put it into the folder of my new theme, then I put this

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

    on top of the sidebar file.

  9. datzchabchai
    Member
    Posted 5 years ago #

    hello can anyone guide me on how to put a login and logout form for my agents username... please help.. thanks

  10. datzchabchai
    Member
    Posted 5 years ago #

    i want to put a login form located to my sidebar, but i dont know how i think im loss :(

  11. datzchabchai
    Member
    Posted 5 years ago #

    please check the site ive created i just want to put a login form in the sidebar area for my members area thanks... and more power!

  12. datzchabchai
    Member
    Posted 5 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic