Notifications
Clear all

Hide WP admin bar on iframe embedded page

2 Posts
2 Users
0 Reactions
478 Views
Posts: 1
Topic starter
(@andrewmrichards)
New Member
Joined: 1 year ago

Hi

I am trying to build a site using Thrive Themes and The Events Calendar. Unfortunately, they won't play nicely together. As soon as I add the calendar to a page, it removes all the elements from my theme, including menu bars etc. So, it seemed that one solution might be to create the parent page, then embed the calendar page within an iframe. All appears to work, except that for any logged in user (and as a membership site, many of our users will be logged in)  the admin bar shows twice - once at the top of the parent page, and once at the top of the iframe page.

Is there any way of removing this? I'm struggling to find the ID of the div which contains the admin bar...

The page I'm looking at is here: https://andrewr142.sg-host.com/our-events/

1 Reply
TinyWebGallery
Posts: 924
Admin
(@admin)
Prominent Member
Joined: 16 years ago

you run both on the same domain? 

The admin bar has the id wpadminbar

hide_elements="#wpadminbar"

should remove it.

Best regards,

Michael

 

 

Reply