The Porto Content Switcher lets you display two different contents in the same area and switch between them using a toggle.
It’s ideal for comparisons such as pricing plans, feature differences, or alternative layouts—without duplicating page space or adding custom scripts.
How to Use
- Add the Porto Content Switcher element to the page
- Define labels and content for both switch states
- Adjust alignment and spacing
- Style labels and switch appearance
- (Optional) Insert Porto Blocks using shortcodes for advanced layouts
Switcher Options
Content Options
- First Label - Text shown for the first switch state
- Second Label - Text shown for the second switch state
- First Content (HTML) - Content displayed when the first label is active
- Second Content (HTML) - Content displayed when the second label is active
- Switch Alignment - Align the switcher (left, center, or right)
- Content Padding - Inner spacing for the switch content area
Note:
Both content fields support shortcodes. You can insert Porto Block shortcodes created under Porto → Template Builder → Block to render complex layouts inside the switcher.
Style Options
- Typography - Control font family, size, weight, and line height of labels
- Label Spacing - Adjust spacing between labels and the switch
- Switch Size - Set the size of the toggle switch
- Label Colors
- Normal label color
- Active label color
- Switch Colors
- Switch color
- Background color
- Border color
Using Porto Blocks Inside the Switcher
To reuse layouts inside the switcher:
- Create a block in Porto → Template Builder → Block
- Copy the generated shortcode
- Paste the shortcode into First Content or Second Content
This allows grids, banners, sliders, or any Porto layout to be displayed dynamically inside the switcher.
Common Use Cases
- Monthly / Yearly pricing tables
- Feature comparisons
- Product overview vs specifications
- Compact content toggling

