OxyStudio Elements
Custom Element Studio components for Oxygen
by Sinawi Web Design · github.com/laithsinawi/oxystudio-elements
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/laithsinawi/oxystudio-elements/archive/refs/heads/master.zipCustom Element Studio components for Oxygen (beta 5+) with Swiper support and ACF-friendly helpers.
Setup
- Install/activate this plugin inside WordPress.
- Element Studio will save elements/macros/presets into the
elements,macros, andpresetsfolders in this plugin. - Swiper assets and a small init helper are enqueued on the frontend automatically.
Creating the ACF-powered slider element
- In ACF, create a Repeater (e.g.,
slider_items) with subfields likeimage,heading,content,link. - In Element Studio, create a new element under the namespace
\OxyStudio\Elements\Swiper. - In the Render tab, add a container with
data-oxystudio-swiperand your slide markup inside an Oxygen Repeater set to “ACF Repeater > Current Post > slider_items.” - Expose controls for slider options and map them to data attributes on the container:
data-autoplay(true/false),data-autoplay-delay(ms)data-loop,data-speed(ms),data-slides-per-view,data-space-betweendata-breakpointsfor JSON (e.g.,{"768":{"slidesPerView":2}})
- Add optional nav/pagination inside the container:
- Next/Prev buttons:
data-swiper-next,data-swiper-prev - Pagination element:
data-swiper-pagination
- Next/Prev buttons:
The included assets/js/swiper-init.js reads these data attributes and instantiates Swiper instances automatically.
Namespaces reserved
\OxyStudio\Elements\Swiper— sliders/carousels\OxyStudio\Elements\Hero— hero blocks\OxyStudio\Elements\ACF— ACF utilities or wrappers
Notes
- Asset handles:
oxystudio-swiper(Swiper CDN),oxystudio-elements(CSS overrides),oxystudio-swiper-init(JS init). - If you need custom Swiper options per instance, add JSON to
data-swiper-optionsand it will be merged. - The plugin also supports Breakdance as a fallback while Oxygen v5 is in beta.
Current work status (2025-12-21)
- Test site root:
/Users/laithsinawi/Local Sites/expediawineclubcruises/app/public(LocalWP). Active plugin copy lives atwp-content/plugins/OxyStudio-Elements/there. - Backup created before style-control changes:
wp-content/plugins/OxyStudio-Elements-backup-20251221-084518.zip. - Swiper element (
elements/OxyStudio_Swiper_Slider/) updates: removed nav arrows, pagination positioned inside slider; overlay/background z-index fixed; inline CSS vars set on wrapper. - Added a Styles section (dots active/inactive colors, text color, button bg/text + hover) to
element.php;html.twigextracts color picker values safely and writes vars;css.twigconsumes vars and enforces text/overlay stacking. - Outstanding: style control colors may still be overridden; verify the wrapper inline style reflects chosen values and adjust specificity if needed. No other errors currently after the array-to-string fix.