Skip to content

How to Style the Photos and 3D Toggle

The toggle is the control that tells a shopper a 3D model exists at all. It has one job: be noticed without covering the product. Two colours and a corner.

Go to DevDiggers Plugins → Product View in AR → Configuration → AR Button and scroll to the Photos / 3D Toggle section.

The Photos / 3D Toggle section with its position and colour fields

Toggle Position offers Top Left, Top Right, Bottom Left and Bottom Right. Default is Top Left.

The Toggle Position dropdown

Pick against your photography, not by taste. Product shots are usually lightest at the top and busiest at the bottom, which is why the default is a top corner.

Check it against the AR button’s position. The launcher defaults to Bottom Center. A toggle at Bottom Left or Bottom Right can crowd it on narrow screens. To keep the toggle at the bottom, move the launcher to a top position or to Below Gallery.

Two pickers, and they colour whichever tab is currently selected. The other tab stays neutral, so these two are the whole styling of the control.

The Active Background colour picker for the toggle

  • Active Background is the fill behind the selected tab. Default #0256ff.
  • Active Text is the label and icon on it. Default #ffffff.

Keep the contrast between the two high. This is a small control over a photograph, and a mid-grey on mid-blue is unreadable at the size it actually renders.

Press Save Changes, then open a product that has a model.

The Photos and 3D View toggle over the product gallery, with Photos selected

The gallery opens with Photos selected, so that is the tab wearing your colours first. Press 3D View and check the other state, because that is the one a shopper looks at while the model loads.

The gallery in 3D View with the toggle showing 3D View selected

Then look at it on a phone. The toggle sits over a much smaller image there, and a corner that was clear at desktop width can land on the product.

The toggle on a phone-width product page