Forums

Opening Thickbox iFrame from Comments link (2 posts)

  1. ericcarl
    Member
    Posted 5 months ago #

    I'm putting together a theme, viewable here:

    http://www.secretmountain.org/

    For my needs, each post is just one block on the page. I don't have a need for an individual post page, but I do have a need for comments. So my idea is to use a single.php page that only contains the code for Comments, and have that page open up in a Thickbox iFrame. This way viewing a post's comments and adding a comment occurs in a modal window.

    While I have Thickbox working in my theme (viewable by clicking the image thumbnails) I don't know how to get the Comments links to activate it. Normally you have to append the HREF url with something like the following:

    ?height=300&width=300&inlineId=myOnPageContent

    But using the WordPress php comments_popup_link doesn't give me the ability to do this. Any idea what I would need to do to make this work? Thanks!

  2. ericcarl
    Member
    Posted 5 months ago #

    Oh yes, and I'll also need a class of "thickbox" added to the anchor tag. No idea how to make that happen. =\

Reply

You must log in to post.

About this Topic