Hello.
Whenever I try to add anything before the </head> to my _header file, I get the following message atop each page:
On every page:
class="bx-def-font">
On forum page:
id="body" onload="if(!document.body) { document.body = document.getElementById('body'); }; h = new BxHistory(); document.h = h; return h.init('h'); " class="bx-def-font">
I don't mistakenly erase or change any other code in that file. I'm perplexed.
I tried to add:
<link rel="shortcut icon" href="http://www.mydomain.com/favicon.ico" /> and got the error.
I just purchased a MOD and changed:
<bx_include_css /> <link href="dt/mod_anytemplateresponsive/dtres.css" rel="stylesheet" type="text/css" /> <bx_include_js /> <script type="text/javascript" charset="utf-8" src="dt/mod_anytemplateresponsive/dtres.js"></script>
and got the error.
Does anyone else know what is causing this?
Dolphin _header works perfect otherwise. I'm using the ALT template.
Thanks.
Jeff
|
Which mod did you purchase? Geeks, making the world a better place |
I purchased the "Make Any Template Responsive" mod.
However, last week when I tried to simply insert the following code to add a favicon to my _header file, I received the same exact error.
<link rel="shortcut icon" href="http://www.mydomain.com/favicon.ico" />
I don't think it's the mod, since anything I try to add before the </head> (especially code which includes an href or src) produces that same error.
This is extremely frustrating. I have a demo website too with default settings (where I test stuff) and it gives the same error.
I've attached a sample screenshot.
PS: I've inserted the MOD .css file into /templates/base/common.css and that part works. Where can I insert the .js file into? Is there a .js file that loads for each page?
|
I inserted the mod .js file into /inc/js/functions.js and the mod works perfect.
I have no idea why I cannot insert anything (however simple) in the _header file before the </head>
|
If you like, attach your _header.html file and we will take a look and see if something is missing. Geeks, making the world a better place |
Here it is (_header.html attached).
Thanks!
|
Is this the header file that causes the problem by the way? Geeks, making the world a better place |
That's the one that is causing the problem, but without the favicon code or mod causing the problem.
I added in simple favicon html to this version (attached below), which gives me that error: class="bx-def-font"> appearing at the top of each page.
I just tested it again and it gave me the error.
|
That file is not correct.
The last line.
</body></html>
That is not suppose to be there. I am guessing what ever editor your using is automatically trying to correct the html. If that's the case then your editor is not suitable for dolphin template work. You can't have a editor that tries to auto correct things.
The body and html is closed in the footer. So remove that last line and see what happens.
https://www.deanbassett.com |
Wait, your header file is not matching what I see as the original.
Let me pull the original out of my local copy
Geeks, making the world a better place |
Never mind, Dean repeated what I was going to say. I am not seeing that in the original; did you add that? There are several pieces to the template, header, subheader, footer, etc. Geeks, making the world a better place |
Yea i updated my post.
I suspect he is using a editor that is trying to auto correct. Those editors are not safe to use with dolphin templates. https://www.deanbassett.com |
Dean has made a good point; you only want to edit with a good editor that will create proper files; Notepad++ is one. I use PsPad. They are both free products although PsPad is windows only. Geeks, making the world a better place |
Well, holy crap!
I've been using Dreamweaver for years.
Never would have figured that out. Dreamweaver was auto-correcting upon opening a file without me even being aware of it.
Yep, it worked with the original _header.html file.
Thank you so much!!
|
Well, holy crap!
I've been using Dreamweaver for years.
Never would have figured that out. Dreamweaver was auto-correcting upon opening a file without me even being aware of it.
Yep, it worked with the original _header.html file.
Thank you so much!!
Somehow I had a feeling you were using Dreamweaver. I ditched Dreamweaver years ago. Even one of the latest versions I looked at it was producing horrible html code with excessive markup.
I do all work with PsPad, html, php, javascript; etc. I find it just as quick and it is easy enough to do a quick view with the browser. If you want to work locally with html; php, javascript, you can set up a local developement of a LAMP stack; if you are using windows, search for WAMP to learn more. For myself, I just use the server for development.
Geeks, making the world a better place |