Layout Sections
These sections appear on every page via theme.liquid and control the site-wide chrome. theme.liquid renders three layout sections: Announcement Bar, Header and Footer.
Sticky header
On every template except product pages, the announcement bar and header are wrapped in the stickyonscroll Vue component, so they stick to the top while scrolling. On product pages they scroll away with the page.
Announcement Bar
File: shopify/sections/layout-announcement-bar.liquidVue component: announcement-bar
A rotating promo banner that sits above the header. Uses Keen Slider for auto-rotation. The same entries are also published to window.Shopify.announcement, which the cart drawer uses when its own cart announcements are empty.
Section Settings
| Setting | Type | Default |
|---|---|---|
visible | checkbox | false |
home_page_only | checkbox | true |
autoplay | checkbox | true |
timer | number | 5000 (ms) |
Blocks (type: announcement, limit 5)
Each announcement block contains:
| Setting | Type | Description |
|---|---|---|
announce-text | richtext | Desktop announcement text |
announcement_text_mobile | richtext | Mobile announcement text |
announcement_link | url | Optional click-through URL |
Current Configuration
Two announcements are configured:
- Shipping closure notice (disabled)
- "WELCOME15 for 15% off your first subscription order and free shipping." (active, links to
/discount/WELCOME15)
visible: true, home_page_only: false — autoplay every 5 seconds on all pages.
Slider mount point
Keen Slider is attached to the inner slide track, not the outer wrapper (which also holds the arrow buttons). Mounting it on the wrapper breaks the slider on mobile.
Header
File: shopify/sections/layout-header.liquidBackground: Navy (bg-navy) with white text
The header is global. Most of its content (logo, menus, nav banners) is configured in Theme Settings → Header. The section itself only owns the Shop dropdown CTA.
Section settings
| Setting | ID | Type | Default | What it does |
|---|---|---|---|---|
| Shop All button text | shop_all_text | Text | Shop All | Label of the CTA inside the mega-menu's Shop dropdown. |
| Shop All button URL | shop_all_url | URL | — | Destination of that CTA. Falls back to /collections/shop-all when empty (current). |
Where do logo / menus / banners come from?
The logo, main menu, right menu, the Take Our Quiz nav banner and the Find a Store nav banner are all set in Theme Settings → Header, not in this section. See Theme Settings → Header Configuration.
Structure
- Main navigation (left) —
site-navigationVue component: desktop mega-menu, mobile hamburger menu. Shop dropdown lists products from the menu (helper-nav-shop-products). - Logo — centered, links to
/. - Right navigation —
right-navigationVue component (desktop only). - Account icon — links to
/pages/account-loginfor guests and/accountfor logged-in customers. - Search —
SearchVue component (see Search). - Cart —
store-cartVue component: basket icon + cart drawer.
Mega-menu dropdowns and nav banners
- Dropdown columns are 180px wide. A second-level menu item with an empty or
#link is rendered as a column heading (small uppercase label, not a link) with its children listed below it. - The right side of each desktop dropdown shows up to two banners (545 × 274px area): the Find a Store banner (
about_banner_*settings) and the Take Our Quiz banner (product_image1,link_url1). - The mobile menu shows the main menu, then a standalone Find a Store item (
mobile_nav_item_label, linking tomobile_nav_item_urlor the About banner URL), then the right menu, and the quiz banner at the bottom. Ifabout_banner_image_mobileis set, the mobile Find a Store banner image is shown instead of the text item. - With
show_veton, the mobile menu shows a Vet Login link instead of the right-menu items.
Responsive behavior
- Desktop (above 1024px): full horizontal nav with mega-menu dropdowns.
- Mobile / tablet: hamburger + logo + account + search + cart. Navigation opens as a full-height menu from the hamburger.
Legacy variant — layout-header-old.liquid
layout-header-old.liquid (with image and menu settings) is a legacy fallback and is not used live. Don't reference it for new work.
Search
Header dropdown: src/vue/components/Search/index.vueResults page: shopify/sections/main-search.liquid via templates/search.json
Header dropdown
- Starts searching once 2 or more characters are typed.
- Queries
/search/suggest.jsonfor products (matching title, product type, variant title and SKU) and articles (up to 5). - Each product row shows the ops subname / SKU, title and price, plus a basket button that adds the item straight to the cart (drawn instantly — see instant cart updates).
- View all results opens the search page with a trailing
*wildcard (e.g./search?q=po*). - No results: "No results found" plus View all products →
/collections/shop-all.
Search results page
- Shopify's search page only matches whole words ("po" finds nothing, "pork" does). On submit, the form adds a trailing
*to the term so partial words match, the same as the dropdown. The*is hidden again in the search field. - The count reads "N Results" / "1 Result" on the search page (it includes articles), and "Products" everywhere else.
- Products use the same
layout-productcards as the PLP. Products withcustom._hide_product_in_plp = trueor theinternal_onlytag are hidden. Matching blog articles are listed in a grid below.
Footer
File: shopify/sections/layout-footer.liquidBackground: Dark blue (bg-darkBlue) with beige text
Section Settings
| Setting | Type | Current value |
|---|---|---|
logo | image_picker | Footer logo (SVG) |
name | text | "My Perfect Pet™" — not rendered (the template reads show_name, which doesn't exist) |
address | text | "49 Pioneer Parkway, Sulphur Springs, Texas 75482 U.S.A." |
url1_text | text | (empty) — phone label |
url_phone | url | (empty) — phone link |
url2_text | text | "Contact Us" |
url2 | url | Gorgias help-center contact form (my-perfect-pet.gorgias.help/en-US/contact) |
menu_center | link_list | footer-center ("MENU" column) |
menu_right | link_list | footer-right ("Resources" column) |
copyright | text | "My Perfect Pet, Inc." (rendered with a © prefix) |
Phone number
On desktop the phone link only renders when both url_phone and url1_text are filled in, so there is never an unlabeled link in the tab order. Both are currently empty, so no phone is shown.
Social Links
Each social platform has a visibility toggle and URL (all three currently visible):
| Platform | Visibility Setting | Link Setting |
|---|---|---|
social_instagram_visible | social_instagram_link | |
social_facebook_visible | social_facebook_link | |
| YouTube | social_youtube_visible | social_youtube_link |
Layout
Desktop:
- Logo, address, (phone)
- MENU links + Contact Us link
- Resources links + Accessibility button (when
accessibilityis on) - Stay up to date — inline Klaviyo signup (
NewsletterVue component, email only, list fromklaviyo_id), Follow Us! social icons, © copyright
Mobile: logo, newsletter signup, social icons, Contact Us, Resources, Menu, address/phone and copyright stacked.
Footer links have a 24px minimum tap height.
Legacy variant — layout-footer-old.liquid
layout-footer-old.liquid is a legacy fallback and is not used live. Don't edit it for new work.
Not rendered: Mobile Navigation and Scroll CTS
These two section files and their settings_data.json entries exist, but theme.liquid doesn't render them:
| File | Purpose | Status |
|---|---|---|
layout-mobile-navigation.liquid | Bottom-fixed mobile bar (Search / Cart / Account / Menu) | Not included in theme.liquid |
layout-scroll-cts.liquid | Sticky "SHOP NOW / Take our quiz" bar shown on scroll | Not included in theme.liquid |
Mobile navigation is in the header's hamburger menu. Editing these sections in the customizer has no effect on the storefront.