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

learn more… | top users | synonyms (1)

3
votes
1answer
2k views

How Can I Duplicate a Widget?

By duplicate, I don't me copy the code from a (core) widget and change it a bit. That's pretty easy. I want the push button ability to grab all the settings from a given widget, copy them, stick them ...
2
votes
1answer
79 views

Trying to wrap <span> around first word of multiple word strings with a widget_title() filter, only works on two word strings and not more than two

I am trying to wrap a around the first word of multiple word widget titles. I have used the answer from here: ...
2
votes
1answer
78 views

add widgets to dashboard for easy access for clients?

I have a widget created: if ( function_exists('register_sidebar') ) register_sidebar(array( 'name' => 'Featured Video', 'before_widget' => '', 'after_widget' => '', ...
1
vote
1answer
33 views

Registering a stylesheet inside my WordPress widget

I did see the other topic similar to this but I cannot get mine to work. I am using WordPress 3.8 and am creating a custom widget for a site. I need to style it a certain way so I need to load an ...
1
vote
1answer
70 views

Adding WordPress colorpicker in widget settings

I want to add the WordPress default colorpicker in widget settings form. Here's what I'm trying: In my functions.php, I have this: function widgets_scripts( $hook ) { if ( 'widgets.php' != $hook ...
1
vote
1answer
197 views

How to hide a widget area on a specific page

I'm trying to remove a widget area called 'Primary' from a certain page on a site. This is the function where I manage the sidebars: //ADD CATEGORIES IN SIDEBAR OF SINGLE POST TYPE add_action( ...
1
vote
1answer
55 views

Restrict access to specific widget field based on user role

I'm looking for a way to restrict the ability to drag certain widgets to specific widget areas in the widget editor. For example, I would like to restrict the widget field 'ads' to only be available ...
1
vote
1answer
80 views

How do i place same widgets multiple time by default on theme activation?

I am creating a portfolio theme and want to place some widgets on sidebar by default on theme activation. I did it but the problem is that, I want to place Text widget two times at the same sidebar ...
1
vote
1answer
575 views

How to register custom menu widget

I'm trying to register a custom menu widget programmatically with wp_register_sidebar_widget, but it doesn't appear in wordpress. I'm using remote call of that method (xml-rpc). Referring to codex I'm ...
1
vote
1answer
248 views

How do I use wp_editor() in widget form?

I'm trying to use the built-in Rich-text (wp_editor()) editor in Wordpress for my widget, but I can't seem to find any simple way to use it.. I know you can use it, as Black Studio TinyMCE can do ...
1
vote
1answer
104 views

How to create a dashboard widget for one user

I will start by warning you that my programming skill is limited. I need to create a dashboard widget that will display in the WP dashboard for the users with the user_id=21. So far I have tried the ...
1
vote
1answer
61 views

Want to be able to sign up subscribers as authors

I want to be able to select a subscriber an author of a post in the admin so it displays their name as having written the post, but I do not want to give them any additional privileges (if they login ...
1
vote
1answer
118 views

How do I create a widget to embed the code for a sign up form, so that the sign up form appears on every page?

I'm going to follow the instructions here: http://kb.mailchimp.com/article/how-can-i-add-my-signup-form-on-my-website to create a sign up form on my website. I think I need to embed the code that I ...
1
vote
1answer
102 views

How to call widget by widget's id?

Is it possible to call widgets using it's id? for example I have a sidebar. In this sidebar I put meta widget and tag cloud widget. I have got their id's ($widgets_list): 'meta-2' and 'tag_cloud-2'. ...
0
votes
1answer
41 views

how to use get_field_name in external ajax handler

I am loading new form fields from Ajax when I click on radio button in my custom widget. In Ajax callback handler, I need to use get_field_name and get_field_id widget class methods. get_field_name ...
0
votes
1answer
24 views

Creating a Playlist of Widgets

I'm trying to create a specialized theme that would enable users to show a playlist of widgets in their sidebar. By playlist, I mean that each widget in the sidebar would follow a specific schedule. ...
0
votes
1answer
54 views

How to display only some widgets of a sidebar?

I would like to break up a sidebar over three containers. Each container should hold up to three widgets of the sidebar. Therefore, I need to find the HTML for only the widgets 0 to 2, 3 to 5 and 6 to ...
0
votes
1answer
38 views

How to add Custom Fields to Settings in Widget Options for all Registered Widgets?

I want to add input box in the custom form when we click for Widget Settings. Really like to have this additional text box in all widgets be Custom Made or the default ones. I'll be needing help in ...
0
votes
1answer
26 views

jquery conflict with widget page

I'm trying to create a widget plugin that uses a jQuery code to show/hide divs in the widget form based on the selected option of a select drop menu. The jQuery code I'm trying to implement is ...
0
votes
1answer
40 views

Show editor widgets only on pages that use a specific template?

I am utilizing the following code to add an additional three Featured Images to homepages in a multisite installation: if (class_exists('MultiPostThumbnails')) { new MultiPostThumbnails( ...
0
votes
1answer
31 views

Widget front-end fails to echo as expected from checkbox

Context: This is my first widget and I am following along with an online tutorial. I am expecting the front-end of the widget to echo some content upon checking a check-box in the back-end form, but ...
0
votes
1answer
27 views

Name Input from widget displays Sidebar name instead of saved data

I wasn't sure how to title this question,so I apologize. Let me first state that I have no experience with this type of code but I really need to this feature for my website, so I appreciate all the ...
0
votes
1answer
111 views

Multiple entries in get_option results? or why is _multiwidget set to 1?

I am developing a wordpress widget, and need to store some user configuration values, that is why I am using wordpress update_option and get_option. I am new to widget development. I have some ...
0
votes
1answer
30 views

Need help using a filter on the default Categories widget

I need to add the "All Categories" item to the default WP categories widget. I can see that there's a filter that I can hook into in the core (line 485 default-widgets.php). ...
0
votes
1answer
234 views

Display custom widget value in header.php

I am using the code below for a custom widget. I have added some fields in the widget like: Title, Name and a checkbox. Now everything is fine but I want to show those values in header.php. Any idea ...
0
votes
1answer
23 views

Page full of widgets?

Is it possible to create a page which is just lots of widgets? most WP sites I see the widgets are in the sidebars, but I want a page which is just widgets and nothing else. The theme I'm currently ...
0
votes
1answer
81 views

How do I update the formatting of the Mailchimp Subscribe Widget

Installed the Mailchimp Widget in the sidebar of my website and the formatting for the widget is askew. I need to shorten the length of the "Submit" button. I want to remove the two radio buttons that ...
0
votes
1answer
52 views

How to show a feed that requires user/pass within a sidebar widget?

I'm trying to do something and I don't seem to yield any successful results when searching neither at wordpress.org forums nor here. I would like to extend the standard RSS widget so that I can set ...
0
votes
1answer
625 views

Show Woocommerce Product “attributes/extra information tab” in widget

I have a question concerning WP in combination with WooCommerce, I hope someone can help me out. When viewing a product on the site I would like the "extra information tab" (containing all the ...
0
votes
1answer
32 views

Banner editable from backend

Im trying to create a widget area. Ive added this to the theme. <?php if ( dynamic_sidebar('myWidgetName') ) : else : endif; ?> And then i register the area with function ...
0
votes
1answer
58 views

Count widgets in position and set class

(Please be gentle, I'm transitioning from Joomla development.) I am using Twitter Bootstrap for this client and I would like the "bottom" widget position to work "automatically" for my client as I am ...
0
votes
0answers
184 views

How to hook into drag-and-drop / collapse-funktion from backend?

I am building a free theme for knowledgemanagement. At the frontend i want to drag and drop and collapse the elements (articles, widgets, ...). I look a lot of time to several tutorial but can't get ...
0
votes
0answers
102 views

Show most popular posts widget which is unique for each author

There are lots of popular posts plugins and most of them offer widgets as well. but so far, I haven't found one that allows you to filter the popular posts based on the author. I want each author to ...
0
votes
0answers
66 views

The widget->form parameter is empty even though options have been saved

Why is $instance empty in Widget->form($instance)? How comes WP can use it to fill out the form , but I don't have access to it's contents? The widget is technically working, I can save the ...
0
votes
0answers
205 views

Wordpress $wpdb->query() inserts multiple rows with duplicate data

I am experiencing very strange problem with wordpress query() function. I have a form on page 1 where below code to insert a new record. if(isset($_POST["transaction_id"])){ global $wpdb; ...
0
votes
0answers
58 views

Custom widgets in theme option page

I'm trying to create a simple theme options page that uses widgets to change the layout of content on the front page. I started off by using meta boxes not realizing that the position is based on ...
0
votes
0answers
21 views

My blog has a design issue.

My blog has been getting a good visitors these days. I have used linkwithin add ons to show related posts. But the problem is it is showing related posts in even homepage. Is there any way to not to ...
0
votes
0answers
27 views

Widget Disappearing in IE

Im debugging my site in IE, and my widget area is disappearing. http://pcdconsultancy.co.uk/ Any ideas? I have no transparency or anything on this.
0
votes
0answers
59 views

Getting a “Cannot modify header information - headers already sent by…” after duplicating widget

This probably isn't the smartest way to go about it, but I'm very close to launch and the client wanted a news widget displayed two ways. Our theme's news widget displays a settable number of news ...
0
votes
0answers
16 views

Widgets input/content not visible

I created a theme, and when I drag and drop a widget in the widgets area the widget's content is hidden. This is what I attempted: Switch with other theme and activate my theme (doesn't work) copy ...
0
votes
0answers
74 views

Adding custom widgets to theme sidebar on activation

I have a custom widget in my theme with the id of "widget_my_box_menu" and I'm trying to add that widget to my theme's main sidebar on theme activation. The main sidebar's id is "home-sidebar-widget" ...
0
votes
0answers
54 views

List.js inside WordPress widget

I am trying to implement list.js (http://listjs.com/) inside my WordPress widget, so far with no success. At first I have tried it in a simple index.html file outside the WordPress environment just ...
0
votes
0answers
39 views

Hide Widgets depending on Custom Field Value

I have Wp-Types Toolset as my WP building blocks and with it I created a Custom Field Group called Featured Listings. Within the group I have a field called Featured Ads and that has Radio Button ...
0
votes
0answers
62 views

wordpress pages sidebar widget missing on homepage

http://www.dual-diagnosis.org.uk/ The Sidebar widget with my links in on the right is missing from the home page, it appears everywhere else just not here, any ideas?
0
votes
0answers
28 views

Adding a widget breaks my child theme - *But I'm not calling any widgets!*

I'm trying to design a child theme, based off of twentytwelve, and I'm running into a puzzle I can't even figure out how to troubleshoot. Basically, my theme explodes when I enable any widgets. It ...
0
votes
0answers
220 views

Wallpress responsive page element with widgets

Recently, I use a free responsive themes from designwall.com named wallpress (http://www.designwall.com/wordpress-theme/wallpress/). I'm a wordpress beginner, so there are several stuffs I still ...
-1
votes
0answers
5 views

Business-Oriented Plugins

I've recently started building websites for local businesses and freelancers using WordPress. In order to help my clients, I'm trying to put together a small list of go-to plugins/widgets that would ...
-1
votes
0answers
24 views

Custom Menu's don't register when in widgets

I'm hoping someone can point me in the right direction. The site I'm working on has multiple custom menus created that I'm trying to add onclick functionality to. I went ahead and installed the ...
-1
votes
0answers
13 views

Get widget options outside widget

I'm basically looking to achieve the same as this guy. I want to conditionally load stylesheets inside wp_enqueue_scripts based on a particular option for each widget. For instance; on page 1 I have a ...
-1
votes
0answers
17 views

How do i make a tab menu consisting of sidebars or widget areas NOT just widgets

or alternatively a tab menu where each item is a display of more than one widget, I was wondering how i should go about achieving this effect with wordpress, i currently have a number of ...