Skip to content

Banner Alignment Issues#31

Merged
jasperf merged 12 commits into
mainfrom
banner-alignment-issues
Jul 7, 2025
Merged

Banner Alignment Issues#31
jasperf merged 12 commits into
mainfrom
banner-alignment-issues

Conversation

@jasperf

@jasperf jasperf commented Jul 4, 2025

Copy link
Copy Markdown
Contributor

This pull request introduces changes to improve the alignment and styling of footer banners by replacing JavaScript-based solutions with CSS-based approaches. The JavaScript method for iframe alignment has been deprecated, and flexbox is now used for consistent alignment. Additionally, the alignment class prefix has been updated for clarity.

JavaScript Removal:

  • Deprecated the output_banner_alignment_script method, which used JavaScript to fix iframe alignment issues. The alignment is now handled through CSS in the child theme. (includes/class-iwz-banner-container.php, includes/class-iwz-banner-container.phpR339-R372)

CSS Enhancements for Alignment:

  • Added new CSS rules to handle iframe alignment for footer banners (align-left, align-center, align-right) using flexbox. These rules ensure proper alignment and responsiveness. (public/css/iwz-banner-container-public.css, [1] [2]
  • Removed display: block from the general banner styles to allow flexbox alignment. (public/css/iwz-banner-container-public.css, public/css/iwz-banner-container-public.cssL96-R98)

Codebase Simplification:

@jasperf jasperf merged commit 6ac47e1 into main Jul 7, 2025
5 checks passed
@jasperf jasperf deleted the banner-alignment-issues branch July 7, 2025 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant