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.

General

Fixed navigator removal

Started by Delon 6 years ago · 6 replies · 664 views
6 years ago

Hi guys

I'm using an inherited theme that I'm customising. When I used the admin tool to to disable the fixed header it doesnt seem to work.

Is there another way I can do this?

Thanks very much.

6 years ago

@daredevil, If property header-fixed is set correctly, it works fine...

Did you set the property in Admin on you inherited theme?

6 years ago

Hi there

Yes, it doesn't seem to take effect.

6 years ago

@daredevil, Would you mind sharing:

  • The name of the base theme you are using, eg. Quark.
  • The contents of 'user/config/themes/mytheme.yaml', where 'mytheme' is the name of your inheriting theme.
  • The contents of 'user/themes/mytheme/mytheme.yaml'
  • From 'user/config/system.yaml', the following setting:
    YAML
    pages:
    theme: mytheme
    
  • From the generated HTML, the classes of <body>
last edited 08/17/20 by pamtbaau
6 years ago

Sure

I'm using quark as a base

YAML
---
streams:
  schemes:
    theme:
      type: ReadOnlyStream
      prefixes:
        '': [user/themes/streamcapital-inherit, user/themes/quark]
production-mode: true
grid-size: grid-lg
header-fixed: false
header-animated: true
header-dark: true
header-transparent: true
sticky-footer: true
blog-page: /blog
spectre:
  exp: false
  icons: false
custom_logo:
  user/themes/streamcapital-inherit/images/logo/web-bw-logo-color-3.png:
    name: web-bw-logo-color-3.png
    type: image/png
    size: 18925
    path: user/themes/streamcapital-inherit/images/logo/web-bw-logo-color-3.png
custom_logo_mobile:
  user/themes/streamcapital-inherit/images/logo/web-bw-logo-color-3.png:
    name: web-bw-logo-color-3.png
    type: image/png
    size: 18925
    path: user/themes/streamcapital-inherit/images/logo/web-bw-logo-color-3.png
---

user/themes/mytheme/mytheme.yaml

YAML
---
streams:
 schemes:
   theme:
     type: ReadOnlyStream
     prefixes:
       '':
         - user/themes/streamcapital-inherit
         - user/themes/quark
---

user/config/system.yaml

YAML
---
pages:
  theme: streamcapital-inherit
  order:
    by: default
    dir: asc
---
6 years ago

These are the generated classes of the body

The first code snippet above is ‘user/config/themes/mytheme.yaml’

The other two I've added a label at the bottom of each

TXT
class="modular header-image fullwidth title-h1h2 header-transparent header-fixed header-animated  header-dark sticky-footer"
6 years ago

@daredevil, I cannot reproduce your issue when following the following steps:

  • Create inherited theme using CLI from Quark
  • Open config of 'Mytheme' in Admin and set 'Fixed header' to 'disabled' and save
  • Open website and navigation bar is no longer fixed

Suggested topics

Topic Participants Replies Views Activity
General · by Jerry Hunt, 4 days ago
2 99 15 hours ago
General · by pamtbaau, 21 hours ago
1 63 20 hours ago
General · by Andy Miller, 1 day ago
0 48 1 day ago
General · by Marcel, 12 months ago
6 357 5 days ago
General · by Duc , 6 days ago
3 45 6 days ago