Forum Replies Created
-
AuthorPosts
-
July 31, 2018 at 1:42 am in reply to: [Custom Element] Adding multiple "Image" inputs within a single custom element #991779
Hi guys,
New problem, the tiny_mce now doesn’t save anything (returns blank) after page update / publish.
Is there a proper way or standard I should follow to use the tiny_mce widget? Like I can only use it once per element or something like that?
Thanks
- This reply was modified 6 years, 4 months ago by sethkhouri.
July 30, 2018 at 7:34 am in reply to: [Custom Element] Adding multiple "Image" inputs within a single custom element #991424Hi,
Alright, I kinda fixed the tiny_mce “unformatting” my text. I needed to follow Visual Composer’s default way of using WYSIWYG editors by keeping the id fixed as “content” and nothing else. But the image “attachment_size” duplicating values still happens.
Thanks.
July 30, 2018 at 1:33 am in reply to: [Custom Element] Adding multiple "Image" inputs within a single custom element #991342Here’s the shortcode that appears from the custom element:
If you just click to edit the custom element and save (don’t have to publish or update the page yet), the “attachment_size” keeps growing and any content you’ve added into the tiny_mce editor will “unformat” itself.
July 30, 2018 at 1:28 am in reply to: [Custom Element] Adding multiple "Image" inputs within a single custom element #991340Hi,
I can pass you the entire code for the custom element here:
- This reply was modified 6 years, 4 months ago by sethkhouri.
Hi guys,
It’s alright, I found out how to do this.
For anyone else who also wants to know, here’s what you need to do:
1. Create a child theme
2. Setup your shortcodes folder in your child theme
3. Duplicate postslider.php into your child theme with your own class name and shortcode
4. Modify your new postslider.php and change the $atts type to “grid” at line 366
5. Include the author by using get_the_author()Cheers.
There’s no screenshot tho.
Hi,
The body tag is in header.php
Cheers.
-
AuthorPosts