- This topic has 11 replies, 3 voices, and was last updated 4 years, 9 months ago by Jamal.
October 11, 2015 at 2:41 pm #143538Andreas
I’m using the facetwp Plugin and I want to generate a quick search form into a section. For insert PHP in a WordPress page I’m using “Insert PHP”.October 12, 2015 at 10:20 am #143741TomLead DeveloperLead Developer
That being said, the WP editor has a habit of stripping some tags, so it might cause issues.
Worth a shot though 🙂October 18, 2016 at 6:02 am #236388Jamal
Agressively support the kind of work you want to see. Buy it. Talk about it. Review it.October 18, 2016 at 9:13 am #236465TomLead DeveloperLead Developer
Instead, it should go in an external file or in the wp_footer hook.October 18, 2016 at 12:31 pm #236551Jamal
This is what is not working in sections but is working in page header. I have enqueued the js file (?).
Agressively support the kind of work you want to see. Buy it. Talk about it. Review it.October 18, 2016 at 11:46 pm #236781TomLead DeveloperLead Developer
Yea, the editor will strip that. The Page Header actually should as well, I’ll need to look at that.
That code should be added in the
wp_footerhook.October 19, 2016 at 12:38 am #236804Jamal
Oh no when i thought i finally found the right design for my site 🙁
How can i output that script inside where the sections/page header is? Thanks
P.s Sorry if im talking gibberish, need to learn the right terminology 🙂
Agressively support the kind of work you want to see. Buy it. Talk about it. Review it.October 19, 2016 at 10:21 am #237007TomLead DeveloperLead Developer
Ah, I understand, your JS displays data which you want in your section.
One thing you can do is add it to a shortcode which you then add to the section – WP won’t strip the shortcode.October 19, 2016 at 1:24 pm #237094Jamal
Thanks Tom, i will try that.
Agressively support the kind of work you want to see. Buy it. Talk about it. Review it.
- You must be logged in to reply to this topic.