I tried everything from inspect element, putting the z-index as important, putting the toggle-slider class outside of the variant picker and it won’t show up on Shopify whatsoever. Do you guys know why that may be?
Topic summary
Issue: A custom HTML/CSS toggle slider renders locally but does not appear in the Shopify theme editor or in the storefront browser.
Implementation details: The component wraps two hidden radio inputs (#monthly, #every3months) and labels inside a #variant-picker container (position: relative). A .toggle-slider div is absolutely positioned, has a background color (#c5b538), rounded corners, width: 38%, and z-index: 1, intended to animate under the labels. CSS includes keyframe animations (shrinkSlider, growSlider) triggered by the checked state of the radios to adjust width/translateX.
Troubleshooting attempted: Used browser inspect tools, set z-index with !important, and moved the .toggle-slider outside #variant-picker. None of these changes made the slider visible in Shopify.
Context notes: The post includes the full HTML/CSS snippet, which is central to understanding the issue. No references to JavaScript or Shopify-specific settings were provided.
Status: Unresolved; the author requests explanations for why the slider fails to display in Shopify.