andy1203
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Adding a JS confirm popup inside wordpressok I will thanks! for the help!!
Forum: Developing with WordPress
In reply to: Adding a JS confirm popup inside wordpresshttps://drive.google.com/file/d/15jWE8rJZpoN-LAGz7SPsw49-0LioQkjh/view?usp=sharing
here is a screenshot of the inspection,
the element appears in other pages, and in the other pages the lement does display a confirm box , all other pages are component pages(empty pages that have the content generated by buddypress),
its only in this particular page that I made myself that it doesnt show, so Im trying to add my own pop up.Forum: Developing with WordPress
In reply to: Adding a JS confirm popup inside wordpressSo im ussing buddypress, with the theme buddyboss, but created a page where I call for buddypress’ timeline using another plugin called “buddypress shortcodes”.
I will attach a link to a screenshot where you can see a “Delete” element, that is the element I want to deploy a confirm box when clicked, since now it deletes the post without confirming the users’ action
https://drive.google.com/file/d/1ifx6_Wd3FPoBVrHjTrgusHpoz89IAnj3/view?usp=sharingForum: Developing with WordPress
In reply to: Adding a JS confirm popup inside wordpressThanks a lot, the only issue is I can’t add the onClick in the href, since its being generated by a plugin, I would spend years looking inside the plugin html to find this element and manually add the onClick, and Im pretty sure in the next update it would be overwritten
Forum: Developing with WordPress
In reply to: Adding a JS confirm popup inside wordpresscould you please share your code?
Im trying to call a class from a plugins’ element.
for testing I reated an icon and assigned the class “test1” just to confirm that the reason it wasn’t working was because of a mistype of the plugin’s element class.
none of this elements are buttons tho, they are a hrefs thats why I thought the listener to be necessaryForum: Developing with WordPress
In reply to: Adding a JS confirm popup inside wordpressIm adding the code through the functions.php, could I create the modal inside the php?
I will try doing it, could you help with the code that would have the OK button do the action?