Insert Headers and Footers by WPBeginner


הכניסו בקלות סקריפטים להדר ולפוטר

Insert Headers and Footers is a simple plugin that lets you insert code like Google Analytics, custom CSS, Facebook Pixel, and more to your WordPress site header and footer. No need to edit your theme files!

The simple interface of the Insert Headers and Footers plugin gives you one place where you can insert scripts, rather than dealing with dozens of different plugins.

מאפייני התוסף

  • התקנה מהירה
  • פשוט להכניס סקריפטים
  • הכנסת סקריפטים הדר ו/או לפוטר
  • הוספת Google Analytics לכל תבנית
  • הוספת CSS מותאם לכל התבניות
  • הוספת Facebook pixel code
  • הוספת קטעי קוד או סקריפטים, כולל HTML ו-Javascript


This plugin is created by Syed Balkhi and the WPBeginner team.

מה הלאה

If you find this plugin useful to insert header and footer scripts, please leave a good rating and consider checking out our other projects:

  • OptinMonster – Get more email subscribers with the most popular conversion optimization plugin for WordPress.
  • WPForms – #1 drag & drop online form builder for WordPress (trusted by 5 million sites).
  • MonsterInsights – See the stats that matter and grow your business with confidence. Best Google Analytics plugin for WordPress.
  • SeedProd – Create beautiful landing pages with our powerful drag & drop landing page builder.
  • WP Mail SMTP – Improve email deliverability for your contact form with the most popular SMTP plugin for WordPress.
  • RafflePress – Best WordPress giveaway and contest plugin to grow traffic and social followers.
  • Smash Balloon – #1 social feeds plugin for WordPress – display social media content in WordPress without code.
  • AIOSEO – The original WordPress SEO plugin to help you rank higher in search results (trusted by over 3 million sites).
  • PushEngage – Connect with visitors after they leave your website with the leading web push notification plugin.
  • TrustPulse – Add real-time social proof notifications to boost your store conversions by up to 15%.
  • SearchWP – The most advanced custom WordPress search plugin to improve WordPress search quality.
  • AffiliateWP – #1 affiliate management plugin for WordPress. Add a referral program to your online store.
  • WP Simple Pay – #1 Stripe payments plugin for WordPress. Start accepting one-time or recurring payments without a shopping cart.
  • Easy Digital Downloads – The best WordPress eCommerce plugin to sell digital products (eBooks, software, music, and more).
  • Sugar Calendar – A simple event calendar plugin for WordPress that’s both easy and powerful.

To learn more about WordPress, you can also visit WPBeginner for tutorials on topics like:

…and many more WordPress tutorials.


Insert Headers and Footers is the easiest way to insert code in your WordPress headers and footers.

Our goal is to make using WordPress easy, both with our WordPress plugins and resources like WPBeginner, the largest WordPress resource site for beginners.

I feel that we have done that here. I hope find Insert Headers and Footers useful to insert scripts on your site.

תודה רבה,
Syed Balkhi

צילומי מסך

  • מסך הגדרות


  1. Install Insert Headers and Footers by uploading the insert-headers-and-footers directory to the /wp-content/plugins/ directory. (See instructions on how to install a WordPress plugin.)
  2. Activate Insert Headers and Footers through the Plugins menu in WordPress.
  3. Insert code in your header or footer by going to the Settings > Insert Headers and Footers menu.

שאלות נפוצות

האם ניתן להשתמש בתוסף עבור Google Analytics?

Yes, you can insert your Google Analytics code in the Scripts in Header field.

האם ניתן להשתמש בתוסף עבור Google AdSense?

Yes, to verify your account or to tag your page for Auto ads, paste the code AdSense gives you, into the Scripts in Header field.

כיצד להשבית הוספת סקריפטים בהדר או בפוטר בעמוד מסוים?

You can use one of the three available boolean filters: disable_ihaf, disable_ihaf_footer, disable_ihaf_header, disable_ihaf_body and return true value in order to disable printing either on the entire page or specifically in the header or footer of a given page.


29 ביוני 2022
Easy to use, lightweight, never had any issues with this plugin.
29 ביוני 2022
I love everything about their headers and footers; it makes my business look professional and easy to use. Highly recommend!!
29 ביוני 2022
Greetings, My name is Michael S. James. I am currently experiencing great strides in a Digi Mktg Bootcamp at ODU here in Norfolk, VA. This platform has served me before with a WordPress site called I am also seeking to set up a stand-alone website using and the same Url I will continue my studies in order to optimize every opportunity and learning tool available as if my life depends on it. I believe my website is the "gateway to entrepreneurship for youth" and some of these young people will depend on it as if. My next challenge is a theme and the content development per page and then of course the store. I'm excited about the ease of use and tutorial advantages, chat for help, and the products in place for enhancement. I will pass the experience on to youth and their families as well as all my clientel. Thanks for your consideration. Mike James
קראו את כל 798 הסקירות


"Insert Headers and Footers by WPBeginner" הוא תוסף קוד פתוח. האנשים הבאים תרמו ליצירת התוסף הזה.


“Insert Headers and Footers by WPBeginner” תורגם ל-25 שפות. תודה רבה למתרגמים על תרומתם.

ניתן לתרגם את "Insert Headers and Footers by WPBeginner" לשפה שלך.

מעוניינים בפיתוח?

עיינו בקוד, ראו את הקוד ב-SVN repository, או הירשמו ללוג פיתוח באמצעות RSS.



  • Fix: Reverted a method visibility that was conflicting with other plugins using it.


  • Tested compatibility with WordPress 5.9


  • Fix: Only show settings CTA to users able to visit the settings page.
  • Enhancement: Improve settings page user experience on heavily customized WordPress installs.


  • New: Code editors now use CodeMirror for syntax highlighting.


  • Tested compatibility with WordPress 5.4.2


  • Tested compatibility with WordPress 5.3.2
  • Add support for printing scripts right after the opening body tag using the wp_body_open action


  • בדקה תאימות לוורדפרס 5.2
  • תוקן text-domain לפי הסטנדרט


  • עדכון שאלות נפוצות
  • Introduce three new filters: disable_ihaf, disable_ihaf_footer, disable_ihaf_header


  • ניקוי קוד


  • תיקונים עבור משתמשים בגרסה פחותה מ-5.5 של PHP


  • נבדק באמצעות וורדפרס 4.7.2
  • ניקוי קוד


  • נבדק באמצעות וורדפרס 4.3
  • Fix: plugin_dir_path() and plugin_dir_url() used for Multisite / symlink support


  • Fix: Dashboard widget logo URL when RSS feed cannot be loaded
  • תיקון: תמיכה בוורדפרס 4.0
  • נוסף: קבצי שפות POT


  • ממשק משתמש משופר עבור וורדפרס 3.8+
  • הקפצת גרסה מינימלית נדרשת


  • תוקן קובץ readme


  • ניקוי קוד


  • fixed unnecessary CSS loading


  • גרסה ראשונית