• I am working on the twenty eleven theme and i have everypage using the sidebar template but for the blogs page i created a custom template that is a copy of the index.php but I just wanted the home page to show 1 category of blog and the blogs page to show all categories. I am able to do that just fine the problem is that when i use the custom template for the blogs page the layout of the page is not the same as the others. i want my content on the left and sidebar on the right but for some reason the content is being placed above the sidebar instead of to the left. The link to the page is https://www.thealiveacademy.com/?page_id=13

    I do not know what the problem is or how to fix it

Viewing 3 replies - 1 through 3 (of 3 total)
  • Looks like the CSS is not the same for the two pages — so that’s why the layouts are different. Try using Firebug (or Chrome Inspect Element) to compare the pages and see what CSS you need to change…

    You might also want to validate the pages to make sure it’s not mark-up errors causing problems.

    Thread Starter aliveacademy

    (@aliveacademy)

    the page is validated and I checked the page with Chrome Inspect Element it seems to be the same as the other pages but im also a little unsure as to what I would be looking for

    I just want the blogs page to display the same way as the other pages the template i used is a copy of index.php but with just the coding changed for the categories for the blogs, so I do not see why the css is different

    Thread Starter aliveacademy

    (@aliveacademy)

    I manged to fix the problem by removing the following line of code in the css file

    .singular #primary {
    margin: 0;
    }
    .singular #content,
    .left-sidebar.singular #content {
    margin: 0 7.6%;
    position: relative;
    width: auto;
    }
    .singular .entry-header,
    .singular .entry-content,
    .singular footer.entry-meta,
    .singular #comments-title {
    margin: 0 auto;
    width: 68.9%;
    }

    I believe that for some reason it was trying to use singular is there anyway i can solve this problem without removing that line of code?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Blogs Page not showing correct style’ is closed to new replies.