fix for nav bar
This commit is contained in:
parent
5a3a408ae4
commit
afe719ac93
@ -2431,7 +2431,7 @@ body.coaching-mvp-active header.wp-block-template-part .wp-block-group.alignwide
|
|||||||
width: min(calc(100% - (var(--coach-page-gutter) * 2)), 1200px) !important;
|
width: min(calc(100% - (var(--coach-page-gutter) * 2)), 1200px) !important;
|
||||||
max-width: 1200px !important;
|
max-width: 1200px !important;
|
||||||
display: grid !important;
|
display: grid !important;
|
||||||
grid-template-columns: auto 1fr;
|
grid-template-columns: auto minmax(0, 1fr) auto;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: clamp(1rem, 2vw, 2rem);
|
gap: clamp(1rem, 2vw, 2rem);
|
||||||
padding-top: 1rem !important;
|
padding-top: 1rem !important;
|
||||||
@ -2446,12 +2446,8 @@ body.coaching-mvp-active .wp-block-site-title a {
|
|||||||
letter-spacing: -.03em;
|
letter-spacing: -.03em;
|
||||||
color: var(--color-text) !important;
|
color: var(--color-text) !important;
|
||||||
}
|
}
|
||||||
body.coaching-mvp-active header.wp-block-template-part .wp-block-group.is-content-justification-right.is-nowrap {
|
|
||||||
min-width: 0;
|
|
||||||
display: flex !important;
|
|
||||||
justify-content: center !important;
|
|
||||||
}
|
|
||||||
body.coaching-mvp-active header.wp-block-template-part .wp-block-navigation {
|
body.coaching-mvp-active header.wp-block-template-part .wp-block-navigation {
|
||||||
|
min-width: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
justify-content: center !important;
|
justify-content: center !important;
|
||||||
}
|
}
|
||||||
@ -2499,8 +2495,14 @@ body.coaching-mvp-active .wp-block-navigation .current-menu-item > a::after,
|
|||||||
body.coaching-mvp-active .wp-block-navigation .current_page_item > a::after {
|
body.coaching-mvp-active .wp-block-navigation .current_page_item > a::after {
|
||||||
transform: scaleX(1);
|
transform: scaleX(1);
|
||||||
}
|
}
|
||||||
body.coaching-mvp-active .wp-block-navigation a[href$="/book-session/"] {
|
body.coaching-mvp-active header.wp-block-template-part .wp-block-buttons {
|
||||||
margin-left: clamp(.2rem, 1vw, .75rem);
|
margin: 0 !important;
|
||||||
|
justify-self: end;
|
||||||
|
}
|
||||||
|
body.coaching-mvp-active header.wp-block-template-part .wp-block-buttons .wp-block-button {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
body.coaching-mvp-active header.wp-block-template-part .wp-block-buttons .wp-block-button__link {
|
||||||
padding: .82rem 1.1rem !important;
|
padding: .82rem 1.1rem !important;
|
||||||
border-radius: 999px !important;
|
border-radius: 999px !important;
|
||||||
border: 1px solid rgba(17,24,39,.08) !important;
|
border: 1px solid rgba(17,24,39,.08) !important;
|
||||||
@ -2508,12 +2510,10 @@ body.coaching-mvp-active .wp-block-navigation a[href$="/book-session/"] {
|
|||||||
color: #1d1d1b !important;
|
color: #1d1d1b !important;
|
||||||
font-weight: 700 !important;
|
font-weight: 700 !important;
|
||||||
box-shadow: none !important;
|
box-shadow: none !important;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
body.coaching-mvp-active .wp-block-navigation a[href$="/book-session/"]::after {
|
body.coaching-mvp-active header.wp-block-template-part .wp-block-buttons .wp-block-button__link:hover,
|
||||||
display: none !important;
|
body.coaching-mvp-active header.wp-block-template-part .wp-block-buttons .wp-block-button__link:focus {
|
||||||
}
|
|
||||||
body.coaching-mvp-active .wp-block-navigation a[href$="/book-session/"]:hover,
|
|
||||||
body.coaching-mvp-active .wp-block-navigation a[href$="/book-session/"]:focus {
|
|
||||||
background: var(--color-brand-secondary) !important;
|
background: var(--color-brand-secondary) !important;
|
||||||
color: #111 !important;
|
color: #111 !important;
|
||||||
}
|
}
|
||||||
@ -2675,8 +2675,8 @@ body.coaching-mvp-active .coach-hero-note .coach-badge.dark {
|
|||||||
body.coaching-mvp-active .wp-block-navigation__container {
|
body.coaching-mvp-active .wp-block-navigation__container {
|
||||||
gap: .85rem !important;
|
gap: .85rem !important;
|
||||||
}
|
}
|
||||||
body.coaching-mvp-active .wp-block-navigation a[href$="/book-session/"] {
|
body.coaching-mvp-active header.wp-block-template-part .wp-block-buttons {
|
||||||
margin-left: 0;
|
justify-self: stretch;
|
||||||
}
|
}
|
||||||
body.coaching-mvp-active .coach-hero {
|
body.coaching-mvp-active .coach-hero {
|
||||||
border-radius: 0 !important;
|
border-radius: 0 !important;
|
||||||
@ -3300,14 +3300,12 @@ function coaching_mvp_seed_navigation($page_ids) {
|
|||||||
"<!-- wp:navigation-link {\"label\":\"Testimonials\",\"type\":\"page\",\"id\":%d,\"url\":\"/testimonials/\",\"kind\":\"post-type\"} /-->\n" .
|
"<!-- wp:navigation-link {\"label\":\"Testimonials\",\"type\":\"page\",\"id\":%d,\"url\":\"/testimonials/\",\"kind\":\"post-type\"} /-->\n" .
|
||||||
"<!-- wp:navigation-link {\"label\":\"About\",\"type\":\"page\",\"id\":%d,\"url\":\"/about/\",\"kind\":\"post-type\"} /-->\n" .
|
"<!-- wp:navigation-link {\"label\":\"About\",\"type\":\"page\",\"id\":%d,\"url\":\"/about/\",\"kind\":\"post-type\"} /-->\n" .
|
||||||
"<!-- wp:navigation-link {\"label\":\"Blog\",\"type\":\"page\",\"id\":%d,\"url\":\"/blog/\",\"kind\":\"post-type\"} /-->\n" .
|
"<!-- wp:navigation-link {\"label\":\"Blog\",\"type\":\"page\",\"id\":%d,\"url\":\"/blog/\",\"kind\":\"post-type\"} /-->\n" .
|
||||||
"<!-- wp:navigation-link {\"label\":\"Book Session\",\"type\":\"page\",\"id\":%d,\"url\":\"/book-session/\",\"kind\":\"post-type\"} /-->\n" .
|
|
||||||
"<!-- wp:navigation-link {\"label\":\"Contact\",\"type\":\"page\",\"id\":%d,\"url\":\"/contact/\",\"kind\":\"post-type\"} /-->",
|
"<!-- wp:navigation-link {\"label\":\"Contact\",\"type\":\"page\",\"id\":%d,\"url\":\"/contact/\",\"kind\":\"post-type\"} /-->",
|
||||||
$page_ids['home'],
|
$page_ids['home'],
|
||||||
$page_ids['services'],
|
$page_ids['services'],
|
||||||
$page_ids['testimonials'],
|
$page_ids['testimonials'],
|
||||||
$page_ids['about'],
|
$page_ids['about'],
|
||||||
$page_ids['blog'],
|
$page_ids['blog'],
|
||||||
$page_ids['book-session'],
|
|
||||||
$page_ids['contact']
|
$page_ids['contact']
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -11,6 +11,14 @@
|
|||||||
* @since Twenty Twenty-Five 1.0
|
* @since Twenty Twenty-Five 1.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
$home_page = get_page_by_path('home', OBJECT, 'page');
|
||||||
|
$services_page = get_page_by_path('services', OBJECT, 'page');
|
||||||
|
$testimonials_page = get_page_by_path('testimonials', OBJECT, 'page');
|
||||||
|
$about_page = get_page_by_path('about', OBJECT, 'page');
|
||||||
|
$blog_page = get_page_by_path('blog', OBJECT, 'page');
|
||||||
|
$contact_page = get_page_by_path('contact', OBJECT, 'page');
|
||||||
|
$book_session_page = get_page_by_path('book-session', OBJECT, 'page');
|
||||||
|
$book_session_url = $book_session_page ? get_permalink($book_session_page) : home_url('/book-session/');
|
||||||
?>
|
?>
|
||||||
<!-- wp:group {"align":"full","layout":{"type":"default"}} -->
|
<!-- wp:group {"align":"full","layout":{"type":"default"}} -->
|
||||||
<div class="wp-block-group alignfull">
|
<div class="wp-block-group alignfull">
|
||||||
@ -19,11 +27,35 @@
|
|||||||
<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"var:preset|spacing|30","bottom":"var:preset|spacing|30"}}},"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between"}} -->
|
<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"var:preset|spacing|30","bottom":"var:preset|spacing|30"}}},"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between"}} -->
|
||||||
<div class="wp-block-group alignwide" style="padding-top:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--30)">
|
<div class="wp-block-group alignwide" style="padding-top:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--30)">
|
||||||
<!-- wp:site-title {"level":0} /-->
|
<!-- wp:site-title {"level":0} /-->
|
||||||
<!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|10"}},"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"right"}} -->
|
|
||||||
<div class="wp-block-group">
|
<!-- wp:navigation {"overlayBackgroundColor":"base","overlayTextColor":"contrast","layout":{"type":"flex","justifyContent":"center","flexWrap":"wrap"}} -->
|
||||||
<!-- wp:navigation {"overlayBackgroundColor":"base","overlayTextColor":"contrast","layout":{"type":"flex","justifyContent":"right","flexWrap":"wrap"}} /-->
|
<?php if ($home_page) : ?>
|
||||||
|
<!-- wp:navigation-link {"label":"Home","type":"page","id":<?php echo (int) $home_page->ID; ?>,"url":"/","kind":"post-type"} /-->
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php if ($services_page) : ?>
|
||||||
|
<!-- wp:navigation-link {"label":"Services","type":"page","id":<?php echo (int) $services_page->ID; ?>,"url":"/services/","kind":"post-type"} /-->
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php if ($testimonials_page) : ?>
|
||||||
|
<!-- wp:navigation-link {"label":"Testimonials","type":"page","id":<?php echo (int) $testimonials_page->ID; ?>,"url":"/testimonials/","kind":"post-type"} /-->
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php if ($about_page) : ?>
|
||||||
|
<!-- wp:navigation-link {"label":"About","type":"page","id":<?php echo (int) $about_page->ID; ?>,"url":"/about/","kind":"post-type"} /-->
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php if ($blog_page) : ?>
|
||||||
|
<!-- wp:navigation-link {"label":"Blog","type":"page","id":<?php echo (int) $blog_page->ID; ?>,"url":"/blog/","kind":"post-type"} /-->
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php if ($contact_page) : ?>
|
||||||
|
<!-- wp:navigation-link {"label":"Contact","type":"page","id":<?php echo (int) $contact_page->ID; ?>,"url":"/contact/","kind":"post-type"} /-->
|
||||||
|
<?php endif; ?>
|
||||||
|
<!-- /wp:navigation -->
|
||||||
|
|
||||||
|
<!-- wp:buttons {"layout":{"type":"flex","justifyContent":"right"}} -->
|
||||||
|
<div class="wp-block-buttons">
|
||||||
|
<!-- wp:button -->
|
||||||
|
<div class="wp-block-button"><a class="wp-block-button__link wp-element-button" href="<?php echo esc_url($book_session_url); ?>">Book Session</a></div>
|
||||||
|
<!-- /wp:button -->
|
||||||
</div>
|
</div>
|
||||||
<!-- /wp:group -->
|
<!-- /wp:buttons -->
|
||||||
</div>
|
</div>
|
||||||
<!-- /wp:group -->
|
<!-- /wp:group -->
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user