• Resolved kittycom

    (@kittycom)


    This has been touched on in other topics, but I can’t work out which solutions are applicable to me, tried a few things with no luck. It’s worth pointing out that I’m very new to this (if that’s not obvious), so need very clear instructions!

    I’m using the Twenty Eleven theme and wanted to have the sidebar in the default template for pages and posts, but this wasn’t showing. So I followed these instructions to put in a ‘get sidebar’ command into the page.php and single.php files. Now the sidebar appears, but is stuck right down at the bottom of the page, rather than alongside the text. I also tried the Twenty Eleven Theme Extensions plug in to see if it did this differently, but it also came out with the sidebar underneath the page content. Any ideas what I’ve done wrong? The site is here: http://ecddcomoros.org.

    Thanks!

    Kitty

Viewing 5 replies - 1 through 5 (of 5 total)
  • So I followed these instructions to put in a ‘get sidebar’ command into the page.php and single.php files. Now the sidebar appears, but is stuck right down at the bottom of the page, rather than alongside the text.

    my instructions contain the full extent of the adaptation, including the ‘Third step’ – the changes to functions.php of the child theme; and also some adaptations to the styles;

    – please work fully through them.

    Thread Starter kittycom

    (@kittycom)

    Hi, thanks for getting back. I did follow the Third step, adding your code to the functions.php file. I’ve just pasted your css code from the Fourth step into my stylesheet too to see if that helps, but no change. What was under PS didn’t seem to apply so I haven’t followed that.

    Any ideas?

    this style in style.css of the child theme is breaking the layout:

    #primary {
    	float: left;
    	margin: 0 0 0 0;
    	width: 100%;
    }

    remove it.

    if this was there to stretch a page somewhere else in the site, post a link to that page, and reconsider the formatting.

    Do following changes in style.css file.

    #primary {
        float: left;
        margin: 0;
        width: 73%;
    }
    
    #content {
       margin: 0 4% 0 7.6%;
        width: 80%;
    }

    Let me know if it works for you. I hope you know some css to work on this.
    It worked for me.

    Thread Starter kittycom

    (@kittycom)

    Great! that worked, I can’t even remember why I’d put that into the css, but taking it out has sorted the issue.

    Thank you both very much for taking a look.

    Kitty

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Problem with Twenty Eleven sidebar’ is closed to new replies.