• Resolved Romaan

    (@romaan)


    Hi I’m using the plugin on my domain shishavibe.com

    On desktop versions, the sidebar on my page https://www.shishavibe.com/product-category/e-liquids/ works perfectly and is placaed on the left how I want it.

    However on a mobile version, the sidebar displays at the bottom of the page which is no good to me as on these category pages I have a filter widget on the sidebar to easily allow customers to find products. Is there a way to force the sidebar to appear at the top of the page on mobile versions rather than at the bottom?

    The current sidebar at the bottom of the page can be seen here in this screenshot: https://puu.sh/FEslV/889d05108a.png

    Thanks

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hello @romaan

    I hope you’re doing fine today and thank you for your question!

    The placement of this sidebar is determined solely by the theme. It’s not really related to Custom Sidebars plugin at all.

    The plugin replaces existing sidebars, as defined by the theme, and the way they are placed/styled on page also depends on the theme. If your theme places it at the bottom for mobile devices, then Custom Sidebars plugin can’t change it as it doesn’t “change theme code” and it doesn’t “inject” those sidebars in “any location”.

    However, there might be some way to do this, depending on your theme. Many themes provide more than one sidebar and some of them include sidebars “above the content” or even right in the “header” area.

    If your theme provides it then you could set your custom sidebar to be used in two locations – both in the sidebar where it is now and in that “top” sidebar. Then we could come up with and additional CSS that would hide one of them depending on the screen resolution.

    It would, however, require the theme to provide a sidebar at some “top”/”above the content” location. If the theme doesn’t do it, then it could still be possible you you’d first need to:

    1. create a child theme of your current heme (unless it’s already a child theme)
    https://developer.www.ads-software.com/themes/advanced-topics/child-themes/

    2. register an additional sidebar in your child theme
    https://developer.www.ads-software.com/themes/functionality/sidebars/

    3. and finally create a custom page template there that would output that sidebar in a designated location somewhere at the top (where you want it to be displayed)
    https://developer.www.ads-software.com/themes/template-files-section/page-template-files/

    Then the method I described earlier in this post could be applied.

    Best regards,
    Adam

Viewing 1 replies (of 1 total)
  • The topic ‘Sidebar Placement On Mobile’ is closed to new replies.