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.
Thread Starter
makr
(@makr)
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?
Thread Starter
makr
(@makr)
I figured out how to make the shorcode active I didn’t have
add_filter(‘widget_text’, ‘do_shortcode’);
in my function.php
Could you please post the code that you’re pasting into the text widget?
Thread Starter
makr
(@makr)
[thkBC id=”147″ height=”500″ width=”500″ anchortext=”Link Anchor Text” title=”ThickBox Title” type=”iframe”]
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>