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

learn more… | top users | synonyms (1)

4
votes
1answer
35 views
+100

Can I display the widget admin in the page admin?

I would like to show the 'Appearance -> Widgets' menu underneath the text field in 'Pages -> new/edit'. Is it possible to take one part of the admin and show it elsewhere?
0
votes
0answers
10 views

wp_dropdown_pages in widget form

I have a small quirk somewhere in my widget form. Upon saving the widget instance, the form refreshes with the wrong selected 'page_id' from the wp_dropdown_pages input. If I refresh the widgets page, ...
1
vote
1answer
16 views

Hide all Dashboard Widgets (not remove)

Is there a to hide all dashboard widgets, not remove them? I want my widget to be the first widget but according to the docs there's no way to specify where your widget shows up since it's all "core", ...
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 ...
0
votes
1answer
30 views

Wordpress widget title coding

I have a problem with wordpress widget titles, some widgets are not affected by theme custom encoding. Here is the codes; function ecce_widget_title($title){ if( empty( $title ) ) return ' '; else ...
0
votes
1answer
250 views

How to “pair” two widgets side by side in one sidebar

Currently I use the Pinboard theme with 2 sidebars. In each sidebar I place one kind of widget several times. The point is that 2 widgets of a row (1 of each sidebar) belong together regarding the ...
0
votes
1answer
218 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 ...
-5
votes
0answers
17 views

I have a small favor to ask - Would you please do a small test for me? Takes 1 min! [on hold]

What I'm asking as a favor is that would someone take a quick look at my page http://raekwon.rocksolidpromotion.com/discs-baby and see if the iTunes widget on my wordpress site shows your local ...
0
votes
0answers
21 views

WooCommerce: Product price filter not showing up [on hold]

I'm trying to add two widgets (filter price and navigation layer) to my sidebar but they are not showing up. sidebar.php <aside id="sidebar"> <?php if ( is_active_sidebar( 'sidebar-1' ) ...
0
votes
0answers
28 views

How can I add widgets to specific post

Some of my post are longer than others. On those post I want to display more widgets for social media and such to fill in space, as well as to gain more exposure. I know there are plugins but I ...
1
vote
3answers
380 views

How to show different widgets on different pages in a user friendly way

I'm looking for a plugin to let users choose which widgets appear on individual pages. There's some solutions out there, none of which that I've found are truly easy for a non-technical user. I've ...
2
votes
3answers
246 views

How do I save data from submitted form from widget

I'm looking over internet for some simple solution of email subscription widget but no luck. Or they are too complicated and paid, or they are relaying on some external email functions. I'm not a ...
0
votes
0answers
18 views

Special characters showing in fallback font

I have created a widget that displays some text using a custom font imported with CSS @font-face. The font have support for scandinavian characters åäö, but when I display these characters in my ...
0
votes
3answers
21 views

Pass widget variable to external function

I am working on a custom widget which displays posts from a selected taxonomy (category or tag). This widget contains a textbox which the user enters an ID of a taxonomy (category or tag) to exclude ...
1
vote
2answers
34 views

Can I remove a widget area without editing code?

I am dealing with a Wordpress setup which has 2 widget areas. One seems to be breaking the page, and I want to remove it. Here is the screenshot of my widget setup How can I remove the Main ...
1
vote
0answers
8 views

Widget on the right side of the page overlaps with the left side

I added the mailchimp widget to the right column of my blog. But for some reason, it overlaps with the main content of the blog. Here is a screenshot of what happens Would anyone know why this ...
1
vote
3answers
278 views

Widget “Save” resetting jQuery hidden fields

I have a widget plugin that I've created, that lists about 10 fieldsets. jQuery runs at the beginning and hides and fieldsets that have no values. There are also buttons that allow to "Add" and ...
0
votes
0answers
23 views

What's the policy for building a theme that doesn't support widgets/menus?

I'm developing a minimalistic theme, and my plan is not to include menus or widgets in it. The Theme Review page on wordpress.org states: Whether implementing required, recommended, or optional ...
1
vote
1answer
17 views

Extending WP_Widget throws error when Monster Widget used

I wanted to override the output for the core Recent Comments Widget. I extended WP_Widget_Recent_Comments made the changes needed and it displays exactly how I want. However, I have now tested the ...
1
vote
1answer
59 views

Call sidebar from a template

I need to call a sidebar into my header. I've switched to the new twenty twelve theme and created my own child theme. With this new theme I decided to keep things organised and together, so I put my ...
1
vote
2answers
552 views

Making footer widgets responsive

I have 4 footer widgets in the theme I'm working on. It works great. The only thing that I can't get to work is the responsiveness of the widgets. The 4 footer widgets keep on showing up next to each ...
1
vote
2answers
40 views

Debug errors on sidebar

I'm uising a child theme of twentyfourteen on wordpress 3.8. When in debug mode, I get the following errors regarding a widget. Notice: Trying to get property of non-object in ...
-1
votes
0answers
22 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 ...
4
votes
4answers
2k views

Adding a div to wrap widget content after the widget title

I'm trying to add a div to a widget's content in my dynamic sidebar. Here is the register code; register_sidebar(array( 'name' => "Sidebar1", 'id' => 'home-sidebar-1', ...
1
vote
2answers
219 views

Add description to custom text widget and display the 5 recent post titles

I just started coding and working as an intern for a company. My boss asked me to create a custom text widget for practice in making word press widgets. The problem I am running into is I have no idea ...
1
vote
3answers
66 views

Displaying a widget only on long posts (over X characters)

I'm looking to display a standard wordpress widget only on posts that are over X amount of characters in length (or another method that can roughly calculate the height of of a post.) I am looking to ...
3
votes
0answers
44 views

Prevent second widget activation

Is there a way to "remove the widget from available widgets" after you've activated it once on some area? The idea is to allow user to activate only one instance of it.
1
vote
2answers
363 views

Conditional tag in Widget Logic for checking if top level page or if subpage

I'm using the Widget Logic plugin to show widgets on certain pages using Wordpress Conditional Tags (or any general PHP code). What I would like to do is only show a widget on child pages, not top ...
0
votes
1answer
27 views

Widget checkbox array empty on update function

I have a widget that is not passing checkbox state to $new_instance, specifically $instance[ 'posts' ]; if I dump $new_instance in the update function it is empty? All the other instance variables are ...
1
vote
1answer
570 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 ...
0
votes
1answer
25 views

Apply code for all else first block

I have this code for sidebar in Wordpress :- register_sidebar(array( 'name' => 'Main sidebar', 'description' => 'main sidebar.', 'before_widget' => '<div id="blocks" class="siderbar ...
1
vote
1answer
49 views

Widget options get

How to get widget options? I've tried like this, like seen in the other question "Using widget options outside of the widget": $w=get_option('widget_wp_mywidget'); $one=$w[2]["myval"]; ...
0
votes
0answers
16 views

Restore Theme based sidebars after migration

I migrated a site with the Cosily theme using BackupBuddy. I never had issues before and the clones were always flawless. Now I had to do it manually and some urls were not adjusted properly. I ...
0
votes
1answer
34 views

Insert to wp_footer if widget is found in the sidebar

I trying to insert a code into wp_footer whether the widget is present or not in the sidebar. How to avoid the unnecessary code in the footer? Add the code only if widget is present the sidebar. ...
0
votes
1answer
39 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 ...
-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 ...
0
votes
2answers
28 views

is_active-sidebar loop

So I have 4 widgets which is in large-3 columns, when they're not active I place a placeholder as user guide so the user would know where to put what. I did manage to work out the is_active but it ...
2
votes
1answer
37 views

List sidebars on a page

I need to generate a list of sidebars on a given page. I know how to list all sidebars that have been registered, and all sidebars that have been registered that have active widgets, but I do not know ...
-1
votes
0answers
16 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 ...
0
votes
1answer
27 views

Random sidebar/widget background

Does anyone have a clever idea to get a random/changing background for just the widget sidebar?
0
votes
2answers
320 views

Unable to load “wpColorPicker” on theme customize page

Whether I'm using a Wordpress default theme or a custom one, I see the JS error: Uncaught TypeError: Object [object Object] has no method 'wpColorPicker' when I click "Customize" on the theme. I've ...
0
votes
2answers
1k views

Creating a custom menu/widget area

I'm looking to create a /menu/widget area like the following site: http://www.microsoft.com/en-gb/default.aspx please see sections under downloads, security, support, about is this considered a ...
0
votes
0answers
12 views

How to add rewrite rules adjust to permalink structure

I want to create an Archive Widget for Custom Post Type (product). I let my client to change permalink structure by himself. So, my question is: how to add rewrite rules adjust to permalink ...
1
vote
1answer
270 views

How to remove the parentheses from the category widget

In the default category widget, when you check the "show posts count" checkbox, the number of posts appear surrounded by parentheses, how to remove them.
6
votes
3answers
171 views

Author template, filter sidebar widgets by author?

I'd like to be able to filter my sidebar widgets (tag cloud, category, archive) to only show those tags/categories/months that apply to a given author on the author template. What is the correct way ...
1
vote
1answer
25 views

Why use dynamic_sidebar() conditionally?

In the codex example of displaying sidebars, what is the significance of the conditional wrapping around the call to dynamic_sidebar? Why do this: <?php if ( ...
0
votes
0answers
49 views

Using javascript on the new widget preview / customizer page

Widget customizer has just become core in WordPress 3.9. I'm trying out the beta version hoping to get widgets working on the customize screen in the same way I have on the ordinary widgets page. Some ...
1
vote
2answers
5k views

Wordpress select dropdown list in widget

Ok, I'm developing my own widget and I've a HUGE problem. I don't know how to fetch and eventually save html selects value. Simple example: /* initialize TITLE */ function widget( $args, $instance ...
0
votes
1answer
43 views

Use of apply_filter in plugin/widget class

I'm having difficulties to find out what I'm doing wrong in my use of apply_filter() in a widget class. Here's some samples of my code: class Byad_CountDown_Widget extends WP_Widget { function ...
1
vote
1answer
35 views

How to add a text widget during theme activation

I'm trying to add a text widget with the title and text set, to two custom sidebars in my custom theme. But, I can't find a clear walkthrough of how to do it. I've seen bits of code here and there, ...