Closed MortenHofft closed 2 years ago
Thanks for noticing. I think this is the same issue I am working on with our Wordpress consultant. WP and its PHP template implementation appears to prevent standard CSS-includes that reference the local file system. WP suggests that, rather than including these directly within PHP templates, they are included in a general location.
They sent me this link to understand: https://developer.wordpress.org/themes/basics/including-css-javascript/
I will make changes to our WP templates according to these rules and review this.
@MortenHofft Friday I attempted to move these page-specific includes to the location recommended by Wordpress, and it did not work, so I restored our current configuration to keep the explorer functional. We have added a WP staging site, which I will use to test these changes this week.
So I understand, where do you see that this page is an illegal document? Thanks.
it is this page https://val.vtecostudies.org/gbif-explorer/
And I just look at the source code. right-click. choose View page source
A legal document should start with
<!DOCTYPE html>
<html ... and so on
Thanks. I assume the issue is the document tags outside the header and before the doctype declaration. My other options in WP are to (1) include those in the general site header or (2) move the includes below the php header. I tried #2 and it looks better.
@MortenHofft I think I've resolved this in two places - gbif-explorer and gbif-literature - with the above solution, so I'll close this. Let me know if I should reopen it. Thanks.
I just noticed that the document as a whole is illegal.