Title: Add code to Elementor page?
Last modified: June 26, 2019

---

# Add code to Elementor page?

 *  [LesTexas60](https://wordpress.org/support/users/lestexas60/)
 * (@lestexas60)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/add-code-to-elementor-page/)
 * Does anyone know of a way to add code to an Elementor page? I am trying to display
   a Query String and everywhere says to do it in php but Elementor doesn’t like
   php. None of the plug ins are working. I see the HTML option but I don’t think
   I can grab the variable value and then display it with HTML.

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [pingram](https://wordpress.org/support/users/pingram3541/)
 * (@pingram3541)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/add-code-to-elementor-page/#post-10583805)
 * It’s not the best choice to execute server-side code this way and that is why
   it is not allowed.
 * Fred, it’s not Elementor but WordPress core that does that because it was never
   designed for code but to auto-format blog content for writers.
 * Use your favorite code editor or download AceIDE plugin to give you a full code
   editor in the back end of WordPress and use Elementor Hooks to add custom PHP.
   For example, add your code in your theme’s functions.php (preferably child-theme
   if it’s not your own custom theme).
 * Choose the best hook to execute your custom php – [https://code.elementor.com/php-hooks/](https://code.elementor.com/php-hooks/)
 * As for javascript, I’ll often use the html element to add script tags and then
   execute my code from an anonymous function. Javascript can indeed capture query
   strings from the url via `window.location` and then you can parse the key value
   pairs…
 * [https://stackoverflow.com/questions/2090551/parse-query-string-in-javascript#2091331](https://stackoverflow.com/questions/2090551/parse-query-string-in-javascript#2091331)
 * Cheers!
 *  [Jeremiah Stillings](https://wordpress.org/support/users/jeremiah01292/)
 * (@jeremiah01292)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/add-code-to-elementor-page/#post-10595053)
 * The concept of PHP is server side execution and a result returned to client.
   
   You are trying to start on the client and feed the server things the client should
   not have access to (parameters of server side code) [@pingram3541](https://wordpress.org/support/users/pingram3541/)
   is suggesting that if your doing business in the client to keep the business 
   in the client IE javascript.
 * A clients source code should never reveal how a PHP function works.
 * Now if you want to use a action=post”customphp.php” on your form submit you can
   simply install a form redirect plug in and instead of telling it to go to thankyou.
   html tell it to go to your customphp.php and have it then return data to your
   following page.
 * Rule of thumb is do not mix your business logic. Do it server ( php ) or client
   Javascript. WP is designed to allow client business logic.
 *  [hhcw](https://wordpress.org/support/users/hhcw/)
 * (@hhcw)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/add-code-to-elementor-page/#post-11132097)
 * As a newbie to webdesign and WP, it is possible that my question/comment was 
   answered but I didn’t understand it.
 * I was provided HTML code that I want to add to either my footer or a specific
   page (not sure yet) and have no idea how to do that. In WP, when I click on the
   button “Back to WordPress Editor” I get a warning that I could break the layout,
   design, and content of my page.
 * If you can let me know in “newbie” language how to proceed I would be thankful!
 *  [klawans](https://wordpress.org/support/users/klawans/)
 * (@klawans)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/add-code-to-elementor-page/#post-11132918)
 * Same issue. Looking to add Zoho tracking code. All I see is elementor and no 
   way to edit html.
 *  Thread Starter [LesTexas60](https://wordpress.org/support/users/lestexas60/)
 * (@lestexas60)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/add-code-to-elementor-page/#post-11133876)
 * hhcw- There is an HTML widget box that can be added to your page or post. Code
   can be put in that. As to going back and forth between WP editor and Elementor
   Editor, Don’t Do That. Once you take a page you should not try to modify it in
   WP. This will cause multiple issues.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Add code to Elementor page?’ is closed to new replies.

 * ![](https://ps.w.org/elementor/assets/icon-256x256.gif?rev=3444228)
 * [Elementor Website Builder - more than just a page builder](https://wordpress.org/plugins/elementor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/elementor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/elementor/)
 * [Active Topics](https://wordpress.org/support/plugin/elementor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/elementor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/elementor/reviews/)

 * 5 replies
 * 5 participants
 * Last reply from: [LesTexas60](https://wordpress.org/support/users/lestexas60/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/add-code-to-elementor-page/#post-11133876)
 * Status: not resolved