Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1144506
    Snehal
    Participant

    Hello there,
    I tried surfing through the forum for a similar problem but I couldn’t get a good answer. So here it is. When I search something in my website there’s this search results page showing up. It’s good already . I just want to remove those things in the sidebar.

    Recent Comments
    Archives
    Categories
    No categories
    Meta
    Log in
    Entries RSS
    Comments RSS
    WordPress.org

    I want to remove all these and just the results show up. I am a newbie to wordpress. So please guide me through the easiest way to do this.

    #1144768
    Rahul
    Moderator

    Hey There,

    Thanks for writing in!

    To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

    #1144915
    Snehal
    Participant

    goldenmarineharvest.com

    #1145204
    Nico
    Moderator

    Hi There,

    Thanks for the URL.

    Add this in your Customizer > Custom > CSS:

    .search-results .x-sidebar {
    display:none;
    }
    
    .search-results .x-main {
    width:100%;
    }
    
    @media (max-width: 979px){
    .search-results.x-sidebar.right {
        display: none;
    }
    }

    Hope it helps.

    Let us know how it goes.

    Thanks.

    #1146193
    Snehal
    Participant

    That works but doesn’t solve my problem completely. Try searching something that won’t exist.it says
    Nothing to Show Right Now and all the stuff i don’t won’t on the side show up. The css you gave me helped me remove the junk only when there are results. But, it fails to do so when there aren’t any results.
    link to my site: goldenmarineharvest.com

    #1146271
    Rad
    Moderator

    Hi there,

    Please update your CSS to this,

    .search-results .x-sidebar,
    .search-no-results .x-sidebar {
    display:none;
    }
    
    .search-results .x-main,
    .search-no-results .x-main {
    width:100%;
    }
    
    @media (max-width: 979px){
    .search-results .x-sidebar.right,
    .search-no-results .x-sidebar.right {
        display: none;
    }
    }

    Hope this helps.

    #1146555
    Snehal
    Participant

    Thank you SO much Rad

    #1146677
    Rahul
    Moderator

    Glad we could help.

    If you still have any issues regarding the theme, we’d be happy to assist you with that.

    Thanks.

    #1149249
    Snehal
    Participant

    I recentle changed to the agency demo . And the problem repeats . I cleared all the code. My needs are the same.

    #1149252
    Snehal
    Participant

    I inserted the code you had given me earlier. it seems weird in the desktop version

    #1149264
    Snehal
    Participant

    GOT IT THANKS

    #1149337
    Christopher
    Moderator

    Glad to hear that you were able to fix it.

    #1160271
    Snehal
    Participant
    This reply has been marked as private.
    #1160390
    Rue Nel
    Moderator

    Hello There,

    Thanks for updating in! To resolve this issue,

    @media (min-width: 1200px){
      body.x-content-sidebar-active.search, 
      body[class*="page-template-template-blank"].x-content-sidebar-active.x-blank-template-sidebar-active {
        padding-right: 0;
      }
    
      body.x-content-sidebar-active .x-navbar-fixed-top {
        right: 0;
      }
    }

    Hope this helps. Please let us know how it goes.

    #1168981
    Snehal
    Participant

    that works. But, there’s still some awkward space beneath the footer and i would love some padding in the right and left for the text it’s stuck to the sides. Please check it. Thanks in advance.

  • <script> jQuery(function($){ $("#no-reply-1144506 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>