Jump to content

New custom hook not displayed in the backend (1.7)


Recommended Posts

First time with PrestaShop, so I'm not sure I'm doing it right.

I have registrated a new custom hook in the theme.yml file like this:

- name: displayMyCustomHook
        title: displayMyCustomHook
        description: Display my custom hook

Inside that hook I want to display the search bar. So the header.tpl have this code:

{block name='header_search'}
  <div class="header_search">
    {hook h='displayMyCustomHook'}
  </div>
{/block}

But, when going to Design > Positions in the backend, my custom hook is not displayed in the dropdown menu "Transplant to".

What am I doing wrong? Is this possible?

/Magnus

  • Like 1
Link to comment
Share on other sites

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...