Home › Forums › Calendar Products › Events Calendar PRO › List view for categories
- This topic has 8 replies, 2 voices, and was last updated 11 years ago by
Brian.
-
AuthorPosts
-
March 24, 2015 at 9:50 am #950518
Stacey
ParticipantHi! I wanted to report an issue I came across while perusing the following knowledgebase post:
Change the default view for categories to List view
https://theeventscalendar.com/knowledgebase/change-default-categories-view/
I followed the instructions and it worked, my categories now displayed in a list instead of the calendar grid. BUT it screwed up something in the WP dashboard, I get the following error and I can’t do anything in the dashboard. The only way to get back on track is to delete my child’s function.php file. Is there a fix?
Warning: Cannot modify header information – headers already sent by (output started at /home2/heart/public_html/addison/wp-content/themes/addison-child/functions.php:17) in /home2/heart/public_html/addison/wp-includes/pluggable.php on line 1178
Has anyone else had this issue? Any help would be appreciated.
Thanks!March 24, 2015 at 12:21 pm #950560Brian
MemberHi,
The cause of the issue you are having is content is being displayed before it is suppose to.
I was able to add the snippet to my site and it worked without error.
So in your theme’s functions.php what is on line 17?
If you want to dump the whole file into a pastebin and provide a link in a private reply I can take a look.
Let me know.
Thanks
March 24, 2015 at 1:31 pm #950586Stacey
ParticipantThanks for looking into this Brian. Could the problem be that I’m working off of a child theme? Currently my functions.php file in the child theme is just this, a bunch of comments:
<?php
/*————————————————————
Add your child theme custom functions below.
This file does not replace the parent theme’s function file.
It is loaded in addition to the parent theme’s functions file.
————————————————————*/
?>Will your snippet only work in the parent theme? I’d rather not do that because if the theme gets updated down the road I’ll lose the snippet.
On the parent theme, line 17 is:
require_once ($includes_path . ‘theme-functions.php’); // Custom theme functionsThoughts?
March 24, 2015 at 1:34 pm #950587Stacey
ParticipantBrian, as an experiment I added the snippet to the functions.php file in the PARENT theme and I got the exact same error.
March 24, 2015 at 1:36 pm #950588Brian
MemberIt should work in the Child Theme, that is where I just tested it on mine.
The error is coming from the child theme’s function.php file on line 17.
It could work on the Parent Theme’s function.php, but you are correct updating that would overwrite the changes.
If you can drop the entire child theme functions.php into a pastebin and share the link I can get a better idea. (you can do it without an account)
Please make sure to include the snippet in there so I can see how it was put in and why there is an error.
Thanks
March 24, 2015 at 1:47 pm #950595Stacey
ParticipantThis reply is private.
March 25, 2015 at 5:00 am #950724Brian
MemberThe parent theme is only opening a file so if there was an error it would be from the opened file at least that is what I would expect.
In the child function.php can you delete the ?> <?php On lines 15 and 17 and move the snippet up and see if that changes anything.
Let me know.
Thanks
March 25, 2015 at 6:40 am #950749Stacey
ParticipantWonder of wonders that seemed to do the trick! Thanks Brian, I think I’m all set for now.
March 25, 2015 at 11:22 am #950849Brian
MemberGreat, glad it helps, I am going to go ahead and close this ticket, but if you need help on this or something else please post a new ticket.
Thanks!
-
AuthorPosts
- The topic ‘List view for categories’ is closed to new replies.
