Header menu aligned right on all pages except for single-post page


I have a header with a logo, menu items and a search bar. I have aligned the menu on the right (close to the search bar), but in the ‘single-post’ page, the menu items appear on the left, starting right after the logo.

The header HTML is the same for each page (I’m getting it using the get_header() function) and the CSS is a single shared file between all components.

I am really dumbfounded here… I’ve developed the theme myself so maybe I did something to cause this, but I don’t really know how it’s possible for a completely identical component to appear differently on different pages.

EDIT: I am using the boostrap navbar with the ml-auto class for aligning on the right.

Rron Kurtishi 2 years 2020-12-22T15:10:41-05:00 0 Answers 6 views 0

Leave an answer