WordPress.org

Ready to get started?Download WordPress

Forums

Addition in WP theme? (2 posts)

  1. grantatrade2011
    Member
    Posted 1 year ago #

    how can i add random images in my new site. I am using free wordpress theme for my new site. i just to add some pictures when site open all times randon images show in right side bar
    here is sidebar.php code below

    <?php
    /**
    * The Sidebar containing the main widget areas.
    */
    ?>
    <div id="sidebar" class="widget-area col300" role="complementary">
    <?php do_action( 'before_sidebar' ); ?>
    <?php if ( ! dynamic_sidebar( 'sidebar-1' ) ) : ?>

    <aside id="archives" class="widget">
    <h2 class="widget-title"><?php _e( 'Archives', 'living-journal' ); ?></h2>

      <?php wp_get_archives( array( 'type' => 'monthly' ) ); ?>

    </aside>

    <aside id="meta" class="widget">
    <h2 class="widget-title"><?php _e( 'Meta', 'living-journal' ); ?></h2>

      <?php wp_register(); ?>
      <aside><?php wp_loginout(); ?></aside>
      <?php wp_meta(); ?>

    </aside>

    <?php endif; // end sidebar widget area ?>
    </div><!-- #secondary .widget-area -->

  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Topic