Support

Home Forums Event Espresso Premium I would like to remove the blog sidebar from the events and events/registration

I would like to remove the blog sidebar from the events and events/registration

Posted: February 2, 2022 at 8:24 pm

Viewing 3 reply threads


SeamusTRNR

February 2, 2022 at 8:24 pm

I did see that this question has been asked for different themes than mine (I have twentyseventeen) and these solutions did not work for me. Also, I don’t see events or the events/registration page appear in my Pages listing. Is there a way to remove the sidebar from all EE4 front-side pages? I would be willing to delete the sidebar if necessary. WordPress version 5.9
Current theme: Twenty Seventeen (version 2.9)
Current plugin: Event Espresso (version 4.10.26.p)
PHP 7.4


Tony

  • Support Staff

February 3, 2022 at 7:39 am

Hi there,

A lot of the output for the site is controlled by the theme. We (Event Espresso) basically just hooks in and injects the additional event details it needs to add in at certain points during the page load. Which, in short , meansthe sidebar is controlled by your theme.

With twentyseventeen you don’t get additional options to control where the sidebar should load so to do this ‘properly’ you would need custom templates specific for the EE event outputs which then does not output the sidebar.

Another option is CSS and I can give you some examples of using that.

This hides the sidebar on the event list:


.post-type-archive-espresso_events #secondary {
    display: none;
}

This sets the content to be 100% wide now that the sidebar is hidden:


.post-type-archive-espresso_events #primary {
    width: 100%!important;
}

Similar set up for the single events:


 {
    display: none;
}
.single-espresso_events #primary {
    width: 100%!important;
}

Those can be combined together into:


.single-espresso_events #secondary,
.post-type-archive-espresso_events #secondary {
    display:none;
}
.single-espresso_events #primary,
.post-type-archive-espresso_events #primary {
    width: 100%!important;
}

You add that to Appearance -> Customize -> Additional CSS.

That should remove the sidebars for you.


SeamusTRNR

February 3, 2022 at 3:55 pm

Everything is cleaned up. We will see how 100% affects appearance on different form-factor devices, but that’s a nitpick. Thank you!


Tony

  • Support Staff

February 4, 2022 at 6:32 am

It’s 100% of the current wrapper so should be fine.

Basically the same way it would be done if you have a full-width template to select within the theme 🙂

You’re most welcome.

Viewing 3 reply threads

The support post ‘I would like to remove the blog sidebar from the events and events/registration’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso