• annewp

    (@annewp)


    Hello,

    I would like to remove the sidebar from the lp-profile page, but keep it on the other pages. For this I installed content-aware-sidebars and created a sidebar without anything. However, the sidebar still occupies space on the page rather than that the lp-profile can use the full screen. I use twenty seventeen as theme. Which should work as I read here:?https://dev.institute/blog/remove-hide-sidebar-wordpress-page/

    What do I need to do to make it work like explained there?

    Can I add something to the php? I copied the file sidebar.php as child theme to /domains/website/private_html/wp-content/themes/twentyseventeen/content-aware-sidebars. What could I add here or to another php or somewhere a CSS code?

    Thanks for your help. 

    Best,

    Anne

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support brianvu-tp

    (@briantp)

    Hi Anne,

    Thank you for reaching out.

    To remove the sidebar from the lp-profile page while keeping it on other pages, you can add the following custom CSS code to your theme:

    .learnpress-profile #sidebar {
    display: none !important;
    }

    @media (min-width: 768px) {
    .learnpress-profile .col-sm-9 {
    width: 100%;
    }
    }

    This code will hide the sidebar on the LearnPress profile page and allow the profile content to occupy the full width of the page. The sidebar will remain visible on other pages.

    You can add this CSS code to the Additional CSS section in your WordPress customizer (Appearance > Customize > Additional CSS) or directly in your child theme’s stylesheet.

    If you have any further questions or need additional assistance, please let me know.

    Best regards,
    Brianvu-tp

    Thread Starter annewp

    (@annewp)

    Dear Brian,

    Thank you for the CSS code.

    Unfortunately, somehow it does not seem to work for me.

    In the figure https://prnt.sc/P1cJuYK7feWN I copied what I see when adding this CSS code under 1, and 2 shows when I disable all sidebars completely (but then I also lose the sidebar on the other pages). Is it possible to get the wide screen as shown under 2 but still have the sidebar plugin on for the other pages?

    Thank you.

    Best regards,

    Anne

    Plugin Support brianvu-tp

    (@briantp)

    Hi Anne,

    Thank you for your response and for sharing the screenshot.

    To better assist you, could you please provide the link to your LearnPress profile page? This will help us understand the issue more clearly and offer the most accurate solution.

    Looking forward to your reply.

    Best regards,
    Brianvu-tp

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.