Skip to content Skip to sidebar Skip to footer

How to Upload Google Html File to Shopify Website

Oftentimes, you may run into that some third-political party sites ask for uploading an HTML file to the root directory of your Shopify store. This is mainly for verification purposes.

If you are wondering how to upload an HTML file to the root directory of your Shopify store, we got you covered. Here's what you will learn from this article:

how-to-upload-html-file-to-shopify In terms of Shopify stores, your HTML files are actually liquid files. There aren't actual HTML files since it is a Shopify theme.

Depending on your Shopify theme, you lot can access or edit your HTML files from:

  • theme.liquid : This is where you can edit the header and the footer.
  • templates/*.liquid : All liquid files located here are the chief templates for different pages.
  • snippets/*.liquid : Here are the reusable code snippets.
  • sections/*.liquid : The files here are usually the ones that are used on the homepage or other pages.

You lot can go through these files to make changes, depending on the specific change you lot desire to make.

Note that these files may be used on multiply pages. There is a adventure that if you brand a alter in 1 of them, it may affect other pages as well.

Every bit nosotros mentioned earlier, you need to HTML files to the root directory for the verification purposes of a third-party site such as Facebook, Google Analytics, Google Webmaster, and Pinterest. These third-party services require you to verify your domain to make sure you lot are the correct owner of your Shopify store.

You need to disable the password protection of your shop to verify your domain. If you haven't launched your store yet, disable countersign protection and enable information technology back again later on verifying your domain.

To disable password protection in Shopify, follow these steps:

  • Head over to your Shopify admin panel, become to Online Store > Preferences.
  • Look for the Password page section, uncheck the Enable password folio option.
  • Tap Save.

To upload an HTML file to Shopify store and verify your domain:

1. Go to the tertiary party and cull the selection to verify using a meta tag verification method. For instance, in Google Webmasters, you'll need to select the HTML tag option push on the Alternate methods tab.

2. Re-create the full meta tag to your clipboard. Make sure to select all of it, including the < and >.

iii. Go to the Shopify app and tap Shop.

4. See the Sales channels section and click Online Store > Manage themes.

v. Find the theme you want to edit. Click Actions > Edit code.

6. Type in theme.liquid in the layout search box to open the file in the online code editor.

7. Paste the meta tag you copied from the third-political party service direct below the opening tag:

paste third-party verification tag

8. Click on the Relieve button.

9. Complete the remaining verification steps on the third-political party site.

Step 1. Choose using the meta tag verification method.

Get to Facebook Business Manager, and then Business Settings > Brand safety > Domains and add the URL you want to verify.

Step two. Re-create total meta tag to your clipboard, including the < and > with cmd + c on a Mac or ctrl + c on a PC. For example:

Step iii. Open your Shopify admin panel, and then go to the Online Shop section > Themes.

Pace iv. Select the theme you want to adapt and tap Actions > Edit code.

Step five. From the Layout department, click theme.liquid to open the file in the online code editor. This is where your <header> is.

Step 6. Paste the meta tag you copied on a blank line correct nether the opening tag or only before the first tag.

Step vii. Click on Save.

This way, yous tin can upload an HTML file to Shopify to verify your domain to Facebook.

one. Log in to your Google Search Console account.

ii. Select verification via meta tag or HTML file option. You can find this option under the Alternate Methods department.

3. Copy the total HTML tag to your clipboard, containing tag.

4. Head over to your Shopify admin panel. Get to Online Store > Themes and select the theme you lot currently apply.

5. Click on Deportment > Edit Code.

6. Notice the Layout section and under that select the theme.liquid file to open the lawmaking editor. You lot can blazon in theme.liquid in the search box to find information technology.

7. Paste the copied meta tag under the tag. (You demand to make sure you copy and paste the entire HTML tag only exactly every bit it is on Google Search Console.)

8. Tap Save.

nine. Return to Google Search Panel. Click Verify to verify the verification process. Once it is consummate, you can see the data collected about your domain on Google Search Console.

Recommended manufactures for Shopify store owners:

  • 10 Best Upsell Apps For Shopify Compared
  • Shopify SEO Checklist: How to Rank Your Store #one
  • Shopify Popup Architect Tool for Free

yarbroughtherignin.blogspot.com

Source: https://popupsmart.com/blog/upload-html-file-to-shopify

Post a Comment for "How to Upload Google Html File to Shopify Website"