cancel
Showing results for 
Search instead for 
Did you mean: 

logo.phtml are not loading

SOLVED

logo.phtml are not loading

Hello,

 

I overwrite the file:

app/design/frontend/company/v2/Magento_Theme/templates/html/header/logo.phtml

 

But it seems the file would not be loading!

 

How can I check, if this file is includes in theme and active?

 

Thank you!

1 ACCEPTED SOLUTION

Accepted Solutions

Re: logo.phtml are not loading

Hey @hanhoe 

 

Please enable the template path hints and check again.

 

There are two methods to do so:

  1. Via Admin Panel
    1. Log in to Admin Panel
    2. Navigate to Stores > Configuration > Advanced > Developer
    3. Expand “Debug”  and set YES to “Enable Template Path Hints for StoreFront
    4. Also, under “Developer Client Restrictions, enter the IP address in the field “Allowed IPs” for which you want to enable the template path hints.
    5. Save the configuration.
  2. Via Command Line

    Connect to your store with SSH terminal, and go to the root directory of your Magento 2 store.

    Enable template path hints for frontend:

    php bin/magento dev:template-hints:enable

    Disable template path hints for frontend:

    bin/magento dev:template-hints:disable

    Clean and flush cache:

    bin/magento cache:clean
    bin/magento cache:flush

    Note: You can’t enable or disable template path hints for the admin using this method.

Hope it helps.

Problem solved? Click Kudos and "Accept as Solution".
200+ Magento 2 Extensions for Enhanced Shopping Experience.

View solution in original post

1 REPLY 1

Re: logo.phtml are not loading

Hey @hanhoe 

 

Please enable the template path hints and check again.

 

There are two methods to do so:

  1. Via Admin Panel
    1. Log in to Admin Panel
    2. Navigate to Stores > Configuration > Advanced > Developer
    3. Expand “Debug”  and set YES to “Enable Template Path Hints for StoreFront
    4. Also, under “Developer Client Restrictions, enter the IP address in the field “Allowed IPs” for which you want to enable the template path hints.
    5. Save the configuration.
  2. Via Command Line

    Connect to your store with SSH terminal, and go to the root directory of your Magento 2 store.

    Enable template path hints for frontend:

    php bin/magento dev:template-hints:enable

    Disable template path hints for frontend:

    bin/magento dev:template-hints:disable

    Clean and flush cache:

    bin/magento cache:clean
    bin/magento cache:flush

    Note: You can’t enable or disable template path hints for the admin using this method.

Hope it helps.

Problem solved? Click Kudos and "Accept as Solution".
200+ Magento 2 Extensions for Enhanced Shopping Experience.