Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

How to remove the logo and footer of Quark?

Solved by pamtbaau View solution

Started by Bendik 8 years ago · 6 replies · 9894 views
8 years ago

Hello, how can I remove the Grav logo?
I am using the default Grav theme :)

8 years ago Solution

@Bendik

If you want to make changes to a theme, the best thing you could do, is making an inherited theme based on Quark and make changes in the derived theme. If you do not, every time the Grav team releases a new version of Quark you will lose your changes.

Remove logo:

  • Copy file 'user/themes/quark/templates/partials/base.html.twig' into your own theme's folder 'user/themes/mytheme/templates/partials'.
  • In your own theme's 'base.html.twig' remove the following line:
    TWIG
    {% include 'partials/logo.html.twig' %}
    
  • And also remove the following line:
    TWIG
    {% include 'partials/logo.html.twig' with {mobile: true} %}
    

    I left the surrounding <section> and <div> elements in the template, otherwise the navigation bar will not align properly.

Remove footer:

  • In your own theme's 'base.html.twig' remove the lines:

    HTML
    <section id="footer" class="section bg-gray">
    <section class="container {{ grid_size }}">
       <p><a href="http://getgrav.org">Grav</a> was <i class="fa fa-code"></i> with <i class="fa fa-heart-o pulse "></i> by <a href="https://trilby.media">Trilby Media</a>.</p>
    </section>
    </section> 
    
👍 1
8 years ago

Why does it have to be so complicated? So I have to make an entirely new template just to replace the logo?

8 years ago

@DonaldTrump The original poster wanted to remove the logo instead of replacing it and wanted to remove the footer. Therefor the original template had to be customised. When customising original code that might receive updates, using inherited themes prevents the loss of customisations.

NB. I have updated the title to better mach the intent of the OP.

last edited 11/22/18 by pamtbaau
7 years ago

I created the folder you described, copied the twig file, removed to two lines you directed to remove for the logo. This did not work. Should The logo is still there.

The footer section as you have written it, does not exist in the base.html.twig. There is only this...
{% block footer %}
{% include 'partials/footer.html.twig' %}
{% endblock %}

7 years ago

as i understand with GRav, changing color of a text : need to change template etc etc ...
the White elephant !

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
2 64 18 hours ago
Support · by Anna, 3 days ago
2 68 20 hours ago
Support · by Justin Young, 21 hours ago
1 35 21 hours ago
Support · by Duc , 1 week ago
2 71 6 days ago
Support · by Colin Hume, 1 week ago
2 63 6 days ago