Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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.
    #1115062

    Hey 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,
    Nikko

    #1115404

    Hello 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.

    #1116538

    Hi,

    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,
    Ismael

    #1116588

    Hi 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.

    #1116866

    Hi,

    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

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.