Can we add PHP over here? I want to use PHP shortcode here.
no, you can’t run PHP in header element, only in Hooks.
But you can use Shortcodes
Remove the PHP.
Just add the shortcode ie.
then it is going outside the main div. https://prnt.sc/lgJpvsLNwmDg
Can you try adding a Test HTML after the shortcode to test where it goes? Example:
<h2> Test HTML </h2>
What’s the code for that shortcode? Is it from a plugin?
Can you try putting the shortcode inside a div? Example:
<div> [cornerstone_dynamic_header] </div>
- You must be logged in to reply to this topic.