• Resolved primos04

    (@primos04)


    Hello,

    I wanted to implement site-wide href lang code into the head section. unfortunately the php within the html was not recognized

    <link rel=”alternate” href=”<?php echo ‘https://firstdomain.de&#8217; . $_SERVER[‘REQUEST_URI’]; ?>” hreflang=”de-de” />
    <link rel=”alternate” href=”<?php echo ‘https://seconddomain.co.uk&#8217; . $_SERVER[‘REQUEST_URI’]; ?>” hreflang=”en-gb” />

    Do you know why? Does the plugin accept php code? The code is correct since it work when i implement it directly into the header.php file.

Viewing 1 replies (of 1 total)
  • Plugin Contributor TechWebUX

    (@techwebux)

    Hello @primos04,

    Thank you for giving a chance to Head & Footer Code plugin (HFC).

    Unfortunately, as it’s a security risk, HFC does not process PHP code if it’s entered into any plugin field (global or article specific).

    Any content added to HFC fields is printed on the front-end as is.

    Thank you for understanding,
    Aleksandar

Viewing 1 replies (of 1 total)
  • The topic ‘Does the plugin accept php code?’ is closed to new replies.