Widgets are configurable elements used to dynamically build sections of a WordPress theme.

learn more… | top users | synonyms (1)

0
votes
1answer
190 views

How to change color of registered widget areas in admin?

Right now they are all gray. How to change the color? I mean, how to add a class or id to the registered widget area that are shown in the admin area? This is how you register the admin areas in my ...
0
votes
2answers
934 views

Custom Sidebar only on single post

I am developing a child theme for the new twenty thirteen theme and I am trying to add a sidebar (widget area) next to my content. I only want it to display in single posts. What I did: edit ...
0
votes
2answers
86 views

How to use the widget area to extend the page content?

I want to remove a widget area (lateral), and extend the page width getting this area. What is the better way to do it?
0
votes
2answers
130 views

How to use get_results() in widget front end?

I'm trying to get_results() in my widget's front end, this is my current code: public function widget( $args, $instance ) { echo $args['before_widget']; if($children = $wpdb->get_results( ...
0
votes
1answer
85 views

How to best include widget area just on homepage?

I have a front-page.php defining the homepage of my theme (a Genesis child theme). In it, I have some custom widget areas, like so: genesis_register_sidebar( array( 'id' => 'cta', ...
0
votes
1answer
130 views

How do i display the built-in gallery inside a widget?

I want to display a specific gallery (without a plugin = WordPress built-in gallery) inside a widget. I tried the shortcode [gallery ids="717"] but that doesn't work. Maybe a workaround could be ...
0
votes
1answer
82 views

Undefined Variable in my widget

I'm trying to get my head around writing custom widgets with options. I've been following a few tutorials and have been trying to understand as I go. I've got a widget that works perfectly in the ...
0
votes
1answer
76 views

Making a Multisite Dashboard Widget

I tried to use the code from this question: How to Check Disk Space used by Media Library But it's displaying this error in a Multisite: How can I display it on my network Dashboard instead root ...
0
votes
1answer
124 views

Update widget form after drag-and-drop “only specific plugin”

This solution, Update widget form after drag-and-drop, works correctly but I want to adapt this function to affect only a specific plugin and not every plugin. How could I do it?
0
votes
2answers
86 views

including image assets in widget

I've written my first simple WP widget-- it all works fine, but I'd like to dress it up a bit, and add an image / logo in the widget display code. How do I package the widget (which is just a single ...
0
votes
1answer
119 views

wordpress widget missing jquery

I have live score website and it is not wordpress based i build a widget for pure php websites but now i want to offer the widget to wordpress users problem is when i tried the widget i get three ...
0
votes
2answers
440 views

Remove “Content” and “Discussion” from Right Now Dashboard Widget

How do I hide "Content" and "Discussion" element in the "Right Now" dashboard widget? Here's a screenshot:
0
votes
1answer
475 views

How to create wordpress widget that is fixed position on the home page

I want to create a video plugin which is fixed on the home page when user scrolls. I know there is a wp_float plugin . But I want to try build new plugin
0
votes
2answers
1k views

Get all posts by post_author

I am creating a back-end dashboard where I need to show all the post assigned to current user by the wp admin. I assign user role to Author and while creating post (as a wp admin) just assign ...
0
votes
2answers
279 views

Contact information footer

I am new to Wordpress but forced to create a website as a Wordpress template for my current employee (I am a front end developer, mostly build new systems/apps etc from scratch). Creating the template ...
0
votes
1answer
71 views

New loop vs widget

So, I have a sidebar that I'm going to list all posts in, I could just use a widget. But is it proper to use a new loop instead of a widget, or preferential?
0
votes
1answer
336 views

wordpress widgets screen disappeared

Im having a weird problem. The screen where you manage widgets (drag and drop them from left to right) suddenly disappeared. How can I access it? It should be accessible via admin>themes>widgets but ...
0
votes
1answer
110 views

Saving widget options from class method

I have a widget class (derived from WP_Widget) that has a method (called via ajax) to update part of its options(the elements order) without the user to click "Save", to set the handler I do from the ...
0
votes
1answer
608 views

How to Remove ALL Widgets from Dashboard?

I'm looking for a complete blank Dashboard. No widgets at all and preferably one column. There are snippets to remove the default WordPress widgets, but haven't found nothing about the ones added ...
0
votes
1answer
81 views

Add individual <hx> tag to widget title in sidebar

In my sidebar every widget title is enclosed in <h2> tags. I use 4 widgets in my sidebar and I'd like to have the first 2 widget titles as <h2> and the other 2 as <h4>. I changed ...
0
votes
1answer
185 views

dynamic sidebar in front page

I am developing TwentyTen child theme and wish to display dynamic sidebar on front page, but something is not quite right. I modified loop-page.php: <div class="entry-content"> <?php ...
0
votes
2answers
366 views

Recent Comments from Specific Category Widget

I've been trying to create a sidebar widget to display recent comments from specific category. I'm having difficulties in determining how Wordpress knows from which categories the comments are. I ...
0
votes
1answer
214 views

Create Widget or Enable Shortcodes in Sidebar

I'm well aware that WordPress by default does not process shortcodes in the sidebar. My question is why. I'm building a very small plugin that exports some content when the shortcode is present. This ...
0
votes
1answer
337 views

How to Modify a Widgets UL and/or LI Classes

Im attempting to use twitter UL styles on a custom menu widget. For example, in BootStrap they have a Nav List Style for UL's <ul class="nav nav-list"> <li class="nav-header">List ...
0
votes
1answer
275 views

Getting Duplicate Posts on Home Page with Widget Added Between Posts

I'm trying to add a widget area in between posts on the home page. I got them to show right where I want them, after the first post. The problem is that the first two posts are duplicated. The same ...
0
votes
1answer
519 views

Add a specific css to a widget

I have a theme with a sidebar and 3 widgets. I want to change the color of one of those widgets. The problem is that all the widgets have the same code: <div class="box_outer"> <div ...
0
votes
2answers
2k views

WP_enqueue_script() loads them always in wp_footer()?

This is my example code placed in functions.php: function my_init_method() { wp_enqueue_script('jquery'); wp_enqueue_script('jquery-ui-core', false, array('jquery'), false, false); ...
0
votes
1answer
45 views

Link listings with image

So I'm really new to Wordpress and I'm trying to create a simple widget. I want the widget to list the logos of my site's affiliates (similar to the "check out our shows" section on ...
0
votes
1answer
594 views

Custom dashboard widget search box

I'd like to create a custom dashboard widget that contains the search box from the posts edit screen. I know how to create the dashboard widget and how to display it, but I don't know how can I place ...
0
votes
1answer
2k views

Placing widget to menu

is there any way to display widget in menu. Actually what i want is "site stat" in the menu. (black area) At the right. link
0
votes
2answers
60 views

Different sidebars not changing

I dont understand why my sidebar isn't changing over to the second one on the other pages. I've gone in an told the pages that if your not on this page show sidebar 2. So the home page and blog page ...
0
votes
2answers
420 views

How to handle forms from sidebar widgets - Processing $_POST variables using get_field_name()

Thanks to Wordpress calling their content 'posts', it makes it hard to find information on dealing with forms submitted with the POST protocol. My question is simple, the answer should be simple to a ...
0
votes
1answer
92 views

Proper approach to moving complete site from one domain to another AND preserve widgets

I consider myself fairly versed in this matter, however I've recently had a rash of issues when moving sites. I am able to successfully move the site, edit wp-config.php, move the database, etc. ...
0
votes
1answer
130 views

I have a widget area in my header. How can I have that display a different widget depending on what group is shown?

I have a widget area in my header. How can I have that display a different widget depending on what group is shown? So if uses are in a group about say Baseball in the site Header in my theme the ...
0
votes
3answers
140 views

what is the best way to add things to a side bar

I have a user that is wanting to be able to add items to the side bar (images / text) I'm rather new to wordpress development - fulltime c# developer, so I'm at a loss for a solution. Can anyone ...
0
votes
2answers
511 views

Toggle option in sidebar widgets

I would like to use toggle option in my sidebar widgets. But my sidebar widgets not generating unique id. This is my register sidebar code. register_sidebar(array( 'name' => 'Main ...
0
votes
1answer
333 views

Short messages widget

i'm looking for a widget that can show short news messages in the sidebar sorted by date (sticky's would be nice too) and manageble in the backend. I don't want to create posts because these messages ...
0
votes
2answers
501 views

How can I hard code my sidebar?

I am building a child theme based on Thematic. Rather than use widgets, I would like to hard code my sidebar but I can't figure out how to do this. Any help appreciated! Thanks
0
votes
1answer
137 views

Disable a plugin's widget

I wonder if possible to disable a widget that belongs to a plugin that is currently active w/o touching the plugin code. For sample, I normally use a code like this to disable wordpress widgets, ...
0
votes
1answer
953 views

get_the_title and get_permalink outside of the Loop

I'm trying to list the parent to a page in the sidebar. I can get the parent-page ID. I can get it to print with a print_r function, but no matter what I try I can't get get_permalink and ...
0
votes
1answer
188 views

Adding a WordPress Widget to a settings page

I'm looking to put widgets in my plug-in settings page like the ones in the WordPress Dashboard. The action to register the widget is add_action('wp_dashboard_setup', 'register_widgets' ); I ...
0
votes
1answer
222 views

change widget to display excerpt instead of content

For the life of me I can not figure out how to get this widget (built into the theme) to show the excerpt instead of the post content. Can you guys take a look at it for me please. Any help would be ...
0
votes
1answer
93 views

Is there a simple way to have a new sidebar for each page?

I am the programmer on my small dev team, along with the content editor and designer. My colleagues want to be able to add a different sidebar to each new page they make without having to monkey with ...
0
votes
1answer
4k views

How to load a stylesheet into wp_head from a custom widget?

The code below is part of a widget that goes with my theme. I'm trying to include a stylesheet that the widget needs by placing an add_action call to wp_head. However, the function never fires in this ...
0
votes
2answers
162 views

How do I create a template page with a specific widget as the content?

I have installed a widget so that I may add testimonials. This widget cycles through the testimonials in the sidebar and everything is fine. What I now want to do is create a testimonials page that ...
0
votes
1answer
235 views

What's the best way to implement custom widgets on a per post basis?

I'm creating a category called "Falculty" where each post is a member of my client's staff. Each post includes a biography and photo gallery of that staff member. My client would like to be able to ...
0
votes
1answer
432 views

how to add the same Widget twice to a sidebar?

I have a sidebar and would like to fill it like this: [Text] [Some other Widget] [Text] but I can add the Text widget only once to the Sidebar. What can I do to be able to add it more than once?
0
votes
1answer
621 views

Display specific widgets in different area's around the page

I've installed the Jigoshop plugin to create an e-commerce site. It has several built in widgets that I want to use. Is it possible to pull out specific widgets and display them within a page ...
0
votes
1answer
706 views

Customizing wordpress default widgets?

Is there anyway to customize the default WordPress widgets or do i need to create my own? For example, I want my recent post widgets to display date aswell. Thanks in advance! /Richard
0
votes
1answer
464 views

Widget's container?

I have some custom-made widgets: echo $before_widget; if ( $title ) echo $before_title . $title . $after_title; echo $output; echo $after_widget; Let's assume the $title is "Widget's ...