• I need help with how my widget area is shown and help with centering content/post in my twenty twelve theme. I hope someone can help me.
    My blog is https://cakeliving.com/

    I would like my widget to ONLY be shown on the front page and not on my posts. I have seen it done like this on another blog using the Twenty Eleven theme and it looks great. I am not sure if i need to create a certain front page to do this? If I move my widgets to another sidebar area, they just disappear completely. Currently, when i look in the backend/pages, i don’t have a page called ‘Frontpage’ or ‘Home’ – i only have pages shown in the menu bar. Please help.

    Secondly, if i succeed in only showing widgets on the frontpage, then i would like to center content, i.e. posts and their images and titles are to be centered on the page. Right now they are aligned to the left.

    Thanks in advance for your help.

    Br.
    Sena

Viewing 4 replies - 16 through 19 (of 19 total)
  • Thread Starter BakSen

    (@baksen)

    Hi again,

    Unfortunately, it does not work. I just tried it and did exactly as you write. As soon as i delete the below code and only keep your previously sent code, the narrowing of the content disappears. And nothing happens with the page width.

    }
    .single #content{
    width: 45em;
    margin: auto;
    }

    I re-inserted the above code and that one works. Just not on pages.

    Ok… do this:

    Your code is wrong. There are an extra “bracers” on top of the code. This is causing the error…

    Delete the custom code and paste this code below.

    @media (max-width:800px){
    	body.single #content {
            margin: 0 7.6%;
            width: auto;
        }
    }
    body.single #content,
    body.page #content{
    	width:53%;
    	margin:auto;
    }
    
    .main-navigation ul.nav-menu {
        text-align: center;
    }

    Let me know if it works ??

    Thread Starter BakSen

    (@baksen)

    IT WORKED! Thank you very much and thanks for your patience as well ??

    Nice!

    No problem ?? Good luck on your site ??

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘Widget area and centered content in Twenty Twelve’ is closed to new replies.