• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Sidebar shows above content at smaller responsive sizes

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Sidebar shows above content at smaller responsive sizes

This topic is: not resolved
  • This topic has 2 replies, 2 voices, and was last updated 12 years, 4 months ago by mpet29.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • March 22, 2014 at 1:43 pm #96089
    mpet29
    Member

    I have a page set up on a custom template (using News Pro) to show a list of all authors, with most recent post, sorted by most recent activity. It works quite well. The problem I have is that while the right sidebar shows properly at large sizes, when this page breaks down responsively on mobile, the right sidebar shows first, above all content, which is not a great experience.

    I'm sure this is because of where I have <?php get_sidebar();?> below, but I've been unable to figure out where to place it so that it doesn't then mess up the placement of the sidebar on the regular desktop view.

    Can anyone help?

    <?php
    /**
     * Template Name: All Author Archives
     */
    
    get_header();?>
        <div id="all-authors-archive">
          <h1 style="font-family: 'Noto Sans', sans-serif;"><?php the_title(); ?></h1><?php get_sidebar();?>
          <p><em>This page displays a list of our current authors..</em></p>
    
    <?php
    // Arguments to pass to get_users
    $args = array( 'orderby' => 'post_count', 'order' => 'DESC', 'role' => 'author', 'exclude' => '1, 31052', 'post_type' => 'post', 'post_status' => 'publish' );
    // Query for the users
    $authors = get_users_ordered_by_post_date( $args ); ?>
    
    <?php
    // Loop through all the users, printing all of their posts as we go
    foreach ( $authors as $author ) { ?>
          <a name="<?php echo $author->user_nicename; ?>"></a>
          <div class="author-posts-wrapper" id="author-<?php echo $author->ID; ?>-posts-wrapper">
           <div class="author-posts" id="author-<?php echo $author->ID; ?>-posts">
              <div id="author-page-name"><a href="<?php echo get_author_posts_url( $author->ID ); ?>"><?php echo $author->display_name; ?></a><br>
              </div>
              <div id="author_bio"><?php echo $author->description; ?></div><br>
     <div id="authors_recently"><em>Recently: </em>&nbsp; <?php
      // Set up a Loop, querying for all of the current user's posts
      $args = array( 'author' => $author->ID, 'posts_per_page' => 1 );
      $posts = query_posts($args);
      // Now that we have the posts, simulate a Loop here or use get_template_part
      // if we already have the output in another template, like:
      // get_template_part( 'loop', 'all-authors' ); //
      if ( have_posts() ) : ?>
           <?php while ( have_posts() ) : the_post(); // Print whatever we want for each post - for now the title and date ?>
             <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a> &mdash; <?php echo get_the_date(); ?>
        <?php endwhile; ?>
            </div><!-- #author-post-list -->
      <?php else: ?>
              <p>This author has not yet published any posts</p>
      <?php endif; ?>
            </div><!-- #author-posts -->
          </div><!-- #author-posts-wrapper -->
    <hr><?php } // End looping over all users ?>
     
        </div><!-- #all-authors-archive -->
    <?php
    get_footer();
    ?>
    April 20, 2014 at 11:29 am #101476
    AnitaC
    Keymaster

    Hi did you resolve this issue yet?


    Need help with customization or troubleshooting? Reach out to me.

    April 20, 2014 at 6:25 pm #101555
    mpet29
    Member

    Hi -- I have not. Any ideas?

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble