I have a few widgets which for design reasons I have hard-coded into my sidebar. For instance, the paypal simple shopping cart is added via <?php echo print_wp_shopping_cart() ?> inside the widgets loop.
Is there a similar method to add the Black Studio TinyMCE Widget? This allows me to position each widget inside an unordered list which can be styled separately.
If you want to show one or more widgets in specific places and also keep the widgets editable in the WP admin, I think it is better to create as many additional sidebars as needed, and display them in the desired position of the page using the function dynamic_sidebar. When you register a sidebar you may customize the markup.
There’s also the function the_widget, which displays a specific widget, but in that case you have to pass the title and text as parameters, so there’s no real advantage over the classic text widget.
Viewing 1 replies (of 1 total)
The topic ‘[Resolved] Hard-code Black Studio TinyMCE Widget into sidebar?’ is closed to new replies.