block extra-head doesn't propagate to all pages

Issue #896 invalid
Former user created an issue

If I copy "shop/templates/shop/base.html" into my project and edit it to add {% block extra-head %} then use it to add (for example) a Favicon, it shows only on the home page. On other pages, when I do "view source", it's not there. There needs to be one place where extra-heads can be added and appear on every page.

Mark Rainess

Comments (2)

  1. Anonymous

    That's because the home page doesn't redefine the contents of the {% block extra-head %} but other pages like category and product pages do.

    The easiest thing for you to do is probably add the favicon into the top base.html. Otherwise, you need to change all the individual page templates to include block.super inside the {% block extra-head %} so the parent's content doesn't get overwritten.

  2. Log in to comment