WordPress.org

Ready to get started?Download WordPress

Forums

ThickBox Content
[resolved] who can you put a thickbox in a sidebar? (7 posts)

  1. makr
    Member
    Posted 2 years ago #

    Can anybody explain how to put a link for a thickbox in the sidebar? I'm geussing I've got to put some HTML in a text field, but what do I have to put in it?

    thanks in advance,

    Maybe usefull to tell what i would like to put in the thickbox.

    I have a page with a cformII on it, which I would like to put in it.

  2. Max Chirkov
    Member
    Plugin Author

    Posted 2 years ago #

    If I remember correctly, CForm's code is not being recognized within the text widgets, because it's not a standard shortcode. If you can get around that, simply use the shortcode creator for the thickbox in the page editor panel - it will paste the code into your page. Then copy that code and paste it into your sidebar.

  3. makr
    Member
    Posted 2 years ago #

    oke so after your reply i made a page with the CForm in it, and used the shortcode creator make a shortcode which should call up the page. I pasted that shortcode in to a text widget. But somehow wp is not recognizing the shortcode(and is showing just plain code). Do you have any idea why?

  4. makr
    Member
    Posted 2 years ago #

    I figured out how to make the shorcode active I didn't have
    add_filter('widget_text', 'do_shortcode');

    in my function.php

  5. Max Chirkov
    Member
    Plugin Author

    Posted 2 years ago #

    Could you please post the code that you're pasting into the text widget?

  6. makr
    Member
    Posted 2 years ago #

    [thkBC id="147" height="500" width="500" anchortext="Link Anchor Text" title="ThickBox Title" type="iframe"]

  7. Max Chirkov
    Member
    Plugin Author

    Posted 2 years ago #

    That's a wrong shortcode. If I understood you correctly the first time, you're trying to open a form in a thickbox. So the form would be printed on the same page and not in the iframe. When you generating a shortcode, you should select inline type instead of iframe. Also, enter an ID for the hidden DIV where your form will be hidden.

    So the code should look like this:

    [thkBC height="300" width="500" anchortext="Link Anchor Text" title="ThickBox Title" type="inline" inline_id="my_custom_form"]
    <div id="my_custom_form"> The CForm Goes Here </div>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic