Site logo

Archived topic

Can you execute PHP in a header element?

5 replies · Started by Clayton on November 1, 2018

Viewing posts 1–6 of 6

Hey guys,

Is is possible or advisable to execute PHP in a header element? Also, I'm gettin this error on the php in a hook option: DISALLOW_FILE_EDIT. Hosting on WPEngine.

Shortcode option worked great! Just to clarify will PHP execute if I didn't use a shortcode?

No - PHP can only be added in Hooks :)

Awesome, thanks for clarifying Tom. By the way I am really enjoying GeneratePress. You've made a very slick theme. Love the simplicity and speed!

Great to hear! Thanks! :)

This archived topic is closed to new replies.