Code Insert Manager (Q2W3 Inc Manager)
Twenty Eleven: Adding Sidebar possible? (4 posts)

  1. Eric Murphy
    Posted 4 years ago #

    As you may know the Twenty Eleven Theme shows the sidebar on the frontpage, but shows no sidebars on post pages.

    So far I opened


    and changed

    <?php get_footer(); ?>


    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    Is it possible to do this with Code Insert Manager?

    I tried "after post content" but post content also includes the footer.

    Could you add an "after post content before footer" option?


  2. esmi
    Forum Moderator
    Posted 4 years ago #

    Do not edit the Twenty Eleven theme. It is the default WordPress theme and having access to an unedited version of the theme is vital when dealing with a range of site issues. Create a child theme for your changes or install http://wordpress.org/extend/plugins/twenty-eleven-theme-extensions/

  3. Max Bond
    Plugin Author

    Posted 4 years ago #


    Try this method:
    Create new Insert with location - manual.
    Code to insert:
    <?php get_sidebar(); ?>
    In single.php add this line:
    <?php if ( method_exists('q2w3_inc_manager', 'manual_inc') ) q2w3_inc_manager::manual_inc(your_insert_id); ?>
    <?php get_footer(); ?>

    But, you'll also need to change styles of the theme.
    So, I agree with Esmi - it will be better to create child theme and make all changes there.

  4. Eric Murphy
    Posted 4 years ago #

    Thank you, Mr. Bond, a very nice solution, but that includes also editing of a .php file.

    I would prefer it if that plugin could solve it.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Code Insert Manager (Q2W3 Inc Manager)
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.