How can I prevent Concrete5 from injecting and tags in the HTML body instead of head?

Concrete5 doesn't generally do anything to your markup, instead it's most likely due to the markup from a block you've added to the page (of course some of the blocks could be the default ones that came pre-installed with the system, which is somewhat of an arbitrary distinction I suppose) As frz mentions, if you can say which block(s) the offending markup is coming from then specific advice can be given about how to address it (and you will definitely get more responses over at the concrete5 forums about this than here on SO) All that being said, one of the great features of Concrete5 is the ability to customize the templates of each individual block, so it's very likely these can be addressed without having to hack the core system or anything drastic like that. Also I know that they're working on cleaning up the markup for the pre-installed blocks for the next version to be released in a month or two EDIT: For future viewers of this question, the problem turned out to be that the line was placed AFTER the closing tag in the OP's theme template (that line of code is responsible for outputting all system css and js files, so it needs to be placed inside your theme's section).

Concrete5 doesn't generally do anything to your markup, instead it's most likely due to the markup from a block you've added to the page (of course some of the blocks could be the default ones that came pre-installed with the system, which is somewhat of an arbitrary distinction I suppose). As frz mentions, if you can say which block(s) the offending markup is coming from then specific advice can be given about how to address it (and you will definitely get more responses over at the concrete5 forums about this than here on SO). All that being said, one of the great features of Concrete5 is the ability to customize the templates of each individual block, so it's very likely these can be addressed without having to hack the core system or anything drastic like that.

Also I know that they're working on cleaning up the markup for the pre-installed blocks for the next version to be released in a month or two. EDIT: For future viewers of this question, the problem turned out to be that the line was placed AFTER the closing tag in the OP's theme template (that line of code is responsible for outputting all system css and js files, so it needs to be placed inside your theme's section).

Actually it does. I built the theme from scratch. Even pages without any blocks whatsoever have the same problem.

And it's because before when the page finally get's served there's and tags in the body, which are not in the original file. – Derrick Jul 22 at 15:38 Hmm... sounds strange -- there shouldn't be anything in the body except what you've specifically included in your theme templates. Do you have a link to this site I could look at by any chance?

Also, it might be putting things like that in while you're in "edit mode", like for the controls that let you add and edit blocks -- but if you're just viewing the site as normal I've never seen it inject any of its own markup -- only the markup from the theme templates and whatever blocks you've added to the page. – Jordan Lev Jul 22 at 21:42 Here ya go tacomamasla.nfshost. Com .

I'll probably post a link to a gist as well or something – Derrick Jul 23 at 8:09 I think your problem is that you've put the Loader::element('header_required') line outside of the section in your templates -- move that line of code up so it's inside the and all of the scripts and style references will be where they are supposed to be. – Jordan Lev Jul 23 at 8:36 Yep, you are 100% right. I completely forgot that I added that.

Thanks! – Derrick Jul 23 at 18:05.

Generally we don't. It's possible that an add-on might, but there's ways for the add-ons to get their style sheets in the header like they should. This is probably an issue with a specific add-on, not a general concrete5 issue.

You might have an easier time getting help on concrete5. Org either as a support request for the add-on involved, or in the general building with concrete5 forum if you have some specific examples.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions