W3CSS Theme logo
Anhur - W3CSS Sub-Theme

Anhur is a sub-theme of W3CSS Theme. On wide screens it puts the main menu in a column at the left with the page content beside it. Below 992 pixels the menu moves into a side panel.

Choose it when you want a permanent side menu on desktop screens and a compact header on small ones.

Start here

See it working

The screenshot shows the W3CSS Theme demo site. The live demo shows Anhur.

W3CSS Theme demo site in light and dark modes

What Anhur adds to W3CSS Theme

  • Menu column: from 992 pixels up, the menu in "Primary Menu Vertical" fills a 250 pixel column at the left and the page content sits to its right. The whole layout is capped at 1600 pixels wide. The column appears only when the region holds a block.
  • Small screens: below 992 pixels the column becomes a hidden menu. A button at the left of the header opens it as a side panel, and the header stays at the top of the window while the page scrolls.
  • Header: three parts: menu button, branding, search button. The buttons show only when their regions hold blocks.
  • Fixed Search Bar: a new region. The search button opens its blocks in a panel that slides down from the top. Opening it moves focus into the search field and closes the side menu; the close button, the Escape key or a click outside closes it and returns focus. While closed, the panel is inert, so keyboard focus cannot reach it.
  • Primary Menu: still available. A menu placed there shows as the base theme bar below the header. None is placed by default.
  • Footer: the footer regions show on the front page only. The bottom regions, the footer menu and the copyright line show on every page, inside one footer.
  • Defaults: the credit link is off and the copyright text is "Copyright %year% - All Rights Reserved".
  • Order in the page: inside the page area the order is header, the "Primary Menu" bar, welcome text, highlighted, top (front page only), page title, main content and page bottom.
  • Default blocks: the theme installs 13 optional block placements, including the main and account menus in "Primary Menu Vertical", search in "Fixed Search Bar" and branding in "Header".
  • Motion: the stylesheet has "prefers-reduced-motion" rules.
  • CSS layers: the Anhur rules sit in the w3css.subtheme and w3css.locked layers. A deprecated alias keeps the 2.x script name anhurThemeBehavior working; the current name is anhurSearchSlide.
  • Starter sub-theme: "Anhur Sub-theme" (anhur_subtheme) is an empty sub-theme of Anhur. Copy and rename it to start your own.

Color schemes, regions and layouts that differ

Anhur adds the region "Fixed Search Bar" to the 22 regions of W3CSS Theme. Its default color scheme is "Harbor Blue". The heading and focus colors in Anhur change only while that scheme is active. The two-column layout with the 250 pixel menu column is its own.

What it inherits from W3CSS Theme

W3CSS Theme supplies the settings form, the color schemes and every region except "Fixed Search Bar". See the W3CSS Theme project page for those.

Installation: get started in 3 steps

  1. Install the sub-theme with Composer. It requires the base theme and pulls it in:
    composer require drupal/anhur
  2. Open Appearance. Make sure W3CSS Theme is installed, then select "Install and set as default" for Anhur.
  3. Open the theme settings at Appearance → Settings → Anhur. It is the W3CSS Theme settings form: pick a color scheme under "Predefined Color Themes". Anhur starts with "Harbor Blue".

Requirements

  • Drupal 11.3 or later, including Drupal 12
  • W3CSS Theme 3.0 or later

Support and maintenance

Questions, ideas, and bug reports are welcome. Please use this project’s issue queue so discussions and solutions remain available to the Drupal community.

Maintainers monitor issues, but response times depend on availability.

Flash Web Center, LLC. Drupal sites, themes and modules. Built and maintained by Alaa Haddad.

Developed and maintained by Alaa Haddad of Flash Web Center, LLC.

AI disclosure: AI tools assisted with drafting and reviewing this project description. The maintainer verified the final content against the project source.

Supporting organizations: 
Drupal development
Drupal hosting and maintenance

Project information

  • caution Minimally maintained
    Maintainers monitor issues, but fast responses are not guaranteed.
  • caution Maintenance fixes only
    Considered feature-complete by its maintainers.
  • chart icon30 sites report using this theme
  • Created by flashwebcenter on , updated
  • shieldStable releases for this project are covered by the security advisory policy.
    Look for the shield icon below.

Releases