Enable Custom Widget after Main sidebar - by Tiit

This topic has 4 replies, 2 voices, and was last updated 6 years, 3 months ago ago by Olga Barlow

  • Avatar: Tiidush
    Tiit
    Participant
    January 17, 2018 at 17:44

    Hi!

    Somebody have idea, how to display XStore Custom Widget same time and right below Main Sidebar widgets inside Main Sidebar area by default? Some child theme customization would be ok.

    Thanks in advance,

    Tiit

    3 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    January 18, 2018 at 10:15

    Hello,

    You can use Custom widget area instead of the Main sidebar (Pages > edit page > 8theme Layout Options > Custom sidebar) and just add the same widgets as you have in the main sidebar to custom sidebar. So, why do you want to display both sidebars?

    Anyway, if you are sure that you need to edit this code you can find in xstore/sidebar.php. Copy this file into child theme and do the necessary changes.

    Regards

    Avatar: Tiidush
    Tiit
    Participant
    January 18, 2018 at 18:31

    Hi Olga,

    Site works as blog, so we have a lot of posts. To set sidebar option one by one per post is not so good idea. I have Child theme and have sidebar.php for customization. Can you provide me the piece of code to add? The wish is to “display Main Sidebar and Custom Sidebar both by deafult in main sidebar area”.

    I hope you can help,

    Thanks!

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    January 19, 2018 at 11:56

    Hello,

    Unfortunately, we are unable to provide support for customizations under our Support Policy. If you need help with PHP customization contact WPKraken team.

    As I understand you want to show some content from the custom sidebar for the posts only and don’t show it for the all the other pages that also displays the main sidebar, right? You may use CSS workaround to hide some widgets for all the pages and show them for the single post only.
    For example, add all the necessary widgets into the Main sidebar. Then use custom code to hide widgets by IDs for all the pages (display: none;) and then show them for the posts only (.single-post class + id and display: block;).

    Regards

  • Viewing 4 results - 1 through 4 (of 4 total)

The issue related to '‘Enable Custom Widget after Main sidebar’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.