Skip Navigation

[Resolved] Conflict when using “Toolset should load Bootstrap 4” option

This thread is resolved. Here is a description of the problem and solution.

Problem: If I configure Toolset to load Bootstrap 4, my site's main navigation disappears, but when I disable Bootstrap 4, the contents of my View are not styled appropriately. How can I load Bootstrap 4 without losing my site navigation?

Solution: There seems to be a conflict between the Total theme and Bootstrap 4, specifically a CSS selector collision. The Total theme uses the CSS class "dropdown-menu" in the header, which is also used in Bootstrap's dropdown menu component. To fix the conflict, you can override the Bootstrap styles applied to the main menu with the following custom CSS:

ul#menu-main-menu {
    position: relative;
    display: block;
    border: none;
}

Relevant Documentation:
https://getbootstrap.com/docs/4.6/components/dropdowns/

This support ticket is created 3 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 2 replies, has 2 voices.

Last updated by mohamedM 3 years, 11 months ago.

Assisted by: Christian Cox.

Author
Posts
#2138019
hidden menu.jpg
corrupted design.jpg

Tell us what you are trying to do?
I'm trying to use content templates and views to create a product directory on my site, and I should use the option "Toolset should load Bootstrap 4" in order for my design to work properly, the issue is whenever i activate this option the menu of my site get disappeared (check the "hidden menu" screenshot), and when I deactivate it, the menu works normally but my design get corrupted (check the "corrupted design" screenshot), so there is a conflict, how to solve this issue?

Is there any documentation that you are following?

Is there a similar example that we can see?
Check the screenshots

What is the link to your site?
hidden link

#2138115

Hello, it seems that your site's theme is not completely compatible with Bootstrap. The main navigation menu uses a CSS class "dropdown-menu" that conflicts with the same classname used by Bootstrap for a specific component. To work around that conflict, you can try adding the following custom CSS in wp-admin > Appearance > Customize > Additional CSS:

ul#menu-main-menu {
    position: relative;
    display: block;
    border: none;
}

That code should allow you to load the Bootstrap library without breaking the main navigation elements.

#2138183

My issue is resolved now. Thank you!