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

learn more… | top users | synonyms (2)

0
votes
1answer
172 views

Filter Text from sidebar widget?

Hey guys, I'm using a calendar plugin that provides a sidebar widget to show current calendar dates. However this widget always shows N/A if I don't set a category for a specific event. Any idea how ...
0
votes
1answer
140 views

WordPress archives widget causes Bing bot 404 errors

I'm using the standard WordPress Archives widget in dropdown mode on my blog. But apparently the Microsoft Bing spider gets confused by it, because the dropdown code looks like this: <select ...
0
votes
1answer
149 views

Minimum Widget Width for Plugin Development

I was considering a plugin that inserts itself as a widget in one's sidebar. Trouble is, I don't know what to expect for the minimum width in one's sidebar. Is there a standard?
0
votes
1answer
708 views

Script to remove all inactive widgets?

I've been working with widgets a lot lately and have amassed a ton of widgets in the inactive widgets collection. Can someone share a script or plugin that will remove all inactive widgets from the ...
0
votes
2answers
263 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?
0
votes
1answer
1k views

How do I use add_action on custom widget?

First hope you will take a look example widget http://pastebin.com/2cL7BmgF There have male and female option. Let say I select male and I want add male.css to wp_head When I put something like this ...
0
votes
2answers
237 views

Button in SideBarOther widget not showing up on all pages

An item in SideBarOther shows up on the main article listing page, but when I select an article (same page layout, the article replaces the listing), the item isn't there. There are two items in ...
0
votes
1answer
1k views

My Custom Widget does not save in sidebar

I created a custom widget, but it's not saving if I click on save. When I refresh the page it is not saved. My code looks like follows <?php /** * Plugin Name: Sending a Contact SMS * ...
0
votes
2answers
313 views

Different widgets in sidebar on sub-children pages?

I'm working on project, where I have different widgets on pages and also different order. Example - on About page I may have chat widget, then e-mail sign-up widget, then testimonials widget. On other ...
0
votes
2answers
239 views

Modifying the markup in the Tag Cloud widget?

I need to modify the markup of the tag cloud widget. Can someone tell me how to go about doing this without modifying any of the files outside of the theme directory so my changes don't get ...
0
votes
1answer
535 views

Removing default theme widgets

I am trying to remove the default widgets in a theme that I found here: http://top-wordpress.net/ The theme is Terapathy. In case of some of the most used themes, if I select the custom widgets, the ...
0
votes
1answer
625 views

Display posts from category in post content?

I am developing a website using WordPress. As I don't want the sidebar, I removed 'get_sidebar()' from my page. But I need to place a category in the content part (like a category for latest news) - ...
0
votes
2answers
1k views

How to make multi -column, interesting home page in Weaver 2010?

(I am pretty new to wordpress - am a C++ developer, not an html/css coder, but I am trying.) I am having trouble figuring out how to make a home page that has blurbs about some of our products, etc ...
0
votes
1answer
385 views

Sidebar login widget with error print, returns an error

i'm building a widget to login from the sidebar and print errors if any, so everything is working fine except that when i login it returns an error: Warning: Cannot modify header information - headers ...
0
votes
1answer
2k views

How do you force a sidebar widget to have a container div around all child widgets?

My theme creates several widget areas for the end user. However, I've got a slight problem in that, if multiple widgets are dropped onto any sidebar container, the resulting code in "view source" is ...
0
votes
1answer
452 views

Placing a widget with $wpdb query

I'm getting the feeling that adding Widgets via MySQL query is not as simple as I thought. I was under the impression all data is stored in the options table, but it seems like I was wrong. Any idea ...
0
votes
1answer
201 views

Missing sidebar parameter “fix” - before_content

as you know the sidebar parameters from register_sidebar() that control the widget layout are - before_widget - after_widget - before_title - after_title the problem is that you cannot implement ...
0
votes
1answer
8 views

Add drop down to widget if it is in a certain area

Is there a way to programmatically add a dropdown selector to any widget added to a given widget area? I have a header widget area and I'd like any widget added to it to have a dropdown box with the ...
0
votes
1answer
48 views

Widgets in WP 4.3 disappearing - How to fix?

I definded my widgets as seen in the following code. Since update 4.3 Wordpress did some changes i can not fix. Any ideas what i need to change in order to see the widget in the frontend again? I can ...
0
votes
1answer
16 views

Why can't I see “Widgets” in my Apperance menu?

So I am trying to create a widget-area. And after adding some code to the functions.php I noticed that I can not see "Widgets" in my menu. So I figured I had to add "widget support" to my theme so I ...
0
votes
1answer
24 views

Wordpress Widget Not Saving Instance

I have very simple wordpress widget, that has 3 input field. Whenever i submit data, it does not save to database. I have added and deleted the plugin , deactivated and reactivated multiple times, but ...
0
votes
1answer
67 views

Making jQuery .change() event persistent after widget save

I'm creating a custom widget that uses a select element with a bunch of options and a simple jQuery function to trigger the visibility for some <div>s below it based on the selection, through a ...
0
votes
1answer
44 views

passing variables inside a widget add_action

Here's my code inside a widget class: function widget($args, $instance) { add_action('wp_footer', function () { echo $instance['title'] }); } It doesn't output $instance['title']. I tried passing ...
0
votes
2answers
29 views

Output column number according to active sidebars

