Skip to content

Shortcodes ​

Shortcodes are the blocks you build pages with. In the page editor, click Shortcode in the toolbar, pick one (Mila's are named Mila: …), fill in its form and insert it. You can also type a shortcode by hand:

[mila-banner layout="full" image="promotion/5.jpg" title="For every celebration" button_text="Discover" button_url="/products" text_tone="light"][/mila-banner]
ShortcodeAdmin namePurposeNeeds plugin
[mila-hero]Mila: Hero sliderFull-screen fading slides
[mila-collection-showcase]Mila: Collection showcaseCollection intro with quick links and images
[mila-editorial]Mila: Editorial textCentered heading and paragraphs
[mila-tiles]Mila: Image tilesGrid of image tiles with captions and buttons
[mila-banner]Mila: BannerSplit or full-width call-to-action banner
[mila-text-links]Mila: Text & link groupsLong text with grouped links (SEO block)
[mila-stores]Mila: StoresBoutiques with address and opening hours
[mila-products]Mila: Products showcaseProduct carousel or grid with an introEcommerce
[mila-categories]Mila: Product categoriesCategories as large image tilesEcommerce
[mila-category-products]Mila: Products by categoryA product block per categoryEcommerce
[mila-collections]Mila: Product collectionsCollections as image cardsEcommerce
[mila-news]Mila: NewsLatest or featured postsBlog
[mila-newsletter]Mila: NewsletterNewsletter sign-up bandNewsletter
[faqs]FAQsList of FAQsFAQ
[google-map], [youtube-video]Google map, YouTube videoEmbeds

Common options ​

Most Mila shortcodes share these fields.

Heading

FieldNotes
SubtitleSmall text above the title.
Title
Description
Button text / Button URLNot on every shortcode. Leave the text empty to hide the button.

Section

FieldValues
Vertical spacingDefault, Compact, None

Hero slider ​

[mila-hero] shows full-screen slides that fade into each other. Up to 6 slides.

Each slide

FieldNotes
ImageRecommended 1920×1080.
Mobile imageOptional, 800×1200.
Subtitle, Title, Description
Button text / URL
Second button text / URL

Options

FieldValues
HeightFull screen (default), Large (80% of screen), Medium (60% of screen)
Text positionBottom left (default), Center, Center left, Bottom center
Image overlaySoft gradient (default), Dark, None
Autoplay delayMilliseconds. Default 6000; 0 turns autoplay off.

With Theme options → Mila → Transparent header over the homepage hero on, the header sits over the first slide.

Collection showcase ​

[mila-collection-showcase] introduces a collection: a heading with a button, up to 6 quick links, and up to 6 portrait images with captions.

FieldNotes
Heading and buttonSee common options.
Quick linksEach: Label, URL.
ImagesEach: Image (portrait 3:4), Caption title, Caption subtitle, URL.
LayoutText left, images right (default), Text on top, images below

Editorial text ​

[mila-editorial] is a centered heading and paragraphs, for brand stories.

FieldNotes
Subtitle, Title
TextA blank line starts a new paragraph.
Button text / URL
Signature / ornament imageOptional.
AlignmentCenter (default), Start
BackgroundWhite (default), Light grey, Dark

Image tiles ​

[mila-tiles] shows up to 8 image tiles with captions and buttons, e.g. your boutiques.

Each tile: Image, Subtitle, Title, Button text, URL.

FieldValues
ColumnsDefault 3.
Image ratioPortrait (3:4) (default), Square, Landscape (4:3), Tall (2:3)
Caption positionOn the image (default), Below the image
Gap between tilesNone (edge to edge), Small (default), Large

[mila-banner] is a call-to-action banner.

FieldValues / notes
LayoutSplit: text left, image right (default), Split: image left, text right, Full width: text on the image
Image
Mobile imageOptional.
Subtitle, Title, Description, Button text / URL
Second button text / URL
Text panel background colorSplit layouts. Default #f1f2f3.
Text colorDark (default), Light
Text position (full width layout)Center (default), Left, Right, Bottom left
HeightAuto, Medium (70% of screen) (default), Full screen

Spacing defaults to None, so banners sit edge to edge.

[mila-text-links] is a long-form SEO block: a heading, then up to 10 groups of text and links.

Each group

FieldNotes
Group title
Group text
LinksOne per line, as Label | URL.
FieldNotes
ColumnsDefault 2.

When you write the shortcode by hand, separate links with ;; instead of new lines:

groups_links_1="Satin | /products;;Lace | /products;;Tulle | /products"

Stores ​

[mila-stores] lists up to 12 boutiques.

Each store: Image, Name, Address, Phone, Opening hours, Button text, URL.

Products showcase ​

[mila-products] shows products as a carousel or grid with an editorial intro. Needs Ecommerce.

FieldValues / notes
Heading and buttonSee common options.
Products sourceLatest, Featured (default), On sale, Trending, From categories, From collections, Selected products
Categories / Collections / ProductsDepending on the source.
Number of productsDefault 8.
LayoutIntro on the left + carousel (default), Heading on top + carousel, Heading on top + grid
Products per row (desktop)Default 3.

Product categories ​

[mila-categories] shows product categories as large image tiles. Needs Ecommerce. Each category needs an image.

FieldValues / notes
CategoriesLeave empty to show featured categories.
Tile button textDefault "Discover".
ColumnsDefault 3.
Image ratioPortrait (3:4) (default), Square, Tall (2:3)

Products by category ​

[mila-category-products] shows a block of products for each category, including products in child categories. Needs Ecommerce.

FieldValues / notes
Categories
BlocksOne block per selected category (default), One block per child category of the selected categories
Products per blockDefault 8.
LayoutCarousel (default), Grid
Products per row (desktop)Default 4.
Category link textDefault "Explore more".

Product collections ​

[mila-collections] shows product collections as image cards with name and description. Needs Ecommerce.

FieldValues / notes
CollectionsLeave empty for all published collections.
Collections per pageDefault 12; 0 shows all. Ignored when collections are selected.
Card button textDefault "Explore".
ColumnsDefault 3.
Image ratioTall (2:3) (default), Portrait (3:4), Square

News ​

[mila-news] shows blog posts. Needs Blog.

FieldValues / notes
Heading and buttonSee common options.
PostsFeatured posts (default), Latest posts
Number of postsDefault 2.
ColumnsDefault 2.

Newsletter ​

[mila-newsletter] is a newsletter sign-up band. Needs Newsletter.

FieldNotes
Subtitle, Title, Description
Background imageOptional.

FAQs ​

[faqs] lists questions and answers from the FAQ plugin.

FieldNotes
CategoryThe FAQ category to show.