giansi / gravstrap-theme

Gravstrap Theme helps you to start a new Grav CMS site with Bootstrap support and several ready to use modules. It is also perfect to start a new Bootstrap custom theme, to create your unique design.
MIT License
7 stars 12 forks source link

How to use company logo, instead of simply text name i upper left. #32

Open novaram opened 7 years ago

novaram commented 7 years ago

I would like to know how to add company logo instead of brand_text="novaram"

Can anyone help me with that? Thx

Kaepsele commented 7 years ago

I have the same question...

peterdoherty01 commented 7 years ago

same here

peterdoherty01 commented 7 years ago

I made progress with this one. Go to user\plugins\gravstrap\templates\bootstrap in your directory and inspect line 11. This is where the template creates the HTML for navbar image. As a test I inserted <img src="/images/mylogo.png" alt="logo missing"> before the </a>

image

peterdoherty01 commented 7 years ago

There is code mentioned if brand_image is not null i am trying to use brand_image= path of my logo to see if that works

dizzibizzi commented 6 years ago

Hi, everybody.

I could get the image showing, but only by hardcoding an image tag, just as peter-doherty suggested first.

But how can I use the provided brand_image attribute? With any path I set, nothing gets inserted inside the corresponding a-tag!?!? Somehow the if-clause seems not to be working ...

Or maybe I am passing the image path wrong!? I tried brand_image="logo.png" as well as brand_image="/images/logo.png".

Any help appreciated!