Viewing 9 replies - 1 through 9 (of 9 total)
  • Do you have a link to your site? That will help quite a bit.

    Thread Starter grimlocked

    (@grimlocked)

    I’m sorry but the site runs on localhost. Maybe next week I can get it to run online.

    Okay, that’s fine.

    Hmm, can you paste the code of your single.php (or whatever its called) and also the CSS that is running on your content div and on the side bar div.

    Thread Starter grimlocked

    (@grimlocked)

    Ah the solution should be simple, just place the <?php get_sidebar(); ?>
    directly under the <?php get_header(); ?> so that it loads before the content, that should fix the issue.

    leave the ‘get_sidebar’ code where it is.

    my tutorial is tried-and-tested, and works if you follow it in all details.

    have you added the code for the adaptation into functions.php of your theme?

    for just to add a sidebar to single posts in a child theme of Twenty Eleven, you would need to add this code to functions.php in the child theme:

    https://pastebin.com/nGD1Lx6w

    if your functions.php is new and still empty, you need to add <?php at the start of the first line

    Hey Alchymyth, the reason I suggested for him to do that is because I had the exact same issue and that was the solution.

    Sometimes the fix is something easy, let him try it first and see if it works before he moves on to your ‘tried-and-tested’ tutorial.

    Thread Starter grimlocked

    (@grimlocked)

    OK I got it working now. Like my last post it was my own doing again ??
    I deleted functions.php from the child folder to tackle another issue I was having but forgot to put it back. Now with Alchymyth’s code I got it running the way I want it.

    thanks for the help, you guys ROCK !!

    https://pastebin.com/iij1shB4

    @luk Gaming

    Sometimes the fix is something easy, let him try it first and see if it works before he moves on to your ‘tried-and-tested’ tutorial.

    sure – why not.
    however, @grimlocked was already working with my tutorial, so it makes sense to continue with it.

    anyway, problem is solved ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Twenty eleven sidebar under single post’ is closed to new replies.