Dynamic breakpoint oxygen builder menu elementOxygen builder navigation element

Add a dynamic break point to your horizontal navigation menu in Oxygen Builder to have a dynamic linebreak on mobile devices.

This article explains why the oxygen menu items does not wrap it's children into a new row when they are overflowing the screen. To understand this article you will require a basic understanding on flex-box. You can watch this video by Kevin Powell or read about flexbox on the MDN Docs.

The 'issue' with the native menu in oxygen

The Oxygen menu's ol element is set up as a flex-box, but does not contain a 'flex-wrap:wrap', which allows flex elements that would horizontally overflow

  1. Create a stylesheet in Oxygen Builder
  2. Add this code to your style sheet:

  3. /*Target ul selector of the relevant menu class swap .menu--footer for relevant menu class or #selector*/
    .menu--footer ul {
    flex-wrap:wrap;
    }

    /*Target li selector withing the list targeted above swap .menu--footer for relevant menu class or #selector*/
    .menu--footer ul li{
    width: fit-content !important;
    }
  4. Apply the class '.menu--footer' to your menu element in the Oxygen editor
responsive horizontal oxygen builder navigation menu
responsive horizontal oxygen builder navigation menu
/*Replace .menu with your menu class*/
.menu--footer ul {
flex-wrap:wrap;
}


.menu--footer ul li{
width: fit-content !important;
}

Recent posts:

web development & web design services moritz reitz

WordPress core concepts

This article is meant to give you a general overview on the most important WordPress concepts & a general overview of how the CMS works.
image

Fluent Forms geoplugin & ipinfo error

The Solution After notfying the Fluent Forms Team they realeased a hotfix withing 24hrs, which I greatly appreciate. Now the service is replaced with Google's API. You can obtain you API key at https://cloud.google.com/. The Issue If your form presents an error such as "Sorry! Please provide valid token for ipinfo.io in global settings" or […]

Postcode Distance Calculator FluentForm (Google Maps Distance Matrix API)

If you want your Fluent Forms WordPress form to automatically calculate travel distance based on a user’s postcode, and pass that distance to your emails or database, this step-by-step guide will help you set it up — using Google Maps Distance Matrix API for accurate distance calculation. Why Use Google Maps Distance Matrix API? Calculating […]

Start your project today

Get in touch
Contact Form
crosschevron-left