Problem with using a page as a menu

Posted in: Newspaper
Post count: 13

Hi,

I have a page that I use as a drop-down menu. It mostly works well. I have one problem though.

At the bottom of every post (not page) I auto-embed an email subscribe form. For some reason, when the reader is reading a post, the form is also embedded into the page used for the menu.

It will be easier to show you.

This is a page: https://dontdoanmba.com/essential-blogging-tools/
If you hover over the “blogging” menu, you will see the menu works correctly.

This is a post: https://dontdoanmba.com/best-wordpress-host-wpengine-siteground/
If you hover over the “blogging” menu now, you will see that the email subscribe form is embedded in the dropdown, making it huge and look silly.

How can I prevent this email collection form ever showing in the drop-down?

Thanks.

Post count: 20688

Hi,

I believe the plugin treats that page in the menu as a normal page, and inserts itself in it. Maybe the plugin has some exclusion settings to prevent it from displaying in certain pages.

I could give you a code to remove it from the menu, only in single post pages
https://www.screencast.com/t/wusDkKsB
You could use the code if no setting is found within the plugin

.single .td-header-main-menu .menu-item-1558 .mailmunch-embedded,
.single .td-header-main-menu .menu-item-1558 p,
.single .td-header-main-menu .menu-item-1558 .td-mega-grid hr {
display: none!important;
}

Enter it in Theme panel->Custom CSS section if you decide to give it a try.

Thanks

Post count: 13

Thank you, that seems to work!

I actually have the same problem with the “make money online” menu option as well. I tried adding the code twice, like this:

.single .td-header-main-menu .menu-item-1558 .mailmunch-embedded,
.single .td-header-main-menu .menu-item-1558 p,
.single .td-header-main-menu .menu-item-1558 .td-mega-grid hr {
display: none!important;
}
.single .td-header-main-menu .menu-item-1559 .mailmunch-embedded,
.single .td-header-main-menu .menu-item-1559 p,
.single .td-header-main-menu .menu-item-1559 .td-mega-grid hr {
display: none!important;
}

but that didn’t work. How can I combine them so it works for both?

Post count: 13

Also, it is possible to make it work from category pages? For example it doesn’t work at all on https://dontdoanmba.com/category/product-selling/

Post count: 13

I had the number wrong before, what an idiot. I have them both working now on all regular posts. If there is a way to get it working on category/search/tag pages as well (examples below) please let me know:

https://dontdoanmba.com/?s=kickstarter
https://dontdoanmba.com/category/product-selling/
https://dontdoanmba.com/tag/kickstarter/

Post count: 20688

From what I can see you removed it from all those pages, it is no longer displaying currently.

Post count: 13

Yeah I worked it out in the end, thanks 🙂

Viewing 7 posts - 1 through 7 (of 7 total)
The forum ‘Newspaper’ is closed to new topics and replies.