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

Sidebar on the wrong side of the page

programmeradmin0浏览0评论

I'm building a website on WordPress through a child theme based on Dazzling. The website is /

The problem I'm having is that the sidebar of my website is being shown on the right side, even though on the theme's configuration on WordPress dashboard it is set to be on the left.

The problem seemed to arise when I uploaded the header.php file (I'm not sure if it was when I created header.php or when I created style.css). When I inspect the page, the tag that contains the sidebar (widget area) is div#secondary.widget-area.col-sm-12.col-md-4 . However, I can't find this tag neither on the header.php nor the style.css. Does anyone know how to fix the problem?

I'm building a website on WordPress through a child theme based on Dazzling. The website is http://theaerogeek/

The problem I'm having is that the sidebar of my website is being shown on the right side, even though on the theme's configuration on WordPress dashboard it is set to be on the left.

The problem seemed to arise when I uploaded the header.php file (I'm not sure if it was when I created header.php or when I created style.css). When I inspect the page, the tag that contains the sidebar (widget area) is div#secondary.widget-area.col-sm-12.col-md-4 . However, I can't find this tag neither on the header.php nor the style.css. Does anyone know how to fix the problem?

Share Improve this question asked Aug 28, 2018 at 0:08 Rodrigo de OliveiraRodrigo de Oliveira 152 bronze badges 5
  • Do you want to keep the option of moving sidebar to the right / left? Or you do not care about that and you just need the sidebar to be on the left. I looked at your website, the problem occurred when you changed the header.php file. – nmr Commented Aug 28, 2018 at 11:13
  • If I could keep the option to move, it would be good, but I don't mind have it fixed on the left. Do you know what the problem is specifically? – Rodrigo de Oliveira Commented Aug 28, 2018 at 15:10
  • You deleted the code in header.php that read the option and set the appropriate CSS class. Can you paste header.php code? – nmr Commented Aug 28, 2018 at 15:14
  • it is too long to paste it here. Is there anyway I can send it to you? – Rodrigo de Oliveira Commented Aug 29, 2018 at 17:34
  • use for example Pastebin, account is not needed – nmr Commented Aug 29, 2018 at 18:00
Add a comment  | 

1 Answer 1

Reset to default 0

I just checked your site, if you want to move the sidebar to the left, add this to your CSS.

@media (min-width:992px) {
 .col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9 {
  float:right;
 }
}

In case you don't know how to add CSS, check this out.

发布评论

评论列表(0)

  1. 暂无评论