Child Theme Broken

Hello Themeco!

I’m doing some pretty heavy woocommerce modifications, and came across an odd issue.

The Problem

A few days ago the character “s” started showing up at the top of all front end pages. Additionally, many plugins were inoperable along with other errors (such as being unable to update or delete plugins, WordPress confirmation reloads instead redirect to a blank page showing only our friend the “s” again, and similar).

Steps Taken

I’ve deactivated all plugins, deleted and reinstalled a fresh x and child download, updated Cornerstone, cleared my custom functions.php, to no avail. BUT when I activate the parent X Theme, everything works as it should–it’s only when the child is active (even with no plugins or modifications except cornerstone active) that I have this issue.

Thoughts? Thank you in advance!

P.S. Visit www.chinaleedtc.com to witness.

Hi @medinacom,

Thanks for reaching out.

I couldn’t find anything from the front, but maybe it’s coming from your custom code instead of plugin. It’s above all the codes,


s


<!DOCTYPE html>

<html class="no-js" lang="en-US">

<head>
  
<meta charset="UTF-8">
<meta name="viewport" c

Please review your custom codes and templates. It could added by custom shortcode, hooks, and templates.

Thanks!

Thanks for double checking through the frontend! My custom codes have been limited to the x-child theme, and primarily in functions.php

To test for my own hooks and edits causing this issue, I wiped out everything with a fresh child theme install, deleting the old directory through ftp. Silly “S” remains, BUT not when the parent theme is activated instead.

…so. :blush:

It turns out that there were two things happening here! The first was I was using Cloudflare’s caching features. They’re great, but it takes a bit for changes to roll out and I had forgot about it… so it made troubleshooting unreliable.

I just realized that today, deactivated, went through the checklist again and I found the stupid “s” nestled right before the <?php declaration in functions.php

Deleting it fixed everything. I’m actually sure it’s there because I tried to push CTRL+S on a ftp downloaded version.

Glad you figured things out :blush:

Cheers!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.