• Resolved rolandashley

    (@rolandashley)


    Hi,
    I have installed and customized the theme to fit customer requirements.
    I set this in the style sheet and it worked nicely.
    .mh-sidebar {None}
    .mh-home-sidebar {None}
    Then I considered adding a search bar and inserted a blank searchbar (ie – I did not add any content or save it).
    Now there is a deep empty space at the bottom of all pages that I cannot get rid of.
    https://www.velocitygroup.co.za

    On the widget dashboard I have removed the widget (and cleared inactive) but I cannot get rid of the space?
    Where can I delete the code in which stylesheet or what can I do please?

    Here is the inspect detail:
    <div class=”mh-widget mh-sidebar-empty”>
    <h4 class=”mh-widget-title”>
    <span class=”mh-widget-title-inner”>
    Sidebar </span>
    </h4>
    <div class=”textwidget”>
    Please navigate to Appearance → Widgets in your WordPress dashboard and add some widgets into the Sidebar widget area. </div>
    </div>

    0x2366

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi rolandashley,

    thanks for using MH TechMagazine.

    Your issue is related to your customizations. However, you could simply make use of the Full-Width page template for your pages because that template doesn’t have a sidebar out of the box.

    Please keep in mind that you’ve added your customizations to the core stylesheet of the theme. That means your changes will be lost in case your customer should update the theme in the future.

    To prevent this, you could either use the parent MH Magazine lite theme and then create a custom child theme for your customer or you could make use of plugins like Simple Custom CSS to add your custom CSS code. That will ensure that your customized code won’t get lost after theme updates.

    Thread Starter rolandashley

    (@rolandashley)

    Hi,
    I went into page.php and removed the code that looks for side bar.
    Your suggestions were nice (unfortunately they are good advice for before I invited the error -still not sure what caused it. Will use your advise to update the custom CSS so can do updates now).

    Hello. I’ve been trying to remove the sidebar ffrom my homepage using your code but it dosent seem to work for me.

    @billybatz09: Please don’t post new questions in old threads that are already resolved. You should always open your own threads, like you’ve done here.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Remove sidebar’ is closed to new replies.