Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Struggling to get the menu underneath an image

Started by Norma White 8 years ago · 0 replies · 712 views
8 years ago

I have a site that is working quite nicely under grav + gantry. It is however quite cumbersome and limiting, so I am trying to convert it to twig using grav with quark v 1.4.5.

The site can be seen at www.nhbpeterborough.com

My troubles begin with the header part. I would like to have an image displayed above the menu.

I have tried altering base.html.twig thus

<body id="top" class="{% block body_classes %}{{ body_classes }}{% endblock %}">
<div id="page-wrapper">
{% block header %}
<section id="header" class="section">
<section class="container {{ grid_size }}">
<nav class="navbar">
<section class="navbar-section logo">
<img src = "{{ base_url_relative }}/user/images/{{page.header.content.header}}.png" >
</section>
<section class="navbar-section">

TWIG
                    <nav class="dropmenu animated">
                        {% block header_navigation %}
                    {% include 'partials/navigation.html.twig' %}
                        {% endblock %}
                    </nav>

ETC.
Different pages have an image of different heights - the image name is specified in front matter.

I do not know how to find grid-size or where to find theme variables.

I do not know how to find the value of grid_size.
I suspect the flex things in classes navbar and navbar section.

Is there a simple solution?
Thanks
Norma

Suggested topics

Topic Participants Replies Views Activity
Themes & Styling · by MarkP, 1 day ago
2 53 6 hours ago
Themes & Styling · by TomW, 19 hours ago
0 29 19 hours ago
Themes & Styling · by themetman, 1 week ago
1 131 5 days ago
Themes & Styling · by AH, 3 weeks ago
1 245 6 days ago
Themes & Styling · by Bruno, 4 years ago
6 1419 6 days ago