- Added a lightbox feature for gallery images, allowing users to view photos in a modal with navigation controls. - Updated the SVG sprite to include inline styles for better accessibility. - Increased CSS specificity by doubling the `.vc-app` class to ensure styles override Astra theme defaults. - Introduced new shortcodes for bus tours, about section, and articles in the VC_Sections class. - Improved the handling of featured images in the single tour template for sharper display. - Updated version number to 1.8.15.
Hop On Hop Off — Astra Child Theme (header & footer)
This child theme replaces Astra's default header and footer with the
"Hop On Hop Off" design (the same look as new front/index.html), while leaving
the rest of Astra untouched. It pairs with the Viator Collector plugin, which
styles the page content (listing / single / homepage sections).
What it does
- Disables Astra's header/footer markup and renders custom ones via the
astra_header/astra_footerhooks. - Loads the design CSS scoped to
.hoho(assets/chrome.css) so it can't collide with Astra or other plugins. - Prints the SVG icon sprite site-wide (reusing the plugin's copy when active).
- Header nav is a real WordPress menu (with a Tours dropdown); footer columns, logo, socials and copyright are dynamic.
Install (step by step)
- Astra must be installed. Appearance → Themes → make sure the Astra parent theme is present (it can stay inactive; the child needs it as a base).
- Copy this folder
astra-child-hoponhopoff/intowp-content/themes/on your site. - Activate it: Appearance → Themes → Hop On Hop Off (Astra Child) → Activate.
- Create the menus: Appearance → Menus. Create and assign menus to these
locations (Manage Locations tab):
- HoHo — Header Menu → your top nav. To get the Tours dropdown, add a top-level item named "Tours" and drag destination/tour links underneath it (indented) as sub-items.
- HoHo — Footer: Quick Access
- HoHo — Footer: Tours
- HoHo — Footer: User Account (Footer columns with no assigned menu simply render their heading only.)
- Logo (optional): Appearance → Customize → Site Identity → Select Logo. If none is set, the bundled "Hop On Hop Off" SVG wordmark is used.
- Social links (optional): they default to
#. Set real URLs with a snippet in this theme'sfunctions.php:add_filter( 'hoho_socials', function ( $s ) { $s['instagram'] = 'https://instagram.com/yourpage'; $s['facebook'] = 'https://facebook.com/yourpage'; $s['whatsapp'] = 'https://wa.me/…'; $s['telegram'] = 'https://t.me/…'; return $s; } ); - Footer blurb & support link (optional):
add_filter( 'hoho_footer_about', fn() => 'Your footer paragraph.' ); add_filter( 'hoho_support_url', fn() => 'https://example.com/contact' );
Header behavior
The header is transparent and overlays a full-bleed hero (homepage, and the
plugin's listing/single pages), then turns solid on scroll — exactly like the
mockup. On pages that have no hero, chrome.js adds .is-solid, so the
header renders as a solid, sticky bar that stays readable and doesn't cover
content.
If on your site the transparent overlay ever sits wrong on a hero page (theme
wrappers differ between setups), force the solid style everywhere by changing the
top of assets/chrome.js so it always adds is-solid, or add this CSS:
.hoho .site-header { position: sticky; inset-block-start: 0;
background: rgba(0,0,0,.85); backdrop-filter: blur(12px); }
Regenerating the CSS
assets/chrome.css is generated from the design source with the plugin's scoper:
VC_SCOPE=.hoho node ../viator-collector/build/scope-css.js "../new front/css/style.css" assets/chrome.css
Notes
- Requires the Astra parent theme. Tested against Astra's
astra_header_markup/astra_footer_markuphooks; if a future Astra version renames those, update theremove_action()calls infunctions.php. - Icons come from
assets/sprite.svg(<use href="#i-…">). When the Viator Collector plugin is active, its identical sprite is reused to avoid duplication.