• mediavisio

    (@mediavisio)


    Hello, I would like the search results page is displayed on a full width page. I removed the side bar in the search.php file but I can not have a full-width page. How can I do ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Kathryn Presner

    (@zoonini)

    You can make these changes with CSS only – there’s no need to edit any files.

    In addition to hiding the sidebar, you’ll need to widen the width of the main column.

    Give this a try:

    .search-results .widget-area {
      display: none;
    }
    .search-results #primary {
      float: none;
      margin-right: 0px;
      width: 100%;
    }

    Don’t edit the theme files directly, otherwise your changes will be overwritten every time the theme is updated.

    An easy way to add custom CSS is to install the Jetpack plugin and activate the Custom CSS module. You’ll then add your custom CSS in the new stylesheet editor that’ll appear in your dashboard, under Appearance > Edit CSS. You could also install a standalone custom CSS plugin if you prefer.

    Let me know how it goes.

    Thread Starter mediavisio

    (@mediavisio)

    Thanks a lot ! I already use a child theme. And thanks for your reactivity.

    Moderator Kathryn Presner

    (@zoonini)

    My pleasure!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Full with search results’ is closed to new replies.