Header Extra Content not working for me/

Permalink
I have a style sheet that we need to use on a site. Here is the URL that I placed in the Page Type Header Extra Content:
(A)
<link rel="stylesheet" type="text/css" href="/html/concrete/themes/elemental/css/ruddy_buttons.css" />

The CSS is there and the URL is correct. I compared it to this:
(B)
<link rel="stylesheet" type="text/css" href="/html/concrete/themes/elemental/css/bootstrap-modified.css">

Yet when I view Page source, I can see the link as in (B), but my css as in (A) is not loading.

Does anyone see what I'm doing wrong or offer a pointer?

Thanks.

 
barbedwire replied on at Permalink Reply
Nice to see someone else with this problem. We tried in vein for days trying to get this to work snd gave up. Even following 8 diifferent threads didn't help.

As a fortunate twist of fate, we went to 5.7 for a project we are working because we needed several addons that are not compatable with 5.8.

Interestingly enough, the extra content worked in that version - no problem at all.

Not a fix, just thot I'd drop my 2¢ worth. 😂
Nomadic replied on at Permalink Reply
Really, no one can weight in on this?
mesuva replied on at Permalink Reply
mesuva
A couple of notes:

- you appear to be referring to a css file within the core concrete folder. Perhaps you've done that to customise the theme, but it's strongly advised that you don't ever touch the core folder as it gets replaced (or then ignored) after concrete5 updates. Instead you'd want to create your own theme or use the Cloneamental theme from the marketplace as the base. (or put your custom css in a different location)

- The url appears a bit unusual, in that normally the 'root' of your site would be / and not /html. If your site is located at
http://domain.com/html/, then that makes sense, otherwise maybe you need to take the /html/ out of the url.

- Adding header extra content to a page type default is only going to add that to newly created pages. It's added as an attribute, and it isn't going to retrospectively add in that value to existing pages.

Instead, if this is just the only customisation you need, you might find it easier to just put the link into the tracking codes section of the dashboard and set that to output into the header.
Ultimately if you have customised your theme you'd want to include such a link in your theme's header file, not programatically through attributes .