{"id":319536,"date":"2026-04-06T19:03:49","date_gmt":"2026-04-06T14:03:49","guid":{"rendered":"https:\/\/wpbrigade.com\/?post_type=docs&#038;p=319536"},"modified":"2026-04-06T19:20:01","modified_gmt":"2026-04-06T14:20:01","password":"","slug":"how-to-set-script-priority-in-headers-and-footers","status":"publish","type":"docs","link":"https:\/\/wpbrigade.com\/docs\/how-to-set-script-priority-in-headers-and-footers\/","title":{"rendered":"How To Set Script Priority"},"content":{"rendered":"\n<p>The <strong>WP Headers and Footers Plugin<\/strong> is a powerful, user-friendly tool for WordPress site administrators and developers, enabling easy insertion of custom code snippets into the header, body, and footer of your website.&nbsp;<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>This plugin provides the flexibility to add third-party scripts, tracking codes, or custom styles globally across your site without modifying theme files.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>In this documentation, we will focus on configuring the <strong>script execution priority<\/strong> for scripts added via the <strong><a href=\"https:\/\/wpbrigade.com\/go\/insert-headers-and-footers\" type=\"link\" id=\"https:\/\/wpbrigade.com\/go\/insert-headers-and-footers\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">WP Headers and Footers Plugin<\/a><\/strong>.&nbsp;<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>These settings control when your custom scripts load relative to other scripts on your site, ensuring proper script order and preventing conflicts.<\/p>\n\n\n\n<!--more-->\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-header-s-priority\">Header&#8217;s Priority<\/h2>\n\n\n\n<p>The Header&#8217;s Priority setting controls the execution order of scripts added to the &lt;head&gt; section of your website. Scripts with lower priority values will load earlier.<\/p>\n\n\n\n<p>For example, a script with <strong>priority 5<\/strong> will load before one with <strong>priority 10<\/strong>.<\/p>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;69e38631ef26e&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"69e38631ef26e\" class=\"wp-block-image aligncenter size-large wp-lightbox-container\"><img decoding=\"async\" width=\"1024\" height=\"462\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/wpbrigade.com\/wp-content\/uploads\/2026\/03\/Header-priority-settings-1024x462.png\" alt=\"Header priority settings in wp headers and footers \" class=\"wp-image-319555\" srcset=\"https:\/\/wpbrigade.com\/wp-content\/uploads\/2026\/03\/Header-priority-settings-1024x462.png 1024w, https:\/\/wpbrigade.com\/wp-content\/uploads\/2026\/03\/Header-priority-settings-300x135.png 300w, https:\/\/wpbrigade.com\/wp-content\/uploads\/2026\/03\/Header-priority-settings-768x346.png 768w, https:\/\/wpbrigade.com\/wp-content\/uploads\/2026\/03\/Header-priority-settings.png 1166w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><figcaption class=\"wp-element-caption\">Header Priority Settings &#8211; WP Headers and Footers <\/figcaption><\/figure>\n\n\n\n<p>This is useful when you need a custom header script to load <strong>before<\/strong> or <strong>after<\/strong> another script. For example, if you want to load Google Tag Manager, analytics, or other third-party tools in a specific order, you can set their priorities to control when each script executes.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-body-s-priority\">Body&#8217;s Priority<\/h2>\n\n\n\n<p>The Body&#8217;s Priority setting controls the execution priority for scripts injected into the &lt;body&gt; tag using the wp_body_open hook. As with the header, lower values = higher priority.<\/p>\n\n\n\n<p>For example, a script with <strong>priority 5<\/strong> will execute before one with <strong>priority 10<\/strong>.<\/p>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;69e38631ef7eb&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"69e38631ef7eb\" class=\"wp-block-image aligncenter size-large wp-lightbox-container\"><img decoding=\"async\" width=\"1024\" height=\"422\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/wpbrigade.com\/wp-content\/uploads\/2026\/03\/Body-priority-settings-1024x422.png\" alt=\"Body priority settings in set script pirority in wp headers and footers\" class=\"wp-image-319553\" srcset=\"https:\/\/wpbrigade.com\/wp-content\/uploads\/2026\/03\/Body-priority-settings-1024x422.png 1024w, https:\/\/wpbrigade.com\/wp-content\/uploads\/2026\/03\/Body-priority-settings-300x124.png 300w, https:\/\/wpbrigade.com\/wp-content\/uploads\/2026\/03\/Body-priority-settings-768x317.png 768w, https:\/\/wpbrigade.com\/wp-content\/uploads\/2026\/03\/Body-priority-settings.png 1161w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><figcaption class=\"wp-element-caption\">Body Priority Settings &#8211; WP Headers and Footers <\/figcaption><\/figure>\n\n\n\n<p>This feature is ideal for managing the load order of body-level scripts, such as tracking pixels, chat widgets, or A\/B testing tools. By adjusting the priority, you can ensure these scripts load in the correct order for precise execution timing.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-footer-s-priority\">Footer\u2019s Priority<\/h2>\n\n\n\n<p>The Footer\u2019s Priority controls the load order of scripts inserted just before the &lt;\/body&gt; tag. Again, lower numbers = higher execution priority.<\/p>\n\n\n\n<p>For example, a script with <strong>priority 5<\/strong> will execute before one with <strong>priority 10<\/strong>.<\/p>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;69e38631efcfe&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"69e38631efcfe\" class=\"wp-block-image aligncenter size-large wp-lightbox-container\"><img decoding=\"async\" width=\"1024\" height=\"472\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/wpbrigade.com\/wp-content\/uploads\/2026\/03\/Footer-priority-settings-1024x472.png\" alt=\"Footer priority settings in wp headers and footers\" class=\"wp-image-319554\" srcset=\"https:\/\/wpbrigade.com\/wp-content\/uploads\/2026\/03\/Footer-priority-settings-1024x472.png 1024w, https:\/\/wpbrigade.com\/wp-content\/uploads\/2026\/03\/Footer-priority-settings-300x138.png 300w, https:\/\/wpbrigade.com\/wp-content\/uploads\/2026\/03\/Footer-priority-settings-768x354.png 768w, https:\/\/wpbrigade.com\/wp-content\/uploads\/2026\/03\/Footer-priority-settings.png 1160w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><figcaption class=\"wp-element-caption\">Footer Priority Settings &#8211; WP Headers and Footers <\/figcaption><\/figure>\n\n\n\n<p>This setting is commonly used for performance-optimized scripts that should run at the end of the page load. These scripts may include custom JavaScript, analytics tools, or DOM-ready scripts that don&#8217;t need to block page rendering and can be executed after the page has loaded.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion<\/h2>\n\n\n\n<p>By configuring the <strong>execution priorities<\/strong> for your <strong>header<\/strong>, <strong>body<\/strong>, and <strong>footer<\/strong> scripts, you can gain better control over how they load on your WordPress site, ensuring the correct execution order for critical elements such as tracking codes, widgets, and performance scripts. <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>If you also need to manage the plugin\u2019s settings and data during uninstallation, or reset your configurations, check out our guide on <strong>Factory Reset and Uninstall Options in WP Headers and Footers<\/strong> for more details.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Feel free to reach out to our dedicated <a href=\"https:\/\/wpbrigade.com\/contact\/\" type=\"link\" id=\"https:\/\/wpbrigade.com\/contact\/\" target=\"_blank\" rel=\"noreferrer noopener\">support team<\/a> for any further queries!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The WP Headers and Footers Plugin is a powerful, user-friendly tool for WordPress site administrators and developers, enabling easy insertion of custom code snippets into the header, body, and footer of your website.&nbsp; This plugin provides the flexibility to add third-party scripts, tracking codes, or custom styles globally across your site without modifying theme files. [&hellip;]<\/p>\n","protected":false},"author":9268,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_analytify_skip_tracking":false,"footnotes":""},"doc_category":[1493],"doc_tag":[],"class_list":["post-319536","docs","type-docs","status-publish","hentry","doc_category-headers-and-footers"],"year_month":"2026-04","word_count":476,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"Editorial Team","author_nicename":"editoranalytify-io","author_url":"https:\/\/wpbrigade.com\/author\/editoranalytify-io\/"},"doc_category_info":[{"term_name":"Headers and Footers","term_url":"https:\/\/wpbrigade.com\/documents\/headers-and-footers\/"}],"doc_tag_info":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How To Set Script Priority in Headers and Footers - WPBrigade<\/title>\n<meta name=\"description\" content=\"Learn how to set script priority in the WP Headers and Footers plugin to control the order of your site\u2019s scripts.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/wpbrigade.com\/docs\/how-to-set-script-priority-in-headers-and-footers\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Set Script Priority\" \/>\n<meta property=\"og:description\" content=\"Learn how to set script priority in the WP Headers and Footers plugin to control the order of your site\u2019s scripts.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wpbrigade.com\/docs\/how-to-set-script-priority-in-headers-and-footers\/\" \/>\n<meta property=\"og:site_name\" content=\"WPBrigade\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/facebook.com\/WPBrigade\" \/>\n<meta property=\"article:modified_time\" content=\"2026-04-06T14:20:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/wpbrigade.com\/wp-content\/uploads\/2026\/03\/Header-priority-settings.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1166\" \/>\n\t<meta property=\"og:image:height\" content=\"526\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@wpbrigade\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/wpbrigade.com\\\/docs\\\/how-to-set-script-priority-in-headers-and-footers\\\/\",\"url\":\"https:\\\/\\\/wpbrigade.com\\\/docs\\\/how-to-set-script-priority-in-headers-and-footers\\\/\",\"name\":\"How To Set Script Priority in Headers and Footers - WPBrigade\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/wpbrigade.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/wpbrigade.com\\\/docs\\\/how-to-set-script-priority-in-headers-and-footers\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/wpbrigade.com\\\/docs\\\/how-to-set-script-priority-in-headers-and-footers\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/wpbrigade.com\\\/wp-content\\\/uploads\\\/2026\\\/03\\\/Header-priority-settings-1024x462.png\",\"datePublished\":\"2026-04-06T14:03:49+00:00\",\"dateModified\":\"2026-04-06T14:20:01+00:00\",\"description\":\"Learn how to set script priority in the WP Headers and Footers plugin to control the order of your site\u2019s scripts.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/wpbrigade.com\\\/docs\\\/how-to-set-script-priority-in-headers-and-footers\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/wpbrigade.com\\\/docs\\\/how-to-set-script-priority-in-headers-and-footers\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/wpbrigade.com\\\/docs\\\/how-to-set-script-priority-in-headers-and-footers\\\/#primaryimage\",\"url\":\"https:\\\/\\\/wpbrigade.com\\\/wp-content\\\/uploads\\\/2026\\\/03\\\/Header-priority-settings.png\",\"contentUrl\":\"https:\\\/\\\/wpbrigade.com\\\/wp-content\\\/uploads\\\/2026\\\/03\\\/Header-priority-settings.png\",\"width\":1166,\"height\":526,\"caption\":\"Header Priority Settings - WP Headers and Footers\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/wpbrigade.com\\\/docs\\\/how-to-set-script-priority-in-headers-and-footers\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/wpbrigade.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Docs\",\"item\":\"https:\\\/\\\/wpbrigade.com\\\/docs\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How To Set Script Priority\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/wpbrigade.com\\\/#website\",\"url\":\"https:\\\/\\\/wpbrigade.com\\\/\",\"name\":\"WPBrigade\",\"description\":\"WordPress Development Agency\",\"publisher\":{\"@id\":\"https:\\\/\\\/wpbrigade.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/wpbrigade.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/wpbrigade.com\\\/#organization\",\"name\":\"WPBrigade\",\"url\":\"https:\\\/\\\/wpbrigade.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/wpbrigade.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/wpbrigade.com\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/Screen-Shot-2021-07-02-at-12.42.14-AM.png\",\"contentUrl\":\"https:\\\/\\\/wpbrigade.com\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/Screen-Shot-2021-07-02-at-12.42.14-AM.png\",\"width\":271,\"height\":63,\"caption\":\"WPBrigade\"},\"image\":{\"@id\":\"https:\\\/\\\/wpbrigade.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/facebook.com\\\/WPBrigade\",\"https:\\\/\\\/x.com\\\/wpbrigade\",\"https:\\\/\\\/www.instagram.com\\\/wpbrigade.agency\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/wpbrigade\",\"https:\\\/\\\/www.youtube.com\\\/c\\\/Wpbrigade\"]}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How To Set Script Priority in Headers and Footers - WPBrigade","description":"Learn how to set script priority in the WP Headers and Footers plugin to control the order of your site\u2019s scripts.","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:\/\/wpbrigade.com\/docs\/how-to-set-script-priority-in-headers-and-footers\/","og_locale":"en_US","og_type":"article","og_title":"How To Set Script Priority","og_description":"Learn how to set script priority in the WP Headers and Footers plugin to control the order of your site\u2019s scripts.","og_url":"https:\/\/wpbrigade.com\/docs\/how-to-set-script-priority-in-headers-and-footers\/","og_site_name":"WPBrigade","article_publisher":"https:\/\/facebook.com\/WPBrigade","article_modified_time":"2026-04-06T14:20:01+00:00","og_image":[{"width":1166,"height":526,"url":"https:\/\/wpbrigade.com\/wp-content\/uploads\/2026\/03\/Header-priority-settings.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_site":"@wpbrigade","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/wpbrigade.com\/docs\/how-to-set-script-priority-in-headers-and-footers\/","url":"https:\/\/wpbrigade.com\/docs\/how-to-set-script-priority-in-headers-and-footers\/","name":"How To Set Script Priority in Headers and Footers - WPBrigade","isPartOf":{"@id":"https:\/\/wpbrigade.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/wpbrigade.com\/docs\/how-to-set-script-priority-in-headers-and-footers\/#primaryimage"},"image":{"@id":"https:\/\/wpbrigade.com\/docs\/how-to-set-script-priority-in-headers-and-footers\/#primaryimage"},"thumbnailUrl":"https:\/\/wpbrigade.com\/wp-content\/uploads\/2026\/03\/Header-priority-settings-1024x462.png","datePublished":"2026-04-06T14:03:49+00:00","dateModified":"2026-04-06T14:20:01+00:00","description":"Learn how to set script priority in the WP Headers and Footers plugin to control the order of your site\u2019s scripts.","breadcrumb":{"@id":"https:\/\/wpbrigade.com\/docs\/how-to-set-script-priority-in-headers-and-footers\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wpbrigade.com\/docs\/how-to-set-script-priority-in-headers-and-footers\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wpbrigade.com\/docs\/how-to-set-script-priority-in-headers-and-footers\/#primaryimage","url":"https:\/\/wpbrigade.com\/wp-content\/uploads\/2026\/03\/Header-priority-settings.png","contentUrl":"https:\/\/wpbrigade.com\/wp-content\/uploads\/2026\/03\/Header-priority-settings.png","width":1166,"height":526,"caption":"Header Priority Settings - WP Headers and Footers"},{"@type":"BreadcrumbList","@id":"https:\/\/wpbrigade.com\/docs\/how-to-set-script-priority-in-headers-and-footers\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/wpbrigade.com\/"},{"@type":"ListItem","position":2,"name":"Docs","item":"https:\/\/wpbrigade.com\/docs\/"},{"@type":"ListItem","position":3,"name":"How To Set Script Priority"}]},{"@type":"WebSite","@id":"https:\/\/wpbrigade.com\/#website","url":"https:\/\/wpbrigade.com\/","name":"WPBrigade","description":"WordPress Development Agency","publisher":{"@id":"https:\/\/wpbrigade.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wpbrigade.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/wpbrigade.com\/#organization","name":"WPBrigade","url":"https:\/\/wpbrigade.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wpbrigade.com\/#\/schema\/logo\/image\/","url":"https:\/\/wpbrigade.com\/wp-content\/uploads\/2021\/07\/Screen-Shot-2021-07-02-at-12.42.14-AM.png","contentUrl":"https:\/\/wpbrigade.com\/wp-content\/uploads\/2021\/07\/Screen-Shot-2021-07-02-at-12.42.14-AM.png","width":271,"height":63,"caption":"WPBrigade"},"image":{"@id":"https:\/\/wpbrigade.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/facebook.com\/WPBrigade","https:\/\/x.com\/wpbrigade","https:\/\/www.instagram.com\/wpbrigade.agency\/","https:\/\/www.linkedin.com\/company\/wpbrigade","https:\/\/www.youtube.com\/c\/Wpbrigade"]}]}},"_links":{"self":[{"href":"https:\/\/wpbrigade.com\/wpb-api\/wp\/v2\/docs\/319536","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpbrigade.com\/wpb-api\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/wpbrigade.com\/wpb-api\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/wpbrigade.com\/wpb-api\/wp\/v2\/users\/9268"}],"replies":[{"embeddable":true,"href":"https:\/\/wpbrigade.com\/wpb-api\/wp\/v2\/comments?post=319536"}],"version-history":[{"count":11,"href":"https:\/\/wpbrigade.com\/wpb-api\/wp\/v2\/docs\/319536\/revisions"}],"predecessor-version":[{"id":320039,"href":"https:\/\/wpbrigade.com\/wpb-api\/wp\/v2\/docs\/319536\/revisions\/320039"}],"wp:attachment":[{"href":"https:\/\/wpbrigade.com\/wpb-api\/wp\/v2\/media?parent=319536"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/wpbrigade.com\/wpb-api\/wp\/v2\/doc_category?post=319536"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/wpbrigade.com\/wpb-api\/wp\/v2\/doc_tag?post=319536"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}