Can't do code injection into header, only footer

#1

I’m new to Ghost, but using it seems to be relatively easy. However, when I go to Settings -> Code Injection, the text box for the header injection seems to be disabled, although I can modify the footer just fine.

Any idea why this is the case? Is it because I’m on a trial?

0 Likes

#2

Apparently it’s just with Google Chrome. Was able to change it in Safari.

0 Likes

#3

It’s not just with Chrome. I have tried Chrome, Brave, Firefox, Opera, Microsoft Edge, and Internet Explorer. None of them work.

0 Likes

#4

There was an intermittent bug in with CodeMirror fields occasionally not showing up for a small number of users in the last week on certain network connections. A fix was released in 2.14.1:

You can run ghost update to get to the latest version

0 Likes

#5

I’m new to this, but I am not self-hosting, this is happening to me with ghost(pro), does your solution still apply? If so I’m not sure how to implement it.

I’m not using a Mac, there is probably an old version of Safari out there, but it seems to be an issue many folks would encounter.

0 Likes

#6

This worked in Safari when I recently tried it. Just not chrome. I’m assuming this is fixed now? I’m using the cloud hosted platform

0 Likes

#7

The GhostPro usually is on the latest version so it should be fixed.

0 Likes

#8

It would sure be nice if it was. Anyone out there that it’s working for? I tracked down Safari from 2012 with high hopes, but it doesn’t seem to even be able to render the admin login page.

0 Likes

#9

This definitely still doesn’t work on Ghost(Pro) - in the hosted cloud.

Cannot set up a new blog properly because of this. Seeing a CodeMirror related js error in the console.

0 Likes

#10

This was rolled out on Ghost(Pro) this morning, so if you do a hard refresh of Ghost Admin, things should hopefully now be back to normal.

If you do see any further console errors, please share screenshots of them here

0 Likes

I can't input any code to the Code Injection Blog Header
#11

I can confirm that this now works on Google Chrome in Ghost Pro.

Thanks!

1 Like

#12

Same problem with me here. Ghost (pro). But cant edit the Code injection HEADER field. Just the FOOTER field.

0 Likes

#13

Same problem here!
And my site is in Ghost.org managed hosting. The field that should be there simply is not!

Here is the screenshot:

0 Likes

#14

same problem as @gilsoncav , I’m hosting on DigitalOcean running
Ghost-CLI version: 1.9.9
Ghost version: 2.15.0

Issue: I can edit footer, but I cant edit header. Tried on Latest Edge, Firefox 65, Chrome 72

Here is the screenshot:

0 Likes

#15

Same here, Site Header inactive, no textarea to write into.
I am using Safari on a Ghost Pro Subscription.

0 Likes

#16

Another fix for this issue was released in 2.16.0. Please update to the latest 2.16.2 if you are experiencing this problem.

A rollout containing the fix on Ghost(Pro) is expected to occur on Wednesday (2 days from now).

0 Likes

closed #17

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.

0 Likes