$sidebars = array( is_active_sidebar( 'footer-4' ), is_active_sidebar( 'footer-3' ), is_active_sidebar( 'footer-2' ), is_active_sidebar( 'footer-1' ...
0
votes
1answer
47 views

Radio buttons in widget not saving

I am struggling with a common issue that many people appear to have encountered over the years. In creating a widget I need a series of radio buttons. Using the code below I can create and show the ...
0
votes
2answers
50 views

Warning: Missing argument 2 for widget_title filter

Based on this question, I'm getting an error Warning: Missing argument 2 for.... This happens for some widgets those are created by plugins. -- Edit 1 -- Here's a simple widget that causes the ...
0
votes
1answer
41 views

How to save widget settings on field value change?

I'm developing a widget. Its form has two HTML select elements: one to display a list of all categories, and the other for displaying a list of posts based on the selected category. The posts HTML ...
0
votes
1answer
74 views

How to get options of all active widgets ?

I am currently using a loop that goes trough all sidebars looking for widgets than loop those again in order to get all widgets options. Doing this on add_filter('sidebars_widgets', array($this, ...
0
votes
1answer
16 views

How to allow editing of text in sidebar?

I am developing a theme which has an area of the sidebar which displays the blog owner's bio and photo as a background image. I could hard-code this information, however, I'd like to learn how to make ...
0
votes
1answer
543 views

Showing a Thickbox (tb_show) does nothing

I'm trying to add a media uploader to a widget/plugin and I'm at the stage where I need to add a picture from the media library (or upload a new one). I added some javascript and added an event to a ...
0
votes
1answer
39 views

Can't save widget

I can't save widget. When I click save, I can see wait circle, and nothing happend. When I visit again widgets section, it's empty. Then I changed view to Accessibility Mode, and still no luck. Then ...
0
votes
1answer
51 views

How to activate or install the Gallery Widget?

I would like to activate the Gallery Widget which is presented here. It seems that it's part of the general Wordpress distribution but the widget is not listed under Appearance → Widgets. BTW, I don't ...
0
votes
1answer
168 views

Remove the widgets tab from theme customizer

In some of our sites, I would like the site admins to customize the widgets only on the widget page, and not in the Theme Customizer. How can I remove the widget tab from there?
0
votes
1answer
28 views

How should I add a “widget” like element?

I would like to add a custom slideshow like "template" which can be called in to other template files. My first thought was to create exactly that; a separate slideshow.php template file which ...
0
votes
1answer
34 views

Shortcode into widget

I have this particular shortcode "[example]" I know I can put this in a text widget to make it work. But I was wondering about how I can turn this into a widget called "Example." Any suggestion? ...
0
votes
1answer
68 views

Can I have a widget and sidebars in custom theme?

Wordpress 4.1.1: simular problem to another question: I have a add_action widgets_init call back in which I have a call to register_widget that registers a class and a call to register_sidebar that ...
0
votes
1answer
41 views

All Posts Have The Same Comments

I'm getting a really weird bug. I'm getting the same comments from 1 specific post which is the "Hello world" for every single post! But when I remove a bit of code for a recent posts widget that I'm ...
0
votes
1answer
166 views

Extending the WP_Widget_Text class

I am trying to alter the output of the default WordPress text widget. Since the widget is written in OOP I hoped it could be a simple deal of extending the class and overwriting one method – but it ...
0
votes
2answers
255 views

Widgets won't save

I have almost no experience in creating widget area's and I am stuck at saving the widgets in the widget area 'red menu'. I have searched a dozen posts but I can't seem to get it working. I am ...
0
votes
1answer
304 views

Custom widget doesn't save values from dropdown box

I am trying to save the value from a dropdown box on a custom widget created by me. the title from the same widget is getting saved, but not the values from drop down box. Can someone please help me? ...
0
votes
1answer
42 views

modifying title (in dashboard) for different widget instances

When I insert multiple instances of widget in a particular sidebar, they all appear by default collapsed and with the same title. E.g.: In this case, the user can upload a different pic to each ...
0
votes
1answer
38 views

How do I make the title of the following widget editable?

I have the following widget which displays basic info for a game: class Game_Info_Widget extends WP_Widget { /** * Register widget with WordPress. */ public function __construct() ...
0
votes
1answer
68 views

How to translate Widget Description in constructor?

I'm building a localized widget and the translation works everywhere but in the language string in the constructor. I have read that the whole plugin initialisation has to be bound to the init ...
0
votes
1answer
1k views

Modifying the default search widget

I'm creating a plugin widget that does a different search from the normal default search widget. I copied the code from the default widget: class new_search extends WP_Widget { ...
0
votes
1answer
40 views

Do I have to widgetize my pages?

I have a three pages. On front page I want to show some custom test about page1,link to page1, custom text about page2, link to page2, custom text about page3, link to page3. And then I want a ...
0
votes
1answer
452 views

Static image for embedded YouTube video instead of blank player?

Thanks to this answer I have embedded a YouTube video in a Text Widget using [video src="http://youtu.be/JQ_2De2cnzI&rel=0&showinfo=0"] However it displays as this blank player when the ...
0
votes
1answer
63 views

display specific widget to a page

im trying to display a specific widget i need for the header current im using a code to display all widgets but my problem is that if I add additional widgets it will destroy my site. ...
0
votes
1answer
71 views

How can I retrieve data within my widget

I have a Widget which I am creating but my quesiton is how do I access my custom table which I created via my plugin. I am attempting to fill the dropdown from the table called tfp which contains the ...
0
votes
1answer
103 views

Why isn't my custom widget outputting any content?

I've been following numerous tutorials and codex pages in order to make my own widget in WP 4.0. It seems as though I'm very near; I can output something from the widget, just not any of the fields. ...
0
votes
1answer
263 views

Escape HTML on WP input

I am slightly stuck on creating a widget, it has an input (bit like the default text widget) but got an issue adding html into it. My code is: $instance['content'] = ( ! empty( ...