WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Use function popControl() for comment link (2 posts)

  1. NickTheNameless
    Member
    Posted 6 years ago #

    So in the source of the widgets.php page, there's JS functions called popControl, popShadow, unpopShadow, and unpopControl. I believe these are the four functions that power the effect that is much like how the Lightbox plugin displays images. Please correct me if I'm wrong.

    My goal is to use this effect for the comment link of each post. When a reader clicks the comment link, it gives this Lightbox effect to display the form in which to enter the comment. I know this can work with forms, because the widgets.php page uses this effect to display the "Add Custom Text" form.

    I would appreciate any guidance on how to do this. I haven't hacked WP in awhile, so as I type this I can't even remember exactly where I would find the anchor tag for the comment link. Any level of help in the endeavor to make this happen would be much appreciated. Thanks!

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    Those are all javascript functions specifically made for the Widgets page. You can't reuse them on the blog site themselves, they were not made to be reusable. They're specific to the widgets configuration page.

    You can examine how they work and then write your own versions for whatever you want to do.

Topic Closed

This topic has been closed to new replies.

About this Topic