-
AuthorPosts
-
July 1, 2019 at 3:39 pm #1114904
Hello,
I try to add my own JS in the popup_elements() function of the ALB (Masonry entries).
The goal is to implements a JS dropdown to an HTML text field generated in popup_elements().
If I echo a JS script tag in popup_elements() (with echo ‘<script>myField.dropdown();</script>’) it works, but the tag appears before the <HTML> tag in the code.
So all the admin-ajax.php pages of the WP admin are down.
Where to place my JS script tag in the child theme (/endfold-child/shortcodes/my-own-masonry-entries/) to avoid this problem ?
Thanks for advance.
Franck.
-
This topic was modified 6 years, 6 months ago by
limonadeandco.
July 2, 2019 at 7:34 am #1115062Hey Franck,
Can you try to post the code in https://pastebin.com/ and then post the link here? so we can test your code and try to help with it.
Best regards,
NikkoJuly 3, 2019 at 10:07 am #1115404Hello Nikko,
Thanks for your reply.
There’s not really any interesting code to share, I just want to make a simple jQuery
$('#myfiled').dropddown(),but when the content element page of the ALB is loaded.For example : create a dropdown on the “Button title” field in this screenshot.
Thanks.
Franck.
July 8, 2019 at 4:02 am #1116538Hi,
Thank you for the update.
You have to modify the shortcode files directly if you want to replace the default Button title field with a dropdown. I’m not really sure why that’s necessary though. Are you trying to create a dropdown of the posts/pages title automatically?
Best regards,
IsmaelJuly 8, 2019 at 9:06 am #1116588Hi Ismael,
I’ve many items in my <select>, so I want to implements Semantic-UI dropdown with search.
I just need to make a
$('my-select-field').dropdown();but I don’t know where to place this code (because the page is generated in AJAX).Thanks.
Franck.
July 9, 2019 at 3:57 am #1116866Hi,
That will require modification that is beyond the scope of support. Please hire a freelance developer or contact our partner, Codeable.
// https://kriesi.at/contact/customization
Best regards,
Ismael -
This topic was modified 6 years, 6 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.
