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

Positioning of images in ticks #10

Open
nanu-c opened this issue May 1, 2020 · 1 comment
Open

Positioning of images in ticks #10

nanu-c opened this issue May 1, 2020 · 1 comment

Comments

@nanu-c
Copy link

nanu-c commented May 1, 2020

The tinymce editor isn't that handy and if images are embedded it looks scrambled.
Maybe use the gutenberg editor for the ticks?
If not add a class to the images like that:

. '<p class="sclt-tick-content">' . preg_replace("/(<a[^>]*)(\>.*)(\<img.*)(<\/a>)/im", "\$1 class='content-img-wrap'\$2\$3\$4", $content) . '</p></li>';
@stklcode
Copy link
Owner

stklcode commented May 1, 2020

The tinymce editor isn't that handy and if images are embedded it looks scrambled.

That's not my fault 😉

Maybe use the gutenberg editor for the ticks?

Gutenberg support will be available with v1.1

sclt_10_gutenberg

If not add a class to the images like that: [...]

Same can easily be achieved by a custom CSS definition like

.sclt-tick-content a img { /* ... */ }

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

2 participants