Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Align Center in Shortcode Broken: [BUG] Adds "align_center" CSS but no matching CSS #22

Open
presswizards opened this issue Mar 17, 2023 · 0 comments

Comments

@presswizards
Copy link

presswizards commented Mar 17, 2023

#23

What is the desired behavior?

Using shortcode:
[wp-pic type="plugin" slug="pretty-simple-popup-builder" layout="large" scheme="scheme2" align="center" ajax="yes" ]

It should center the large layout.

What is the actual behavior?

It does not center, the CSS I see is:
class="wp-pic-wrapper align_center large"

align_center is not in the plugin's CSS. I do see .wp-pic-wrapper.aligncenter.large and .wp-pic-wrapper.alignfull.large etc in the CSS, but it's not applied via the shortcode it seems.

Steps to reproduce undesired behavior:

Try using the shortcode with align="center".

Screenshots or Video

I've added custom CSS to resolve the issue:

.wp-pic-wrapper.align_center {
text-align: center;
}

You can see my live page here, centered because of the above CSS, uncheck that CSS to view it not centered:
https://5starplugins.com/pretty-simple-popup-builder/

Additional Comments

Hope you can fix it, I'm sure it's affecting other sites.

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

No branches or pull requests

1 participant