• Threads
  • Categories
  • Users
  • GitHub
  • Documentation
  • Discord
  • forum
  • group
  • search
  • chevron_right Threads
  • label Dev Development

How to edit the Header and Footer files?

Rotense
Sept. 6, 2018
chat_bubble_outline 3
  • link
    Rotense
    Members 35 posts
    Sept. 6, 2018, 6 p.m. Sept. 6, 2018, 6 p.m.
    link

    I need to edit the Header files but I was unable to find them. As no files was seen in /themes/templates/ Thanks in advance.

    rzashakeri likes this.

    favorite 1

  • link
    rafalp
    Project Lead 1637 posts
    Sept. 7, 2018, 6:36 p.m. Sept. 7, 2018, 6:36 p.m.
    link

    To customize footer, create the misago/footer.html file in /theme/templates/. This will make Misago use your file instead of default one. For reference, here is how default footer template looks like.

    Header file has to be customized twice: first in HTML templates, and then by forking JavaScript application, so I am not sure if you really want to do that, unless you want to customize the black bar with logo, then you can do it by creating misago/navbar.html with your own version of this file. ;)

    rzashakeri and Rotense like this.

    favorite 2

  • link
    bikfoot
    Members 7 posts
    Dec. 23, 2020, 12:50 a.m. Dec. 23, 2020, 12:50 a.m.
    link
    @rafalp has written:

    To customize footer, create the misago/footer.html file in /theme/templates/. This will make Misago use your file instead of default one. For reference, here is how default footer template looks like.

    Header file has to be customized twice: first in HTML templates, and then by forking JavaScript application, so I am not sure if you really want to do that, unless you want to customize the black bar with logo, then you can do it by creating misago/navbar.html with your own version of this file. ;)

    Hey, I've tried this and it doesn't seem to work.

    Thanks

  • link
    rafalp
    Project Lead 1637 posts
    Dec. 23, 2020, 1:07 a.m. Dec. 23, 2020, 1:07 a.m.
    link

    Did you create misago directory within the theme/templates and restart Misago docker after putting your file in theme/templates/misago?

There are no more posts in this thread.

  • This site uses cookies to gather statistical data for use in traffic analysis. Header photo by Joanna Malinowska.
  • GitHub
  • Documentation
  • Discord
  • Terms of service
  • Privacy policy
powered by misago