Skip to content
New: Customize your theme with an AI assistant. Read the guide

Section Variants & Layouts

Skill level: Beginner for options, light code to swap components

Consultiz gives you two ways to change how a section looks:

  1. An option in the content file, such as options.layout. The content stays the same; only the look changes.
  2. A different component of the same kind, such as one of the three testimonial sliders. Each has its own content file, and you swap it in the route file.

Options In Content Files

Set these in the section file (every page) or in a page block (one page). Set them in both language folders.

Section or pageWhere it is setValues
Pricing plansoptions.layout in pricing-section.md or the pricingSection blockdefault · advisory (the pricing page uses advisory)
Client logos, looklayout in partner-marquee.md, customers.md, or the customersSection blockdefault · corporate
Client logos, motiondisplaymarquee (scrolling) · grid (static)
Client logos, spacingoptions.sectionVerticalSpace, options.bottomSpacing, options.backgroundtrue · false
Client logos, review badgegoogleReview.enabletrue · false
Testimonial slidersoptions.layout in testimonial-slider-vertical.md and testimonial-slider-video.mdcarousel-full · carousel · card
Portfolio list pageoptions.layout in portfolio/<lang>/-index.mdgrid · masonry · horizontal (with category filters)
Industries list pageoptions.layout in industries/<lang>/-index.mdlist · grid
Numbered blog pages (/blog/page/2/)options.layout and options.columns in blog/<lang>/-index.mdcard · grid · creative · horizontal; columns 1, 2, or 3

The shipped content files show the value each page uses today.

src/content/sections/english/partner-marquee.md
layout: "corporate" # default | corporate
display: "grid" # marquee | grid

Swap A Section For Another Variant

Several kinds of section come in more than one design. Each design is its own component with its own content file in src/content/sections/<language>/:

Kind of sectionComponents (in src/layouts/components/sections/)Content files
Bannerbanner/BannerSlider, banner/BannerTabbedSliderbanner-slider.md, banner-tabbed-slider.md
Aboutabout/AboutCentered, about/AboutImageStats, about/AboutProcess, about/AboutVideoStatsabout-centered.md, about-image-stats.md, about-process.md, about-video-stats.md
Servicesservices/ServicesCentered, services/ServicesParallax, services/ServicesSliderservices-centered.md, services-parallax.md, services-slider.md
Industriesindustries/IndustriesStepper, industries/IndustriesCoverindustries-stepper.md, industries-cover.md
Growth bannergrowth-banner/GrowthBannerFullWidth, growth-banner/GrowthBannerCardgrowth-banner-full-width.md, growth-banner-card.md
Testimonialstestimonial/TestimonialVideoShowcase, testimonial/TestimonialSliderVertical, testimonial/TestimonialSliderVideotestimonial-video-showcase.md, testimonial-slider-vertical.md, testimonial-slider-video.md
Articlesblog/BlogTwoColumn, blog/BlogGridCentered, blog/BlogGridblog-grid-centered.md (the first two), blog-grid.md
FAQfaq/FaqCentered, faq/FaqImageSplitfaq-centered.md, faq-image-split.md
Contactcontact/ContactImageForm, contact/ContactSplitcontact-image-form.md, contact-split.md
Call to actioncta/CtaImageBanner, cta/CtaCirclecta-image-banner.md, cta-circle.md
Portfolio previewportfolio/PortfolioSlider, portfolio/PortfolioSliderPanelportfolio-slider.md, portfolio-slider-panel.md
Process stepssolution-steps/SolutionStepsSlider, solution-steps/SolutionStepsCountersolution-steps-slider.md, solution-steps-counter.md

To swap one for another on a page:

  1. In the route file (src/pages/[...lang]/<page>.astro), change the import line to the other component.
  2. Change the component tag in the page body.
  3. Remove the content={...} prop, or point it at a block whose fields match the new component. Each component expects the fields of its own content file.
  4. Run npm run astro-check and look at the page.

Sections Not Placed On Any Page

These sections ship with content but are not used by any demo page. Add them to a route when you need them (Sections):

ComponentContent file
about/AboutVideoStatsabout-video-stats.md
blog/BlogGridblog-grid.md
contact/ContactSplitcontact-split.md
cta/CtaCirclecta-circle.md
portfolio/PortfolioSliderportfolio-slider.md
portfolio/PortfolioSliderPanelportfolio-slider-panel.md
services/ServicesSliderservices-slider.md
solution-steps/SolutionStepsSlidersolution-steps-slider.md
testimonial/TestimonialSliderVideotestimonial-slider-video.md
solution-steps/SolutionStepsCountersolution-steps-counter.md
ProcessSectionprocess-section.md
RoadmapSectionroadmap-section.md
JoinTeamSectionjoin-team-section.md
TeamworkSectionteamwork-section.md
WorkWithUsSectionwork-with-us-section.md

Page Layouts

Some pages also come in several designs. These are separate routes, each with its own content folder:

KindURLsContent folders
About/about/, /about/style-02/about/, faq/ (style 2 is an FAQ-led page)
Solutions/solutions/style-01/, /solutions/style-02/ (beside the list page /solutions/)solution-style-01/, solution-style-02/
Industries/industries/style-01/, /industries/style-02/ (beside the list page /industries/)industry-style-01/, industry-style-02/
Blog list/blog/ (also /blog/standard/), /blog/style-01/, /blog/style-02/blog/ (all read -index.md)

Keep the designs you like, delete the routes you don’t need, and update the menus. See Pages.

Type something to search...