[Prestashop theme] How to change Color of Address Bar in Mobile Browser for a Prestashop theme?

[Prestashop theme] How to change Color of Address Bar in Mobile Browser for a Prestashop theme?

Address Bar of browser is a placement where you enter a URL to open a website. Sometime you want change color of address bar  to match your brand’s color like this picture

change-address-bar

So How to change Color of Address Bar in Mobile Browser for a Prestashop theme?

Step 1: Go to header section of your Prestashop theme.

  • In Prestashop 1.6, open a file PRESTASHOP_ROOT\themes\YOUR_THEME\header.tpl
    Add this line code (change #673ab7 to your color)

<meta name=”theme-color” content=”#673ab7″>

After this line

<meta charset=”utf-8″ />

change-address-bar-2

  • In Prestashop 1.7, open file PRESTASHOP_ROOT\themes\YOUR_THEME\templates\_partials\head.tpl

Add this code

<meta name=”theme-color” content=”#673ab7″>

After this line

 <meta charset=”utf-8″>

change-address-bar-3

Step 2: Download manifest.json and change it to your information, then upload it into your PRESTASHOP_ROOT directory.

manifest.json

Example: https://www.purplle.com/manifest.json

Read more all params of manifest.json file from Google Dev: https://developer.mozilla.org/en-US/docs/Web/Manifest

Step 3: Everything is done, you can open your Prestashop website in Chrome browser of an Android device to view result.

The layout like this

change-address-bar

 

Related Articles

2 Comments

  1. vuoshino May 17, 2020 at 12:07 am

    Hello, i added the line to the header and the manifest to the root of prestashop but doesnt works… any suggest?

    • Tony January 11, 2021 at 10:07 am

      for your issue:
      Please open a ticket https://taydoapp.com/helpdesk
      and give us your admin + ftp account
      we can check this issue for help you.
      Do not worry, if you need any our support. We are always ready to free work.
      Thanks.

Leave a reply

You must be logged in to post a comment.