sidebar in twenty eleven single.php
-
Hi – this plugin helped me create a page , with various sidebars and side menues very easily.
The only place I miss a sidebar is in the singel post view.
So in my childtheme I changed my single.php
added a functions.php and some css exactly as decribed here:https://www.transformationpowertools.com/wordpress/twenty-eleven-sidebar-on-single-posts-and-pages
in the single.php I call any sidebar like this:
<?php get_sidebar(my-sidebar); ?>Every thing worked fine. I could see the sidebar on all my single posts.
But when I created a new post and tried to safe it, I got a blank page with the following messages:
Warning: Cannot modify header information – headers already sent by (output started at /var/www/(my server)/wp-content/themes/(my childtheme)/functions.php:1) in /var/www/web583/html/Wordpress2/wp-admin/post.php on line 222
Warning: Cannot modify header information – headers already sent by (output started at /var/www/(my server)/wp-content/themes/(my childtheme)/functions.php:1) in /var/www/web583/html/Wordpress2/wp-includes/pluggable.php on line 875
When I deactivate my childtheme’s function.php it works fine, but then the sidebar is placed underneath the post.
What can I do to solve this problem?
- The topic ‘sidebar in twenty eleven single.php’ is closed to new replies.