Move Mobile sidebar to the top of the page

resolved (10 posts) (3 voices)

  1. omg

    I am using a plugin WP Simple Paypal Shopping cart and using the sidebar on your theme to display the shopping cart when people add stuff to the shopping cart, how do I move the mobile sidebar to the top of the page, right now it is at the bottom and no one will see it when they add items to cart.

    The other option is to add the short code [show_wp_shopping_cart] inside the actual page, not on the sidebar but that short code wording is showing on my mobile site but not doing anything.

    If you could help with both of these it would be appreciated

    Posted 4 years ago #
  2. Elliott

    Hello omg,

    Go ahead and add the shortcode inside the page content so we can see what it's doing. Make sure to surround it with [raw] [/raw] tags.

    Posted 4 years ago #
  3. omg

    Ok thanks I did add that, no change.

    Posted 4 years ago #
  4. Elliott

    I don't see it inside the page content as a shortcode. Go ahead and take a screenshot of what your referring to.

    Posted 4 years ago #
  5. omg

    Ok, thanks, Attached are three screenshots showing the code:

    Posted 4 years ago #
  6. omg



    1. Array_Mobile.jpg (87.4 KB, 3 downloads) 4 years old
    Posted 4 years ago #
  7. Elliott

    Open up /wp-content/themes/[your_theme]/lib/shortcodes/24-miscellaneous.php and change line 357 from this,

    return $content;

    To this,

    return do_shortcode($content);

    Posted 4 years ago #
  8. omg

    Yep thanks!!!

    Posted 4 years ago #
  9. aamatson

    I tried the above instructions but it doesn't seem to force the sidebar to the top of the page on mobile.

    Posted 2 years ago #
  10. Elliott

    We worked through an alternative for omg instead. Getting the sidebar to change position just on mobiles seems like it would be easy but it's actually a lot of PHP and CSS work.

    Posted 2 years ago #


You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme