Unexplainable strange behavior

  • Unknown's avatar

    Was messing with the child file of my website, wanted to make posts from a specific category hidden from the main blog page…

    Added this code to the functions file of the child theme:
    <?php if(is_home()) {query_posts(‘cat=-11’) ;} ?>

    with a while and if has posts thing before and after. This didn’t work, instantly messed up my site, so I went into the Web FTP client and deleted the change.

    Website went back up, so did the dashboard and admin panel, but everything started behaving weirdly. Site header and footer colors were suddenly wrong, and clicking “update” on any editor led to a blank page.

    Upon reloading however the dashboard yet again appeared and I was able to navigate the options..

    I looked for anything that I may have changed by accident but couldn’t find anything..

    Anyway, then I added that line from before to line 416 of the index.php file of the root theme, and it hid the category like I wanted. But the site was still behaving strangely and the styling was still wrong.

    I don’t know what’s wrong or how to fix it. I can go into “customize” but in customize it says the colors are as they should be, i.e. set to the right colors, but the site doesn’t display them.

    I tried clearing the cache plugin, and my browser cache. I also tried opening the site in a different browser after clearing that cache. Nothing worked.

  • Unknown's avatar
  • The topic ‘Unexplainable strange behavior’ is closed to new replies.