• 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

How move primary sidebar before comments on mobile?

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 › How move primary sidebar before comments on mobile?

This topic is: not resolved

Tagged: mobile, responsive, Sidebar

  • This topic has 2 replies, 2 voices, and was last updated 3 years, 10 months ago by Masurian.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • May 16, 2019 at 8:55 am #491202
    Masurian
    Participant

    Hi,

    I was looking for help on many websites and forums but no luck so I decided ask You - Experts for help.

    My primary sidebar (Foodie Pro theme) display on mobile devices at the very bottom of the page/post. I have many comments on some posts and to see sidebar on mobile devices visitors have to scroll all comments down to see banner/top 5 posts widgets which is not user friendly.

    I would like to display my sidebar on mobile device just after category and tags entry meta and before comments.

    https://www.dropbox.com/s/hs2ycqg2n4k3yhy/IMG_EC7B9BC686CC-1.jpeg?dl=0

    Could you please let me know how can I do it (CSS, functions.php) ?

    Thanks,
    Tomasz

    https://surojadek.com/objawy-menopauzy/
    May 17, 2019 at 4:41 am #491213
    Victor Font
    Moderator

    Comments are generated in the content loop before the sidebar is rendered. In order to move the Try adding this to functions.php:

    remove_action( 'genesis_after_entry', 'genesis_get_comments_template' );
    add_action( 'genesis_after_content_sidebar_wrap', 'genesis_get_comments_template' );

    You may have to adjust the CSS.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    May 17, 2019 at 7:42 am #491216
    Masurian
    Participant

    Victor thank you so much! It works 🙂

  • 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

© 2023 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