Skip to content

Center simple image slider items in Prettyblock#870

Merged
CySSoO merged 1 commit intomasterfrom
cyssoo/fix-image-centering-in-prettyblock
Jan 29, 2026
Merged

Center simple image slider items in Prettyblock#870
CySSoO merged 1 commit intomasterfrom
cyssoo/fix-image-centering-in-prettyblock

Conversation

@CySSoO
Copy link
Contributor

@CySSoO CySSoO commented Jan 29, 2026

Motivation

  • Fix centering of images in the Prettyblock "Simple Image" slider when the slider mode is active so images appear visually centered.

Description

  • Add a dedicated wrapper class ever-slider--simple-image to the slider in views/templates/hook/prettyblocks/prettyblock_img.tpl and scope CSS rules in views/css/everblock.css to center .ever-slider-item media by applying text-align: center, display: block and margin-left/right: auto to picture and img.

Testing

  • No automated tests were executed for this change.

Codex Task

@CySSoO CySSoO merged commit 2125b31 into master Jan 29, 2026
2 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant