{"id":95779,"date":"2022-09-19T21:11:56","date_gmt":"2022-09-19T19:11:56","guid":{"rendered":"https:\/\/rmarketingdigital.com\/wordpress\/como-agregar-codigo-javascript-a-wordpress-con-plugins-y-sin-ellos\/"},"modified":"2021-03-03T08:01:52","modified_gmt":"2021-03-03T11:01:52","slug":"como-agregar-codigo-javascript-a-wordpress-con-plugins-y-sin-ellos","status":"publish","type":"post","link":"https:\/\/rmarketingdigital.com\/en\/wordpress\/como-agregar-codigo-javascript-a-wordpress-con-plugins-y-sin-ellos\/","title":{"rendered":"How to add JavaScript code to WordPress, with and without plugins"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_86 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewbox=\"0 0 24 24\" version=\"1.2\" baseprofile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/rmarketingdigital.com\/en\/wordpress\/como-agregar-codigo-javascript-a-wordpress-con-plugins-y-sin-ellos\/#%C2%BFQue-es-JavaScript\" >What is JavaScript?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/rmarketingdigital.com\/en\/wordpress\/como-agregar-codigo-javascript-a-wordpress-con-plugins-y-sin-ellos\/#%C2%BFPara-que-agregar-codigo-JavaScript-a-WordPress\" >Why add JavaScript code to WordPress?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/rmarketingdigital.com\/en\/wordpress\/como-agregar-codigo-javascript-a-wordpress-con-plugins-y-sin-ellos\/#Anadiendo-JavaScript-a-WordPress\" >Adding JavaScript to WordPress<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/rmarketingdigital.com\/en\/wordpress\/como-agregar-codigo-javascript-a-wordpress-con-plugins-y-sin-ellos\/#%C2%BFComo-agregar-codigo-JavaScript-a-WordPress-sin-plugins\" >How to add JavaScript code to WordPress without plugins?<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/rmarketingdigital.com\/en\/wordpress\/como-agregar-codigo-javascript-a-wordpress-con-plugins-y-sin-ellos\/#-Agregando-JavaScript-al-Footer-o-al-Header-de-nuestra-web\" >\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Adding JavaScript to the Footer or Header of our website<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/rmarketingdigital.com\/en\/wordpress\/como-agregar-codigo-javascript-a-wordpress-con-plugins-y-sin-ellos\/#-Agregando-JavaScript-a-una-entrada-en-nuestro-blog\" >\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Adding JavaScript to a blog post<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/rmarketingdigital.com\/en\/wordpress\/como-agregar-codigo-javascript-a-wordpress-con-plugins-y-sin-ellos\/#%C2%BFComo-agregar-codigo-JavaScript-a-WordPress-con-plugins\" >How to add JavaScript code to WordPress with plugins?<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/rmarketingdigital.com\/en\/wordpress\/como-agregar-codigo-javascript-a-wordpress-con-plugins-y-sin-ellos\/#-Scripts-n-Styles\" >\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Scripts n Styles<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/rmarketingdigital.com\/en\/wordpress\/como-agregar-codigo-javascript-a-wordpress-con-plugins-y-sin-ellos\/#Otros-detalles-para-tener-en-cuenta-a-la-hora-de-trabajar-con-JS-en-WP\" >Other details to consider when working with JS in WP<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/rmarketingdigital.com\/en\/wordpress\/como-agregar-codigo-javascript-a-wordpress-con-plugins-y-sin-ellos\/#-Protege-tu-instalacion-de-WordPress-y-tus-codigos-personalizados\" >\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Protect your WordPress installation and your custom codes<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<div itemprop=\"articleBody\">\n<p>If you work with <strong>WordPress<\/strong> and you need to add a few lines of code <strong>JavaScript<\/strong> to your website in this article by <strong>CourseWpress.com<\/strong> we tell you how.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%C2%BFQue-es-JavaScript\"><\/span>What is JavaScript?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"https:\/\/www.escuelajavascript.com\"><strong>JavaScript <\/strong><\/a>it is a very powerful programming language.<\/p>\n<p>For all those people who work in <strong>Web pages<\/strong>, read:<\/p>\n<ul>\n<li>Bloggers<\/li>\n<li>Webmasters<\/li>\n<li>Web designers.<\/li>\n<li>SEO specialists.<\/li>\n<li>Online marketers.<\/li>\n<li>And a long etc.<\/li>\n<\/ul>\n<p>The JavaScript language is an excellent <strong>tool<\/strong>, as it enables us, among other things, to improve the <strong>interactivity<\/strong> of our websites.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%C2%BFPara-que-agregar-codigo-JavaScript-a-WordPress\"><\/span>Why add JavaScript code to WordPress?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>At some point we need to add some lines of JavaScript code to our WordPress installations, because &quot;Java&quot; allows us to give life to items such as:<\/p>\n<ul>\n<li>Sliders, <strong>carousels<\/strong>, and other designs, very typical of the <strong>headers<\/strong> of our websites.<\/li>\n<li>Photo galleries and portfolios.<\/li>\n<li>Buttons with interactive response.<\/li>\n<\/ul>\n<p>At the same time, it is through the JavaScript code that our WordPress-based websites interact with the <strong>APIs<\/strong> from other content generators, such as <strong>Google<\/strong> or <strong>Facebook<\/strong>.<\/p>\n<p>But at the same time it is very possible that you already know all that, and that all you want at this point is to take action.<\/p>\n<p>If that&#039;s your case, then we get <strong>let&#039;s do it<\/strong>.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Anadiendo-JavaScript-a-WordPress\"><\/span>Adding JavaScript to WordPress<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1965 size-full\" src=\"https:\/\/rmarketingdigital.com\/wp-content\/uploads\/2020\/12\/jvaaa.png\" alt=\"javascript\" width=\"125\" height=\"125\"\/><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>There are many possibilities to add JavaScript code to your website <strong>WordPress.Org<\/strong>, although you must be careful, because, depending on what cases you could get into trouble.<\/p>\n<p>And if you are thinking that:<\/p>\n<p>&quot;It is a difficult matter to put a few lines of JavaScript code to any WordPress installation.&quot;<\/p>\n<p>You&#039;re wrong.<\/p>\n<p>It is rather easy, only you have to do things well so as not to get confused.<\/p>\n<p>And don&#039;t worry, in this article we share with you some tips that will help you complete the task smoothly.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%C2%BFComo-agregar-codigo-JavaScript-a-WordPress-sin-plugins\"><\/span>How to add JavaScript code to WordPress without plugins?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>We were telling you, there are many options when it comes to adding JavaScript code to a website running in WordPress.Org <strong>no need to use plugins<\/strong> nor external tools, but you must know that each of the options will work better in specific cases.<\/p>\n<p>Here we go with the first case.<\/p>\n<p><strong>Warning<\/strong>:<\/p>\n<p>By way of <strong>disclaimer.<\/strong><\/p>\n<p>In the following lines you will find instructions that will guide you step by step, in the process of adding lines of JavaScript code to the files of your website.<\/p>\n<p>Hence, <strong>before<\/strong> from <strong>Modify<\/strong> any <strong>file<\/strong> or archive of your website, especially if it is an online and working site, you must create a <strong>back<\/strong>.<\/p>\n<p>You can create backups by following this tutorial:<\/p>\n<p>How to Create a Backup in WordPress<\/p>\n<p>At the same time we recommend, before making any changes to your active website, try making changes to a clone of your page.<\/p>\n<p>Here we tell you all about clone testing sites.<\/p>\n<p>How to use XAMPP to install WordPress locally<\/p>\n<h3><span class=\"ez-toc-section\" id=\"-Agregando-JavaScript-al-Footer-o-al-Header-de-nuestra-web\"><\/span>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Adding JavaScript to the Footer or Header of our website<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>On many occasions we need to add a code to the <strong>.PHP files<\/strong> of our <strong>theme<\/strong> active, and in several cases it is JS code.<\/p>\n<p>It occurs when we need to customize the characteristics of certain suites or tools that work with their own API.<\/p>\n<p>All we have to do is, in our <strong>WordPress dashboard,<\/strong> follow the following route:<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1966\" src=\"https:\/\/rmarketingdigital.com\/wp-content\/uploads\/2020\/12\/ruta.png\" alt=\"route\" width=\"314\" height=\"210\"  \/><\/p>\n<p><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Appearance&gt; Editor<\/strong><\/p>\n<p>There we will find many files, but in this circumstance the one we need is the file:<\/p>\n<p><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 footer.php<\/strong><\/p>\n<p>We open it.<\/p>\n<p>We will add our code just after this tag:<\/p>\n<p><strong><\/strong><\/p>\n<p>And before that:<\/p>\n<p><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;\/body&gt;<\/strong><\/p>\n<p><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 We save the changes and that&#039;s it.<\/strong><\/p>\n<p><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/strong>We have added JS code to WP.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"-Agregando-JavaScript-a-una-entrada-en-nuestro-blog\"><\/span>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Adding JavaScript to a blog post<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Now, if what we want is to add some lines of JavaScript code to one of our inputs. all we have to do is:<\/p>\n<ol>\n<li>Add the code, or Java script, to a JavaScript file, or create a JS file.<\/li>\n<li>The WordPress people, in the section <strong>wordpress.org\/Using_Javascript<\/strong> They explain that: all scripts must be defined using their function name:<\/li>\n<\/ol>\n<p><strong>function updatepage () {var m = \u00bbPage updated\u00ab + document.lastMo \u2026\u2026.}<\/strong><\/p>\n<ol start=\"3\">\n<li>Open mode <strong>HTML<\/strong> of your editor, to make the JavaScript work within our blog article we have to combine the call to the script, with the call to the <strong>JavaScript<\/strong>:<\/li>\n<\/ol>\n<p><strong>&lt;script type=\u00bbtext\/javascript\u00bb src=\u00bb\/scripts\/updatepage.js\u00bb&gt;&lt;\/script&gt;<\/strong><\/p>\n<p><strong><\/strong><\/p>\n<p><strong>&lt;!\u2013<\/strong><\/p>\n<p><strong>updatepage ();<\/strong><\/p>\n<p><strong>\/\/ -&gt;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/strong><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%C2%BFComo-agregar-codigo-JavaScript-a-WordPress-con-plugins\"><\/span>How to add JavaScript code to WordPress with plugins?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Now at the same time we can add JavaScript to our site using plugins and one of the best for this is:<\/p>\n<h3><span class=\"ez-toc-section\" id=\"-Scripts-n-Styles\"><\/span>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Scripts n Styles<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1968\" src=\"https:\/\/rmarketingdigital.com\/wp-content\/uploads\/2020\/12\/Scripts-n-Styles.jpg\" alt=\"Scripts n Styles\" width=\"958\" height=\"460\"  \/><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><strong>Scripts n Styles<\/strong> is a plugin from the people of <strong>unFocus Projects<\/strong> that allows us to add <strong>CSS code<\/strong> and <strong>JavaScript<\/strong> to our website in a simple way.<\/p>\n<p>All we have to do is search for it in the plugin repository or download it through the following link:<\/p>\n<p><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 https:\/\/wordpress.org\/plugins\/scripts-n-styles\/<\/strong><\/p>\n<p>Now we can add CSS code and functionalities of <strong>JavaScript <\/strong>anywhere on our site, either: Pages and articles.<\/p>\n<p>How to use <strong>Scripts n Styles<\/strong>?<\/p>\n<p>The operation of this plugin could not be easier, all you have to do is:<\/p>\n<p>Open your WordPress editor, either in a <strong>Article<\/strong> or on a page.<\/p>\n<p>You will see how a tab appears that allows you to add code <strong>JavaScript.<\/strong><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Otros-detalles-para-tener-en-cuenta-a-la-hora-de-trabajar-con-JS-en-WP\"><\/span>Other details to consider when working with JS in WP<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3><span class=\"ez-toc-section\" id=\"-Protege-tu-instalacion-de-WordPress-y-tus-codigos-personalizados\"><\/span>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Protect your WordPress installation and your custom codes<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>As we have always told you, never work directly on the files of your WordPress installation.<\/p>\n<p>Why?<\/p>\n<p>Because on the one hand you are putting the health of your site at risk.<\/p>\n<p>And on the other hand, you risk losing the customizations that you add, whether they are lines of CSS code or JavaScript functions.<\/p>\n<p>As an example, if you add additional code directly on the files of your website as in the <strong>header<\/strong> or in the <strong>footer<\/strong>, the chances that you will lose the add-ons with an update to your theme are quite high.<\/p>\n<p>That is why a good option is to work on a <strong>child theme<\/strong> or <strong>child theme<\/strong>, which allows you to add code and modify the <strong>theme<\/strong> however you like, without the risk of losing your job.<\/p>\n<p>Did you like the article?<\/p>\n<p>And this is just the beginning, there is much more to learn, if you want to know more sign up for the best online WordPress course in Spanish.<\/p>\n<p>\u00a0<\/p>\n<\/p><\/div>","protected":false},"excerpt":{"rendered":"<p>Si trabajas con WordPress y necesitas a\u00f1adir unas l\u00edneas de c\u00f3digo JavaScript a tu web en este art\u00edculo de CursoWpress.com te decimos c\u00f3mo. \u00bfQu\u00e9 es JavaScript? JavaScript es un lenguaje&#8230;<\/p>","protected":false},"author":1,"featured_media":95780,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1351],"tags":[],"class_list":["post-95779","post","type-post","status-publish","format-standard","has-post-thumbnail","category-wordpress"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.0 (Yoast SEO v28.2) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>C\u00f3mo agregar c\u00f3digo JavaScript a WordPress, con plugins y sin ellos - R Marketing Digital<\/title>\n<meta name=\"description\" content=\"Si trabajas con WordPress y necesitas a\u00f1adir unas l\u00edneas de c\u00f3digo JavaScript a tu web en este art\u00edculo de CursoWpress.com te decimos c\u00f3mo. \u00bfQu\u00e9 es\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/rmarketingdigital.com\/en\/wordpress\/how-to-add-javascript-code-zu-wordpress-mit-plugins-und-ohne-sie\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"C\u00f3mo agregar c\u00f3digo JavaScript a WordPress, con plugins y sin ellos\" \/>\n<meta property=\"og:description\" content=\"Si trabajas con WordPress y necesitas a\u00f1adir unas l\u00edneas de c\u00f3digo JavaScript a tu web en este art\u00edculo de CursoWpress.com te decimos c\u00f3mo. \u00bfQu\u00e9 es\" \/>\n<meta property=\"og:url\" content=\"https:\/\/rmarketingdigital.com\/en\/wordpress\/how-to-add-javascript-code-zu-wordpress-mit-plugins-und-ohne-sie\/\" \/>\n<meta property=\"og:site_name\" content=\"R Marketing Digital\" \/>\n<meta property=\"article:published_time\" content=\"2022-09-19T19:11:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/rmarketingdigital.com\/wp-content\/uploads\/2020\/12\/Como-agregar-codigo-JavaScript-a-WordPress-con-plugins-y-sin-ellos-5811464.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"576\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"R Marketing Digital\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/rmarketingdigital.com\\\/de\\\/wordpress\\\/how-to-add-javascript-code-zu-wordpress-mit-plugins-und-ohne-sie\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/rmarketingdigital.com\\\/de\\\/wordpress\\\/how-to-add-javascript-code-zu-wordpress-mit-plugins-und-ohne-sie\\\/\"},\"author\":{\"name\":\"R Marketing Digital\",\"@id\":\"https:\\\/\\\/rmarketingdigital.com\\\/#\\\/schema\\\/person\\\/7c0d9782b2977b840b3740f00c69a73e\"},\"headline\":\"C\u00f3mo agregar c\u00f3digo JavaScript a WordPress, con plugins y sin ellos\",\"datePublished\":\"2022-09-19T19:11:56+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/rmarketingdigital.com\\\/de\\\/wordpress\\\/how-to-add-javascript-code-zu-wordpress-mit-plugins-und-ohne-sie\\\/\"},\"wordCount\":1147,\"image\":{\"@id\":\"https:\\\/\\\/rmarketingdigital.com\\\/de\\\/wordpress\\\/how-to-add-javascript-code-zu-wordpress-mit-plugins-und-ohne-sie\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/rmarketingdigital.com\\\/wp-content\\\/uploads\\\/2020\\\/12\\\/Como-agregar-codigo-JavaScript-a-WordPress-con-plugins-y-sin-ellos-5811464.jpg\",\"articleSection\":[\"Wordpress\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/rmarketingdigital.com\\\/de\\\/wordpress\\\/how-to-add-javascript-code-zu-wordpress-mit-plugins-und-ohne-sie\\\/\",\"url\":\"https:\\\/\\\/rmarketingdigital.com\\\/de\\\/wordpress\\\/how-to-add-javascript-code-zu-wordpress-mit-plugins-und-ohne-sie\\\/\",\"name\":\"C\u00f3mo agregar c\u00f3digo JavaScript a WordPress, con plugins y sin ellos - R Marketing Digital\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/rmarketingdigital.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/rmarketingdigital.com\\\/de\\\/wordpress\\\/how-to-add-javascript-code-zu-wordpress-mit-plugins-und-ohne-sie\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/rmarketingdigital.com\\\/de\\\/wordpress\\\/how-to-add-javascript-code-zu-wordpress-mit-plugins-und-ohne-sie\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/rmarketingdigital.com\\\/wp-content\\\/uploads\\\/2020\\\/12\\\/Como-agregar-codigo-JavaScript-a-WordPress-con-plugins-y-sin-ellos-5811464.jpg\",\"datePublished\":\"2022-09-19T19:11:56+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/rmarketingdigital.com\\\/#\\\/schema\\\/person\\\/7c0d9782b2977b840b3740f00c69a73e\"},\"description\":\"Si trabajas con WordPress y necesitas a\u00f1adir unas l\u00edneas de c\u00f3digo JavaScript a tu web en este art\u00edculo de CursoWpress.com te decimos c\u00f3mo. \u00bfQu\u00e9 es\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/rmarketingdigital.com\\\/de\\\/wordpress\\\/how-to-add-javascript-code-zu-wordpress-mit-plugins-und-ohne-sie\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/rmarketingdigital.com\\\/de\\\/wordpress\\\/how-to-add-javascript-code-zu-wordpress-mit-plugins-und-ohne-sie\\\/#primaryimage\",\"url\":\"https:\\\/\\\/rmarketingdigital.com\\\/wp-content\\\/uploads\\\/2020\\\/12\\\/Como-agregar-codigo-JavaScript-a-WordPress-con-plugins-y-sin-ellos-5811464.jpg\",\"contentUrl\":\"https:\\\/\\\/rmarketingdigital.com\\\/wp-content\\\/uploads\\\/2020\\\/12\\\/Como-agregar-codigo-JavaScript-a-WordPress-con-plugins-y-sin-ellos-5811464.jpg\",\"width\":1024,\"height\":576,\"caption\":\"como-agregar-codigo-javascript-a-wordpress-con-plugins-y-sin-ellos-5811464-2970063-jpg\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/rmarketingdigital.com\\\/#website\",\"url\":\"https:\\\/\\\/rmarketingdigital.com\\\/\",\"name\":\"R Marketing Digital\",\"description\":\"Agencia SEO | Publicidad redes sociales | Community Management\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/rmarketingdigital.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/rmarketingdigital.com\\\/#\\\/schema\\\/person\\\/7c0d9782b2977b840b3740f00c69a73e\",\"name\":\"R Marketing Digital\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c5599c203e0120b8ccbff4666af86f35f9b3dcad468a8bc6295313a3964a80be?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c5599c203e0120b8ccbff4666af86f35f9b3dcad468a8bc6295313a3964a80be?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c5599c203e0120b8ccbff4666af86f35f9b3dcad468a8bc6295313a3964a80be?s=96&d=mm&r=g\",\"caption\":\"R Marketing Digital\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to add JavaScript code to WordPress, with and without plugins - R Marketing Digital","description":"If you work with WordPress and you need to add a few lines of JavaScript code to your website, in this CourseWpress.com article we tell you how. What is it","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/rmarketingdigital.com\/en\/wordpress\/how-to-add-javascript-code-zu-wordpress-mit-plugins-und-ohne-sie\/","og_locale":"en_US","og_type":"article","og_title":"C\u00f3mo agregar c\u00f3digo JavaScript a WordPress, con plugins y sin ellos","og_description":"Si trabajas con WordPress y necesitas a\u00f1adir unas l\u00edneas de c\u00f3digo JavaScript a tu web en este art\u00edculo de CursoWpress.com te decimos c\u00f3mo. \u00bfQu\u00e9 es","og_url":"https:\/\/rmarketingdigital.com\/en\/wordpress\/how-to-add-javascript-code-zu-wordpress-mit-plugins-und-ohne-sie\/","og_site_name":"R Marketing Digital","article_published_time":"2022-09-19T19:11:56+00:00","og_image":[{"width":1024,"height":576,"url":"https:\/\/rmarketingdigital.com\/wp-content\/uploads\/2020\/12\/Como-agregar-codigo-JavaScript-a-WordPress-con-plugins-y-sin-ellos-5811464.jpg","type":"image\/jpeg"}],"author":"R Marketing Digital","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/rmarketingdigital.com\/de\/wordpress\/how-to-add-javascript-code-zu-wordpress-mit-plugins-und-ohne-sie\/#article","isPartOf":{"@id":"https:\/\/rmarketingdigital.com\/de\/wordpress\/how-to-add-javascript-code-zu-wordpress-mit-plugins-und-ohne-sie\/"},"author":{"name":"R Marketing Digital","@id":"https:\/\/rmarketingdigital.com\/#\/schema\/person\/7c0d9782b2977b840b3740f00c69a73e"},"headline":"C\u00f3mo agregar c\u00f3digo JavaScript a WordPress, con plugins y sin ellos","datePublished":"2022-09-19T19:11:56+00:00","mainEntityOfPage":{"@id":"https:\/\/rmarketingdigital.com\/de\/wordpress\/how-to-add-javascript-code-zu-wordpress-mit-plugins-und-ohne-sie\/"},"wordCount":1147,"image":{"@id":"https:\/\/rmarketingdigital.com\/de\/wordpress\/how-to-add-javascript-code-zu-wordpress-mit-plugins-und-ohne-sie\/#primaryimage"},"thumbnailUrl":"https:\/\/rmarketingdigital.com\/wp-content\/uploads\/2020\/12\/Como-agregar-codigo-JavaScript-a-WordPress-con-plugins-y-sin-ellos-5811464.jpg","articleSection":["Wordpress"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/rmarketingdigital.com\/de\/wordpress\/how-to-add-javascript-code-zu-wordpress-mit-plugins-und-ohne-sie\/","url":"https:\/\/rmarketingdigital.com\/de\/wordpress\/how-to-add-javascript-code-zu-wordpress-mit-plugins-und-ohne-sie\/","name":"How to add JavaScript code to WordPress, with and without plugins - R Marketing Digital","isPartOf":{"@id":"https:\/\/rmarketingdigital.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/rmarketingdigital.com\/de\/wordpress\/how-to-add-javascript-code-zu-wordpress-mit-plugins-und-ohne-sie\/#primaryimage"},"image":{"@id":"https:\/\/rmarketingdigital.com\/de\/wordpress\/how-to-add-javascript-code-zu-wordpress-mit-plugins-und-ohne-sie\/#primaryimage"},"thumbnailUrl":"https:\/\/rmarketingdigital.com\/wp-content\/uploads\/2020\/12\/Como-agregar-codigo-JavaScript-a-WordPress-con-plugins-y-sin-ellos-5811464.jpg","datePublished":"2022-09-19T19:11:56+00:00","author":{"@id":"https:\/\/rmarketingdigital.com\/#\/schema\/person\/7c0d9782b2977b840b3740f00c69a73e"},"description":"If you work with WordPress and you need to add a few lines of JavaScript code to your website, in this CourseWpress.com article we tell you how. What is it","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/rmarketingdigital.com\/de\/wordpress\/how-to-add-javascript-code-zu-wordpress-mit-plugins-und-ohne-sie\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/rmarketingdigital.com\/de\/wordpress\/how-to-add-javascript-code-zu-wordpress-mit-plugins-und-ohne-sie\/#primaryimage","url":"https:\/\/rmarketingdigital.com\/wp-content\/uploads\/2020\/12\/Como-agregar-codigo-JavaScript-a-WordPress-con-plugins-y-sin-ellos-5811464.jpg","contentUrl":"https:\/\/rmarketingdigital.com\/wp-content\/uploads\/2020\/12\/Como-agregar-codigo-JavaScript-a-WordPress-con-plugins-y-sin-ellos-5811464.jpg","width":1024,"height":576,"caption":"como-agregar-codigo-javascript-a-wordpress-con-plugins-y-sin-ellos-5811464-2970063-jpg"},{"@type":"WebSite","@id":"https:\/\/rmarketingdigital.com\/#website","url":"https:\/\/rmarketingdigital.com\/","name":"R Digital Marketing","description":"SEO Agency | Advertising social networks | Community Management","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/rmarketingdigital.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/rmarketingdigital.com\/#\/schema\/person\/7c0d9782b2977b840b3740f00c69a73e","name":"R Digital Marketing","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/c5599c203e0120b8ccbff4666af86f35f9b3dcad468a8bc6295313a3964a80be?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/c5599c203e0120b8ccbff4666af86f35f9b3dcad468a8bc6295313a3964a80be?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c5599c203e0120b8ccbff4666af86f35f9b3dcad468a8bc6295313a3964a80be?s=96&d=mm&r=g","caption":"R Marketing Digital"}}]}},"_links":{"self":[{"href":"https:\/\/rmarketingdigital.com\/en\/wp-json\/wp\/v2\/posts\/95779","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rmarketingdigital.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rmarketingdigital.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rmarketingdigital.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rmarketingdigital.com\/en\/wp-json\/wp\/v2\/comments?post=95779"}],"version-history":[{"count":0,"href":"https:\/\/rmarketingdigital.com\/en\/wp-json\/wp\/v2\/posts\/95779\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rmarketingdigital.com\/en\/wp-json\/wp\/v2\/media\/95780"}],"wp:attachment":[{"href":"https:\/\/rmarketingdigital.com\/en\/wp-json\/wp\/v2\/media?parent=95779"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rmarketingdigital.com\/en\/wp-json\/wp\/v2\/categories?post=95779"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rmarketingdigital.com\/en\/wp-json\/wp\/v2\/tags?post=95779"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}