• Resolved grapefruitgirl

    (@grapefruitgirl)


    this may seem a simple question, but i cant find the components i need in the code to switch things around as i’d like to.

    here is my blog:

    https://www.grapefruitgirl.com/edibles/

    on the right sidebar, i’d like to switch the order of the “community/links” component and the “grapefruit search” component. i am using the “chinared 1.0” theme and looked in the sidebar.php file. i can find the search code:

    • <?php include (TEMPLATEPATH . '/searchform.php'); ?>
    • <?php if (function_exists('wp_theme_switcher')) { wp_theme_switcher(); } ?>
      <?php } ?>

      but cant find the “community/links” code. here’s my sidebar.php code :


      <div id="sidebar">

    • <?php /* If this is a category archive */ if (is_category()) { ?>
      You are currently browsing the archives for the <?php single_cat_title(''); ?> category.

      <?php /* If this is a yearly archive */ } elseif (is_day()) { ?>
      You are currently browsing the "><?php echo bloginfo('name'); ?> weblog archives
      for the day <?php the_time('l, F jS, Y'); ?>.

      <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
      You are currently browsing the "><?php echo bloginfo('name'); ?> weblog archives
      for <?php the_time('F, Y'); ?>.

      <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
      You are currently browsing the "><?php echo bloginfo('name'); ?> weblog archives
      for the year <?php the_time('Y'); ?>.

      <?php /* If this is a monthly archive */ } elseif (is_search()) { ?>
      You have searched the "><?php echo bloginfo('name'); ?> weblog archives
      for '<?php echo wp_specialchars($s); ?>'. If you are unable to find anything in these search results, you can try one of these links.

      <?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
      You are currently browsing the "><?php echo bloginfo('name'); ?> weblog archives.

      <?php } ?>

    • <?php wp_list_pages('title_li=<h2>' . __('What dat is?') . '</h2>' ); ?>

    • <h2><?php _e('Old School'); ?></h2>
      <?php wp_get_archives('type=monthly'); ?>
    • <h2><?php _e('Ingredients'); ?></h2>
      <?php list_cats(0, '', 'name', 'asc', '', 1, 0, 1, 1, 1, 1, 0,'','','','','') ?>

    <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
    <?php get_links_list(); ?>

    • <?php include (TEMPLATEPATH . '/searchform.php'); ?>
    • <?php if (function_exists('wp_theme_switcher')) { wp_theme_switcher(); } ?>
      <?php } ?>

    </div>

    <div align="center">
    <!-- Search Google -->
    <center>
    <form method="get" action="https://www.google.com/custom" target="google_window">
    <table bgcolor="#ffffff">
    <tr><td nowrap="nowrap" valign="top" align="left" height="32">

    <input type="text" name="q" size="15" maxlength="255" value=""></input>
    </td></tr>
    <tr><td valign="top" align="left">
    <input type="submit" name="sa" value="Google Search"></input>
    <input type="hidden" name="client" value="pub-2138112181040608"></input>
    <input type="hidden" name="forid" value="1"></input>
    <input type="hidden" name="ie" value="ISO-8859-1"></input>
    <input type="hidden" name="oe" value="ISO-8859-1"></input>
    <input type="hidden" name="cof" value="GALT:#FF6FCF;GL:1;DIV:#000000;VLC:FF6FCF;AH:center;BGC:FFFFFF;LBGC:FFFFFF;ALC:000000;LC:000000;T:000000;GFNT:FF6FCF;GIMP:FF6FCF;FORID:1"></input>
    <input type="hidden" name="hl" value="en"></input>
    </td></tr></table>
    </form>
    </center>
    <!-- Search Google -->
    </center>

    <script type="text/javascript"><!--
    google_ad_client = "pub-2138112181040608";
    google_ad_width = 120;
    google_ad_height = 240;
    google_ad_format = "120x240_as";
    google_ad_type = "text";
    google_ad_channel ="";
    google_color_border = "FFFFFF";
    google_color_bg = "FFFFFF";
    google_color_link = "000000";
    google_color_text = "000000";
    google_color_url = "E895CC";
    //--></script>
    <script type="text/javascript"
    src="https://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>

    is it there and i am just not seeing it?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘sidebar query> how to resort items’ is closed to new replies.