Fix navbar across all pages: add nav include, fonts, active state, spacing, stats, error pages
- Add nav.php include to 5 missing pages (cost-calculator, thank-you, 403, 404, 500)
- Add ErrorDocument directives to .htaccess for custom 403/404/500 pages
- Fix bogus accuracy stats (homepage, web-scraping, location pages)
- Fix invisible CTA buttons on property and financial service pages
- Add Google Fonts (Roboto Slab + Lato) to all pages missing it (tools, blog articles, error pages)
- Add active nav link highlighting (teal underline for current page)
- Improve footer contrast to WCAG AA, equal-height cards, mobile text scaling
- Consistent navbar-to-content spacing across all pages
- Bump cache version to v1.1.3
2026-02-11 07:15:11 +00:00
|
|
|
<?php
|
|
|
|
|
$current_path = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
|
|
|
|
|
$current_path = rtrim($current_path, '/');
|
|
|
|
|
if ($current_path === '') $current_path = '/';
|
|
|
|
|
|
|
|
|
|
function nav_active($href, $current) {
|
|
|
|
|
// Exact match
|
|
|
|
|
if ($href === $current) return ' active';
|
|
|
|
|
// Section match (e.g. /tools/ matches /tools/cost-calculator)
|
|
|
|
|
$href_trimmed = rtrim($href, '/');
|
|
|
|
|
if ($href_trimmed !== '' && $href_trimmed !== '/' && strpos($current, $href_trimmed) === 0) return ' active';
|
|
|
|
|
return '';
|
|
|
|
|
}
|
|
|
|
|
?>
|
2026-02-10 22:21:16 +00:00
|
|
|
<!-- Navigation -->
|
2026-02-22 11:11:40 +00:00
|
|
|
<nav class="navbar" id="navbar" aria-label="Main navigation">
|
2026-02-10 22:21:16 +00:00
|
|
|
<div class="nav-container">
|
|
|
|
|
<div class="nav-logo">
|
|
|
|
|
<a href="/">
|
SEO audit fixes: H1 keyword, schema, robots.txt, llms.txt, sitemap, alt texts, logo
- H1: add primary keyword (AI Automation for UK Law Firms & Consultancies)
- Hero subtitle: replace old scraping copy with accurate consultancy copy
- WebPage schema name aligned with title tag
- Organization schema: add telephone, fix sameAs (remove broken social URLs)
- robots.txt: add 5 missing AI crawlers (Applebot-Extended, Bytespider, CCBot, FacebookBot, Amazonbot)
- llms.txt: add Key Pages section with 7 linked pages
- sitemap.xml: add 4 legal pages (privacy, terms, cookie, gdpr)
- Icon alt texts: simplify 6 keyword-stuffed verbose alts
- Nav logo: add width/height dimensions, switch to loading=eager
2026-03-22 03:14:52 +00:00
|
|
|
<img src="/assets/images/ukaiautomation-logo.svg" alt="UK AI Automation" class="logo" width="200" height="56" loading="eager">
|
2026-02-10 22:21:16 +00:00
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="nav-menu" id="nav-menu">
|
Fix navbar across all pages: add nav include, fonts, active state, spacing, stats, error pages
- Add nav.php include to 5 missing pages (cost-calculator, thank-you, 403, 404, 500)
- Add ErrorDocument directives to .htaccess for custom 403/404/500 pages
- Fix bogus accuracy stats (homepage, web-scraping, location pages)
- Fix invisible CTA buttons on property and financial service pages
- Add Google Fonts (Roboto Slab + Lato) to all pages missing it (tools, blog articles, error pages)
- Add active nav link highlighting (teal underline for current page)
- Improve footer contrast to WCAG AA, equal-height cards, mobile text scaling
- Consistent navbar-to-content spacing across all pages
- Bump cache version to v1.1.3
2026-02-11 07:15:11 +00:00
|
|
|
<a href="/" class="nav-link<?php echo $current_path === '/' ? ' active' : ''; ?>">Home</a>
|
|
|
|
|
<a href="/#services" class="nav-link<?php echo (strpos($current_path, '/services') === 0) ? ' active' : ''; ?>">Services</a>
|
2026-03-21 09:48:46 +00:00
|
|
|
<a href="/case-studies" class="nav-link<?php echo nav_active('/case-studies', $current_path); ?>">Case Studies</a>
|
Fix navbar across all pages: add nav include, fonts, active state, spacing, stats, error pages
- Add nav.php include to 5 missing pages (cost-calculator, thank-you, 403, 404, 500)
- Add ErrorDocument directives to .htaccess for custom 403/404/500 pages
- Fix bogus accuracy stats (homepage, web-scraping, location pages)
- Fix invisible CTA buttons on property and financial service pages
- Add Google Fonts (Roboto Slab + Lato) to all pages missing it (tools, blog articles, error pages)
- Add active nav link highlighting (teal underline for current page)
- Improve footer contrast to WCAG AA, equal-height cards, mobile text scaling
- Consistent navbar-to-content spacing across all pages
- Bump cache version to v1.1.3
2026-02-11 07:15:11 +00:00
|
|
|
<a href="/about" class="nav-link<?php echo nav_active('/about', $current_path); ?>">About</a>
|
2026-03-21 09:48:46 +00:00
|
|
|
|
Fix navbar across all pages: add nav include, fonts, active state, spacing, stats, error pages
- Add nav.php include to 5 missing pages (cost-calculator, thank-you, 403, 404, 500)
- Add ErrorDocument directives to .htaccess for custom 403/404/500 pages
- Fix bogus accuracy stats (homepage, web-scraping, location pages)
- Fix invisible CTA buttons on property and financial service pages
- Add Google Fonts (Roboto Slab + Lato) to all pages missing it (tools, blog articles, error pages)
- Add active nav link highlighting (teal underline for current page)
- Improve footer contrast to WCAG AA, equal-height cards, mobile text scaling
- Consistent navbar-to-content spacing across all pages
- Bump cache version to v1.1.3
2026-02-11 07:15:11 +00:00
|
|
|
<a href="/blog/" class="nav-link<?php echo nav_active('/blog', $current_path); ?>">Blog</a>
|
2026-02-10 22:21:16 +00:00
|
|
|
<a href="/#contact" class="nav-link">Contact</a>
|
2026-03-21 09:48:46 +00:00
|
|
|
<a href="/quote" class="nav-link cta-button<?php echo nav_active('/quote', $current_path); ?>">Get a Quote</a>
|
2026-02-10 22:21:16 +00:00
|
|
|
</div>
|
|
|
|
|
<button class="nav-toggle" id="nav-toggle" aria-expanded="false" aria-controls="nav-menu" aria-label="Toggle navigation menu">
|
|
|
|
|
<span class="bar"></span>
|
|
|
|
|
<span class="bar"></span>
|
|
|
|
|
<span class="bar"></span>
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
Fix navbar across all pages: add nav include, fonts, active state, spacing, stats, error pages
- Add nav.php include to 5 missing pages (cost-calculator, thank-you, 403, 404, 500)
- Add ErrorDocument directives to .htaccess for custom 403/404/500 pages
- Fix bogus accuracy stats (homepage, web-scraping, location pages)
- Fix invisible CTA buttons on property and financial service pages
- Add Google Fonts (Roboto Slab + Lato) to all pages missing it (tools, blog articles, error pages)
- Add active nav link highlighting (teal underline for current page)
- Improve footer contrast to WCAG AA, equal-height cards, mobile text scaling
- Consistent navbar-to-content spacing across all pages
- Bump cache version to v1.1.3
2026-02-11 07:15:11 +00:00
|
|
|
</nav>
|