最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin0浏览0评论
Closed. This question is off-topic. It is not currently accepting answers.

Questions that are too localized (such as syntax errors, code with restricted access, hacked sites, hosting or support issues) are not in scope. See how do I ask a good question?

Closed 4 years ago.

Improve this question

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.

Closed. This question is off-topic. It is not currently accepting answers.

Questions that are too localized (such as syntax errors, code with restricted access, hacked sites, hosting or support issues) are not in scope. See how do I ask a good question?

Closed 4 years ago.

Improve this question

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.

Share Improve this question asked Dec 22, 2020 at 20:41 Rron KurtishiRron Kurtishi 12 bronze badges 2
  • 1 It's going to be hard to help you to find the code / markup issue without seeing it - any guesses will be just that. – Q Studio Commented Dec 22, 2020 at 20:49
  • Figured it out. It was a plugin to which I added some custom css that affected the navbar. Coming from Angular, I thought the plugin css would be contained to the plugin only haha. Silly me. – Rron Kurtishi Commented Jan 9, 2021 at 21:38
Add a comment  | 

1 Answer 1

Reset to default 0

I added custom css to a plugin that apparently affected the navbar too.

发布评论

评论列表(0)

  1. 暂无评论