Skip to content

Center Prettyblock Simple Image images by default#908

Merged
CySSoO merged 1 commit intomasterfrom
cyssoo/fix-image-alignment-in-prettyblock
Feb 2, 2026
Merged

Center Prettyblock Simple Image images by default#908
CySSoO merged 1 commit intomasterfrom
cyssoo/fix-image-alignment-in-prettyblock

Conversation

@CySSoO
Copy link
Contributor

@CySSoO CySSoO commented Feb 2, 2026

Motivation

  • Ensure images rendered by the Prettyblock "Simple image" block are visually centered by default in both slider and grid modes for better presentation.

Description

  • Add Bootstrap centering classes to the image elements in the Prettyblock template by updating views/templates/hook/prettyblocks/prettyblock_img.tpl to include d-block mx-auto on the <img> tags in both slider and grid render paths.

Testing

  • No automated tests were run for this template change.

Codex Task

@CySSoO CySSoO merged commit 795db1e into master Feb 2, 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