Minimum Widget Width for Plugin Development
As far as i am aware there is “no” standard each sidebar is defined by the theme itself i would create the elements so that they stretch and wrap in your div and use %’s in your css for associated sizes.
As far as i am aware there is “no” standard each sidebar is defined by the theme itself i would create the elements so that they stretch and wrap in your div and use %’s in your css for associated sizes.
I don’t know about Bing’s spider but you can create your own widget and instead of using the select tag’s onchange event you can use JQuery to bind the change event to do the same: $(“select”).change(function () { window.location.replace(this.val()); });
In the method “widget” look for the line that sets the category then add either: $cat = empty($instance[‘cat’]) ? ‘N/A’ : $instance[‘cat’]; (where you replace N/A with something you like) or… better… add a filter instead like this: $cat = apply_filters( ‘widget_my_cat’, empty($instance[‘cat’]) ? ‘N/A’ : $instance[‘cat’], $instance, $this->id_base); And then hook into ‘widget_my_cat’ to … Read more
It’s the default behavior of a dynamic sidebar to output li tags around widgets. You can override that though in the sidebar declaration. You would do that by passing the sidebar registration the following additional arguments: register_sidebar( array( ‘before_widget’ => ‘<div id=”%1$s” class=”widget %2$s”>’, ‘after_widget’ => “</div>” ) );
It should be as simple as dragging another text widget from the active widgets into the sidebar and copying the desired text in again. Unless you are having complications?
Twitter, Facebook, and Youtube links/feeds to their individual profiles. Those links/feeds are meta data for posts, so postmeta is the place where you should store them. Easy way to add meta data to posts is Custom Fields, also you can create and use meta box for this purpose. Here is tutorial for creating meta boxes: … Read more
Build a custom sql query that selects the latest testimonials from the table that the plugin creates. Use $wpdb->get_results($sql_query) to get the results as an array, and then loop over it in your markup.
There are various approaches (including this one), but you could consider, since you’re talking about a stylesheet and not a script, simply enqueueing it from the Plugin, regardless of whether the Widget is active. (Which is worse: the few bytes of Widget-specific CSS, or the server overhead to determine if the Widget is active?) Just … Read more
Registering sidebar is just a function call, there is no reason it can’t be run on top of some logic. Here is code I wrote (and use) in my current theme: $pages = get_pages(); foreach ( $pages as $page ) { register_sidebar( array( ‘name’ => “Page: {$page->post_title}”, ‘id’ => “sidebar-page-{$page->post_name}”, ‘description’ => “Widgetized area after … Read more
I dont see anywhere on the code that it adds either full text or excerpt. So I decided to test the widget and that’s exactly what I got. There is no post content being output. So my suggestion is to just add <?php the_excerpt(); ?> Wherever you want it to output… eg just after the … Read more