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.

Themes & Styling

Replace logo using Quark child theme

Started by Joanne Masterson 7 years ago · 2 replies · 3705 views
7 years ago

Hello
I have been reading through every post I can find on replacing the logo in the Quark theme.

It's recommended to do this in a child theme, so I have one set up and working according to the documentation on theme inheritance here.

Do I do something to:
user/themes/mytheme/templates/partials/base.html.twig

I am using a .png logo and not an .svg file.

What do I do now in the child folder to change the logo?

The one I want to add is a little larger than the Quark Grav logo so advice appreciated.

Thank you.

7 years ago

@jmaster To replace the default logo provided by Quark, you could do the following in you own child theme's folder:

  • Go to "user/themes/your-child-theme"
  • Create folder "/images/logo"
  • Copy your logo inside the new folder
  • Edit "your-child-theme.yaml" and add the following variable:
    TXT
    custom_logo:
     - name: your-child-logo.png
    

Open your website in the browser and you should see your own logo. The size of the logo can be altered to your liking using css.

6 years ago

Hi pamtbaau,
I have performed these tasks, modified the "quark.yaml" file as indicated, I have deleted the Firefox cache, but I still get the original Grav logo.
Do you have another idea, or do you need a copy of some of my files ?

Suggested topics

Topic Participants Replies Views Activity
Themes & Styling · by Pedro M, 2 months ago
4 195 2 months ago
Themes & Styling · by Ian, 2 months ago
3 91 2 months ago
Themes & Styling · by Norbert, 2 years ago
11 451 3 months ago
Themes & Styling · by Lukáš Findeis, 3 months ago
0 45 3 months ago
Themes & Styling · by Sebadamus, 4 months ago
5 125 3 months ago