Renders a diagonal, responsive content + media block (image or video) with optional button. Works via shortcode, Elementor, or WPBakery.
| Author: | giorgiobianchi (profile at wordpress.org) |
| WordPress version required: | 5.8 |
| WordPress version tested: | 6.9.3 |
| Plugin version: | 1.2.0 |
| Added to WordPress repository: | 11-03-2026 |
| Last updated: | 11-03-2026 |
| Rating, %: | 0 |
| Rated by: | 0 |
| Plugin URI: | https://github.com/GiorgioBianchiVR/diagonal-... |
| Total downloads: | 160 |
![]() Click to start download |
|
Diagonal Responsive View renders a diagonal, responsive split-layout block combining a content area and a media panel (image or looping video), with an optional call-to-action button.
It integrates natively with Elementor (dedicated widget) and WPBakery Page Builder (Visual Composer element), and can also be used anywhere via shortcode.
Key features:
- Diagonal/masked split layout — content on one side, image or looping video on the other
- Flip option to swap media and content order
- On mobile the written content is shown on swipe (left or right)
- Optional styled button with full color, radius, alignment, and CSS class controls
- Adjustable mask tilt (20°, 30°, 40°)
- Native Elementor widget (drag-and-drop, live preview)
- Native WPBakery element (backend and frontend editor)
- Plain shortcode support for any editor or theme
Optimized for desktop, tablet, and mobile devices.
Usage — Shortcode
Shortcode name: diag_resp_view
Basic example:
[diag_resp_view]Your <strong>HTML</strong> content here[/diag_resp_view]
Advanced example:
[diag_resp_view title="Example Title" flip_media="yes" is_video="no" show_button="yes" button_text="Learn more" button_link="url:https://example.com|target:_blank" button_bg_color="#ff0000" button_border_radius="8px" button_text_color="#ffffff" button_align="center" image_id="123" mask_tilt="30"]<p>Content here.</p>[/diag_resp_view]
Supported attributes (defaults in parentheses):
title(Diagonal Responsive View) — text field used as block titleflip_media(no) —yesto swap media and content order on desktopis_video(no) —yesto usemedia_urlas a looping background videoshow_button(no) —yesto render a CTA buttonbutton_text(Click Here) — button labelbutton_link('') — plain URL or WPBakeryvc_linkformat (url:...|target:_blank)button_bg_color(#0041C2) — button background colorbutton_border_radius(5px) — button border radiusbutton_text_color(#FFFFFF) — button text colorbutton_css_classes('') — extra CSS classes for the buttonbutton_align(left) —left,center, orrightmedia_url('') — URL to a video file (used whenis_video="yes")image_id('') — WordPress attachment ID for the imagemask_tilt(20) — tilt angle:20,30, or40
The shortcode wrapper uses the class diag-responsive-view for custom CSS targeting.
Usage — Elementor
- Open a page in Elementor.
- Search for Diagonal Responsive View in the widget panel (category: General).
- Drag it into your layout and configure content, media, and button settings via the panel controls.
Alternatively, use the Elementor Shortcode widget and paste the diag_resp_view shortcode directly.
Usage — WPBakery (Visual Composer)
- Open a page in the WPBakery editor (backend or frontend).
- Click Add Element search for Diagonal Responsive View.
- Configure content, media, and button settings via the element popup.
You can also insert the shortcode directly into WPBakery text blocks or the classic editor.
For Developers
- Shortcode handler:
diag_resp_view— seediag-resp-view.php - Elementor widget class:
DiagRespViewElementorWidget— registered inincludes/elementor-config.php - WPBakery mapping base:
diag_resp_view— registered inincludes/vc-config.php - CSS handle:
diag-resp-style— file:assets/css/diag-resp-style.css
FAQ
ChangeLog
