List view for categories

Home Forums Calendar Products Events Calendar PRO List view for categories

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #950518
    Stacey
    Participant

    Hi! 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!

    #950560
    Brian
    Member

    Hi,

    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

    #950586
    Stacey
    Participant

    Thanks 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 functions

    Thoughts?

    #950587
    Stacey
    Participant

    Brian, as an experiment I added the snippet to the functions.php file in the PARENT theme and I got the exact same error.

    #950588
    Brian
    Member

    It 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)

    http://pastebin.com/

    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

    #950595
    Stacey
    Participant

    This reply is private.

    #950724
    Brian
    Member

    The 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

    #950749
    Stacey
    Participant

    Wonder of wonders that seemed to do the trick! Thanks Brian, I think I’m all set for now.

    #950849
    Brian
    Member

    Great, 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!

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘List view for categories’ is closed to new replies.