Viewing 2 replies - 1 through 2 (of 2 total)
  • Instead of this:

    the_field(‘header_script');

    try this:

    the_field('header_script');

    Somehow, your text editor has replaced a ‘straight’ apostrophe by a ‘curly’ one. A small difference, but it’s enough to prevent code from working.

    You can actually see how it messes up the syntax coloring in the image you posted.

    Thread Starter bobrock4

    (@bobrock4)

    Thanks Manuel. That’s the right solution ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Why code in header.php is not working?’ is closed to new replies.