Skip to content

Check if page has sidebar

To check if the current page has the sidebar enabled, use the md_has_sidebar() conditional tag.

Use this tag to check if the Main Sidebar (or custom sidebar) is enabled on the page. Detects settings from the MD Layout panel to make this function more precise based on the page’s settings.

Alex Mangini

Hi, I'm Alex! I started writing about web design and blogging at 13 years old, which turned into client work, which led to building my own software. 15 years later I'm still at it, and Marketers Delight is the epitome of my philosophy for building on the web.