CSS injected into HTML of page as plain text

Permalink
I've come across a problem where some custom CSS I applied somehow got injected into the HTML of the page. I was trying to apply a background color to a global footer, and now there appears uneditable text below my footer which shows the (incorrect) CSS code. I've attached a screenshot of the code, with the error highlighted in blue, as well as a screenshot of what it looks like on the page when rendered. I don't know of any way to get rid of this other than to directly edit the page in a text editor, but I don't know where to find the page (I'm still learning the ins and outs of C5). Can someone assist me in removing this unwanted text? Thanks!

2 Attachments

 
stereocenter replied on at Permalink Reply
I don't know if it's in poor taste to bump threads on this forum, but can anyone help me with this issue? My thread title may not be the perfect descriptor of my problem, but it boils down to that I have text on my page, outside of an editable zone, and I need to figure out how to get rid of it. I don't know where the actual copies of the page reside within the C5 framework.
hutman replied on at Permalink Reply
hutman
If you have access to your site files via FTP you should be able to find the website files in either /themes/theme_name/ or /packages/package_name/themes/theme_name once you find your themes directory look to see where your page_type.php file is and you should find what you are looking for. Otherwise it might be in a footer file if you have header and footer includes,
stereocenter replied on at Permalink Reply
Thanks for your reply. I've found the files you're talking about but I can't seem to find the offending code in any of them. The code actually appears after the footer close but before the body close.
hutman replied on at Permalink Reply
hutman
In the files that you found did you find this line?

<?php   Loader::element('footer_required'); ?>


From your inspector it appears that the offending code shows up just before that, if it is not just before that, it might be right at the top of that file. Which should be either in the /elements/footer_required.php or the /concrete/elements/footer_required.php
stereocenter replied on at Permalink Reply
I don't see it. I inspected every file with "footer" in the filename. I also downloaded the entire site directory and did a search for the code I'm trying to remove. It only came back in a CSS file. I've also cleared the site cache, unsure if it would help but regardless it didn't. I am so perplexed.
stereocenter replied on at Permalink Reply
OK, I found it, and it was definitely not where I thought it would be. In fact, I have no idea how it got there. I'm using Bootstrap, and when I went into the Bootstrap settings through the dashboard it was present in the "footer extra" section without a class declaration and brackets. At any rate, thanks for your help in diagnosing this problem. If nothing else, now I know where to find all of the files if I ever need to hard edit them in the future. Cheers!