Skip to main content
How to Add RB2B's Script to WordPress
Updated over 8 months ago

If you are using Elementor as a site builder, this method will not work.

Integrating our script into your WordPress website is a straightforward process. Here’s a step-by-step guide to help you do this through the theme editor.


Copy the RB2B Script

Start by ensuring that you have the RB2B script ready. You can find it in the Script section of the dashboard. Copy the entire code snippet to your clipboard, preparing it for embedding into your WordPress site.

Log in to WordPress and navigate to Appearance then Theme File Editor

First, access your WordPress site's admin area by logging in with your credentials. In your dashboard, go to the 'Appearance' section and select 'Theme Editor'. This will open the editor where you can modify your site's theme files.

Find and select Theme Header

Within the Theme Editor, you will see a list of theme files on the right side. Locate and click on the 'header.php' file. This file generally contains the head section of your website’s HTML, where scripts are typically added.

Paste the tracking script inside the <head> tag just before the closing </head> tag

In the 'header.php' file, scroll to the part where the head section ends (just before the closing </head> tag). Here, paste the script provided by us. Be careful not to overwrite any existing code.

Save your file by clicking Update File

After pasting the script, click on the 'Update File' button to save your changes. This action will apply the script to your entire website.

Did this answer your question?