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.
Thanks a lot ! I already use a child theme. And thanks for your reactivity.