Questions tagged [widgets]
Widgets are configurable elements used to dynamically build sections of a WordPress theme.
2,092
questions
0
votes
5
answers
3k
views
Display some arbitrary HTML or content in a sidebar [closed]
I need to have a bit of frequently changing content in a sidebar (the time and location of the next meeting of a club).
What I'd really like is a nice widget that displays the_content() of a selected ...
5
votes
2
answers
1k
views
What is the quickest way to make a widget?
I have some PHP code that I would like to pull out of an existing page of a template, and put into a widget so I can move it around.
What is the quickest way to create a widget?
5
votes
1
answer
1k
views
Highlight custom widgets in the admin area?
I have created some custom widgets for my client to use, but I want to make them stand out amidst the fifteen or so standard widgets in the admin area. How can I do this?
I have solved this problem ...
8
votes
3
answers
3k
views
Limit widget to certain sidebar?
I have multiple "sidebars", but not all of them are the same size. Not all widgets fit in all sidebars (for example, I have a "footer sidebar" where the client can place custom widgets, but they are ...
5
votes
2
answers
5k
views
Changing name of sidebar widget
I have created dynamic sidebars. They are working fine and appear in the Widgets area.
However, I would like to customize the name that appears on each sidebar.
So, right now each sidebar is named "...
0
votes
1
answer
184
views
"Folding" links in the blogroll
I've got a site (this one) with too many links in the blogroll. I want to keep them there, but to maybe have them "fold" in the menu (after some of them showing without the unfolding of the menu)
...
1
vote
1
answer
175
views
Add widgets to available widgets section without changing the theme?
I have a client that wants to use a particular theme without modification, but will likely want to have more widgets than are available with a given theme.
Is there a way to add widgets to the list ...
3
votes
1
answer
5k
views
Create a Widget Area in the Navigation Bar for the Genesis Theme Framework?
(Moderator's note: The original title was "How can I create a widget area in the navigation bar (Genesis specific)?"(
I'm trying to create a widget area in my navigation bar. I'm attempting to adapt ...
2
votes
1
answer
2k
views
Contact Form in sidebar [closed]
I have a Contact Form 7 form as a page on my site. I'd like to place the contact form on the sidebar. How can I do this?
1
vote
3
answers
8k
views
Adding custom html and standard widgets to sidebar
I want to add both custom html that advanced text widgets can't support and the standard sidebar widgets in the same sidebar. However, when I put a sidebar widget into the theme, it removes all the ...
2
votes
3
answers
511
views
Why use widgets?
I am very new to using WordPress and I was wondering what the benefits of using widgets is? Looking here it sounds like they are for people who are not programmers that want to add plugins to their ...
1
vote
1
answer
946
views
Paging in a sidebar mini loop
I switched to another theme and decided to make a widget of some default code I had in there which shows my delicious posts, twitter posts, su posts and youtube vids in a custom loop (excluding these ...
6
votes
7
answers
22k
views
Including Custom Post Types in "Recent Posts" Widget
I'm able to easily include my custom post types into my main loop by making small adjustments with query_posts(), but I'm not sure how I would go about including custom post types in the "Recent Posts"...
1
vote
1
answer
9k
views
Create a widget that allows text input
I need to create a simple widget that has a text input field.
I need the widget to create the markup below...
<div class="textwidget">
<div class="avatar">
<div class="...
1
vote
3
answers
1k
views
Dynamic Sidebars On Multiple Subpages
I am building a site in WordPress. It has multiple subpages, many of which require different sidebars. So, I have a widgetized theme and I have also created a few sidebar widgets.
I have written a ...
17
votes
4
answers
16k
views
Loading scripts only if a particular shortcode or widget is present
I needed a way to filter a page/posts content before it was loaded so I could add scripts to the header if a specific shortcode was present. After much searching I came across this on http://...
1
vote
2
answers
3k
views
Adding a rich text editor to a widget - specifically CKEditor
I am trying to add a rich text editor to a widget and am using CKEditor ( http://ckeditor.com/download ) with a simple toolbar.
Everything works fine until I try to save. When clicking on "save" the ...
0
votes
2
answers
2k
views
How to activate WordPress widgets but not display?
I have activate the widget in my WordPress site in admin panel, but on the front page I don't want to display it. Is this possible?
13
votes
5
answers
11k
views
Using widget options 'outside' the widget
I want to save some parameters in the widget options which are then passed into another page.
The widget is a form which calls a webservice.
The options I want to pass are the authentication for the ...
1
vote
1
answer
365
views
How often does the RSS widget get updates?
I am asking since I am trying to understand if this widget is causing my server to overuse CPU or memory.
But either way - it's interesting to know.
3
votes
1
answer
1k
views
Enabling Widgets By Default in Custom Theme Development
In WP theme building, if a sidebar is not active, can I turn it on? Also, if the sidebar is active, and doesn't contain any widgets, can I add some?
I'm a theme and plugin developer, but this is ...
1
vote
1
answer
2k
views
Can I create drag and drop widgets like iGoogle in WordPress?
I want to make something like iGoogle in WordPress, in which I can drag and drop the widgets. How could that be done in HTML 5?
0
votes
4
answers
1k
views
How Can A Widget With Only One Instance Be Defined?
How can a widget which of which only one instance can be used?
1
vote
2
answers
295
views
Widget code is not working on WordPress.com Hosted Blogs
I have developed a JavaScript widget which works fine when I embed it in any of my html pages. The code is something like this
<script type="text/javascript" charset="utf-8">
var asset_host = ...
3
votes
1
answer
305
views
Sidebar Widget Registration without a name, how is it assigned to new named sidebar widget?
In my current theme version, I'm registering sidebars with names. However, in previous versions, I only had one sidebar and registered it without a name like so...
if ( function_exists('...
0
votes
1
answer
649
views
Widget constructor: about $id_base and $options
in the book professional wordpress, they use something like
$options = array(
'classname' => 'pp_widget',
'description' => '...'
);
$this->WP_Widget('pp_widget', ..., $options);
but ...
2
votes
1
answer
736
views
Widget Javascript code (ajax)
I have a widget like this:
class test_widget extends WP_Widget{
function test_widget(){
$widget_ops = array('description' => 'test widget');
$this->WP_Widget(false, 'Test', $...
2
votes
3
answers
192
views
Why can't I add this feed to the RSS widget?
I wish to use the following RSS in my widget, but it seems to not pick it up:
http://www.tapuz.co.il/blog/rssBlog.asp?FolderName=TickTack
I imagine there is a problem in the feed. So:
What is it?
...
1
vote
1
answer
322
views
How did I enable atom feeds in a fresh WP3 install?
I've just install Wordpress 3, and I can't figure out how to put an atom link in the sidebar, under (or otherwise near) the RSS links. I looked at sidebar.php, but it simply references a meta 'widget'...
0
votes
1
answer
60
views
In a specific blog, the K2 theme does not have a Text Widget
I have a WPMu installation on a closed network, and one blog is using the K2 theme, but the Text Widget is not offered as an option. When I switch the theme to Default, the Text Widget is offered. ...
4
votes
2
answers
15k
views
Disable Specific Widgets on Selected Pages of a WordPress Website?
I would like to give a CMS look to some of my pages. I want to customize them by removing the default widgets and adding other widgets as my wish (I will use plugins like My Custom Widget to add ...
1
vote
1
answer
1k
views
Help with custom widget options! (saving checkbox option)
I created a custom Flickr Widget for Wordpress and successfully set up an options form for users to enter their Flickr information, but I cannot get the checkbox in the form to save whether or not it ...
0
votes
7
answers
413
views
Related posts widget or plugin needed
I'm looking for something like they are using here:
http://www.jennyreviews.com/as-seen-on-tv/triple-joint-formula/
Look under "Related Product Reviews"
I checked the source but could not find the ...
3
votes
2
answers
1k
views
What is the best way to include a widget in a Page?
I am setting up a new WordPress blog and would like to include a widget in the content of a Page. I found some forums describing PHP hacks which appeared to apply to older versions. With WordPress 3.0....
2
votes
2
answers
1k
views
How to automatically register widgets on new blog?
Is there a way to automatically register widgets when a new site is registered with a multi site setup? E.g. inside wpmu_new_blog?
1
vote
2
answers
2k
views
what is option_name on database that store the information of current initiate widget in frontend sidebar?
what is option_name on database that store the information of current initiate widget in frontend sidebar ?
10
votes
3
answers
5k
views
Custom Post Type Data in Sidebar widgets?
(note: this question was originally about Custom Fields, but @MikeSchinkel had a better solution involving Custom Post Types)
On my site I have several pages which I want to show the same data in the ...
4
votes
5
answers
5k
views
Different widgets on different page templates?
If I have a couple of different Page templates, how would I show a different collection of sidebar widgets for each of these templates? I'm using the Starkers theme as a starting point.
6
votes
3
answers
2k
views
How Do I Add Custom CSS To Only Certain Widgets
I have a standard dynamic sidebar using register_sidebar and dynamic_sidebar and I need the last widget in the sidebar (which will not have a set number of widgets) to have a distinct class ('...
9
votes
4
answers
46k
views
How do register_sidebar() and get_sidebar() work together?
Disclaimer: I am brand spanking new to WP.
I am using the Starkers HTML5 framework theme. In the functions.php I see this code:
function starkers_widgets_init() {
// Area 1, located at the top ...
2
votes
2
answers
804
views
Flickr plugin that will display photos from multiple group pools? [closed]
Does anyone know of a WordPress plugin that will pull in photos from multiple flickr group pools, and display random thumbnails in the sidebar?
There are a ton of flickr plugins, and I just can't ...
2
votes
2
answers
372
views
Searching for a better Twitter widget
I'm using the "FriendFeed Activity" widget to show the latest 7 enties of my friend feed. However, FriendFeed just aggregates my Twitter, Blog (via RSS) and YouTube activities. That are things Twitter ...