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

learn more… | top users | synonyms (2)

0
votes
0answers
5 views

How to remove extra space from li of wordpress widget?

I am building a some WordPress widgets. During this I am facing some problems. When I am using <ul> <li> then my layout taking some margin or padding, but when I am using <td> or ...
0
votes
0answers
8 views

Widget not notifying customizer of changed value when updated via Javascript

I'm developing a wordpress theme that relies heavily on widgets for flexibility. I'd like to use the wp media javascript library to add images to some of these widgets instead of just having a text ...
0
votes
0answers
10 views

Can't display tag cloud by widget

I want to display tag cloud products and to use the widget of woocommerce - Tags products. Tags isn't displayed even though they are added to the 90% of the products. Tested on other sites and work ...
0
votes
0answers
20 views

Custom file with special code of category widget

Is any way to define custom code/file of standard class-wp-widget-categories.php for my theme? In standard WP class-wp-widget-categories.php list is printed in simple <ul> tag. I need to add ...
0
votes
0answers
20 views

Advanced Custom Field in dashboard

I'm looking for a way to add a dashboard widget that has a ACF text and image field in it. I want a client to be able to quickly update a text field right from the dashboard. Any ideas on how to ...
0
votes
0answers
15 views

Edit recent post widget

Is possible to add featured image from post to widget area too, for only 1st post, if yes please advise Like this site: http://postimg.org/image/etwxba4nz/ I have asked the theme author, he's answer ...
0
votes
0answers
15 views

Handling dozens of sidebars

We have the job to realize a page with custom sidebars. Sidebars can be created on the fly on post an page edit screens, to add a custom sidebar on each page. The client wants to use this to add ...
0
votes
0answers
18 views

In need of help with a “Notes” section

I am in the process of developing an educational website where each post is a topic of information or a "Module". I would like to give our students the ability to write down quick notes and items to ...
0
votes
0answers
23 views

Refresh the Customizers preview after editing fields

I'm using ACF fields on a few custom widgets. While using the Customizer to edit fields, they will save on change but the preview will not refresh. Calling wp.customize.previewer.refresh() will ...
0
votes
0answers
22 views

How to add a dynamic image as a widget in dashboard

I'm trying to add an image as a widget on the dashboard screen like this: This is an ads image, which will be seen only by users with read role and that too will be changed every month. Already I ...
0
votes
0answers
41 views

Widget Text - how to get the content with the_widget function?

I added some text with a title called 'Follow Me' in my WP text widget and I want to get this text by using WP code, so I following this guide: the_widget( 'WP_Widget_Text' ); But nothing is being ...
0
votes
0answers
16 views

Widget form is not saving value that retrieved based on taxonomy terms

Custom Post Type: employee Taxonomy: department Here is the code:for widget form function form( $instance ) { // Output admin widget options form if ( post_type_exists( 'employee' ) ...
0
votes
0answers
16 views

Check over a small apply button widget I have made for WP Job Manager

I have made a small widget that displays the apply button in the page sidebar. I am still quite new to WordPress widget development and am wondering if somebody would be kind enough to have a look ...
0
votes
0answers
21 views

taxonomy terms are not retrieving

My custom post is "employee" Its taxonomy is "department" I made a widget for showing taxonomy terms. but it is not working. What did I miss? class Employee extends WP_Widget { function ...
0
votes
0answers
37 views

How to hide default sidebar widgets?

I'd like to hide/not display all default widgets(Search, Recent Posts, Recent Comments, Archive, Categories and Meta) which are inserted into custom sidebar when the theme is installed. (Removing them ...
0
votes
0answers
13 views

Widget that allows image selection

I'm trying to develop a widget that allows the user to select an image to display on said widget. Right now, i'm getting the image from the library and displaying it's thumbnail on the widget's ...
0
votes
0answers
26 views

Can anyone explain this Widget output code?

I'm trying to read and understand a widget from a Wp theme. This widget basically allows the user to display up to 3 featured pages with their corresponding featured images or thumbnails. I ...
0
votes
0answers
42 views

How can I use wp_widget_rss_output to show my site's feed in the dashboard?

I have a dashboard widget working and I'm trying to use wp_widget_rss_output to display the site's rss feed in that area. The problem is that the only thing showing up is an error. ...
0
votes
0answers
11 views

Cloudfare Rocketloader ignore help

in cloudfare i enabled rocket loader and its super charged my site however few widgets etc has become a problem. my footer widgets have turned white here is the code i got <footer id="footer" ...
0
votes
0answers
19 views

Script in sidebar blocks other widget's load

in my Sidebar, before the widget generated from Wordpress, I have this PHP script that fetches the latest threads from my vBulletin 4 Forum: <div class="box newtopics"> ...
0
votes
0answers
55 views

How to get variable IDs from OOP in jQuery?

I created image widget and tried to use $variable ($this->get_field_id('widget_image') in jQuery. Unfortunately, I cannot get it in jQuery. It shows Uncaught ReferenceError: object_name is not ...
0
votes
0answers
50 views

Wordpress Widget: How to pass $this->get_field_id() to javascript

I would like to pass $this->get_field_id() from widget to jquery. How can I do? Now, I tried to do like this with no luck. var Id = $('.media').attr('id'); console.log(Id); Result: ...
0
votes
0answers
11 views

How to remove Help tab and the Widget empty border

I only need to know using code in my functions.php, how to remove the Help tab and the Widget border when it's empty. I found answers here but the date is old and things are changed so, i want an ...
0
votes
0answers
9 views

widget titles are hidden when logged out

At some stage of my development i recognized that the titles of the widgets disappear when user logged out of my site. Any Ideas how to debug this error? Might be is_user_logged_in at some point ...
0
votes
0answers
10 views

WordPress Custom Widget Media Upload

OK I am not a programmer and after reading lots of tutorials I have managed to make one custom widget that just works with texts. Now in this code of mine I want to make a media uploader. Can anybody ...
0
votes
0answers
42 views

Error extending widget class defined in another plugin

I am trying to extend a widget class from another (widget) class in a 3rd party plugin - so hierarchy like this: 3rd_Party_Widget extends WP_Widget (in 3rd party plugin) My_Widget extends ...
0
votes
0answers
16 views

How do I keep WP content in sync with an external spreadsheet or document?

I've been thinking about this and googling solutions for a couple days and haven't made much progress, so I figured I'd get some suggestions. I have an intranet site built in Wordpress that has a ...
0
votes
0answers
46 views

Create new sidebars trough admin post/page metabox

I have this bit to register sidebars dynamically: function my_custom_sidebars() { $sidebars = get_option('my_theme_sidebars'); // get all the sidebars names if ( ! empty($sidebars) ) { // add a ...
0
votes
0answers
15 views

widgets have disappeared from sidebars

I disabled a few plugins (widget logic, tinymce advanced, black studio TINYMCE, remnove widget titles ). I also swapped themes. When I everything backthe widgets I had created have disappeared from ...
0
votes
0answers
21 views

Widget Admin page and Javascript enqueuing

I am authoring a WP Widget plugin, and am having problems enqueuing javascript onto the Widget Admin page. The Javascript works when the page is first loaded or refreshed, but when you click "Save" on ...
0
votes
0answers
15 views

Order of sidebars in Appearance > Widgets

How do you change the order that the sidebars appear in the Appearance > Widgets page? I have code like: register_sidebar(array( 'name' => 'Home 1', ... register_sidebar(array( 'name' ...
0
votes
0answers
25 views

Menus Removed from Custom Widget Area

I’m hoping someone out there can help me out with this issue I’ve been scratching my head about for some time now. At my place of employment we have a WordPress site on our intranet, running a child ...
0
votes
0answers
12 views

Stop responsive widgets realigning on website

I've been trawling the net but can't find a lot. Essentially my website is using the customizr theme with site origin page building blocks to create it what it is. I'm trying to stop the widgets (2 to ...
0
votes
0answers
30 views

how to prevent google from indexing the calendar widget results?

I added WordPress calendar widget to my website. after that when i search google for my website i see the results pages indexing my calendar instead of the posts. for example this would be my google ...
0
votes
0answers
58 views

Add and remove fields

I'am trying make a wordpress widget. It should add an remove field on click, but it doesn't work. Another field will not displays on page. Can you help me please? (sorry for my english, I am not very ...
0
votes
0answers
19 views

How do I move a widget in the header?

I am using the Divi theme with the Divi booster plugin. The plugin give me the ability to add a widget into the header below the main menu. I would like to move the widget to above the main menu. Here ...
0
votes
0answers
18 views

Wordpress custom widget into sidebar not showing

I'm trying to add my custom fb_widget to the sidebar. The default widgets can be added. Below is the code for the widget: /** * Adds FB_Widget widget. */ class FB_Widget extends WP_Widget { ...
0
votes
0answers
28 views

Updated widget options in old_instance

I need to compare the old instance of a name parameter with one the user inputs. If it's different, then I do some other magic. However, the if condition never returns false, despite inputting a ...
0
votes
0answers
159 views

How to display most popular posts from certain category in sidebar?

Assume I have a menu based on categories (jazz, rock, classic). I would like to display most popular posts (in sidebar widget) depending on which page I am (on jazz page I would like to have most ...
0
votes
0answers
68 views

Uncaught error when calling .select2() on widget update in WordPress widget.php

Uncaught query function not defined for Select2 s2id_widget-daily_deal_widget-__i__-select_product displays when calling .select2() on widget update in WordPress widget.php ...
0
votes
0answers
109 views

Add HTML wrapper around widget content

I'm using genesis as my framework but i need help to to add some html markup on my register widget. I know by default its add html mark up but I want to add more inside of it how would I do that? ...
0
votes
0answers
77 views

Use custom taxonomy to filter posts dynamically in widget

I am making a travel agency website for a client. I am making a widget that will show related packages (a custom post type) for whichever location page they're on. My results show that the widget ...
0
votes
0answers
32 views

Display the id list of active widgets of same sidebar?

The condition is i have to check the id of active widgets of one sidebar and hide some widgets based on id of the listed widgets.Any ideas ...
0
votes
0answers
62 views

Add and remove fields in wordpress widget

I am trying to make field adding and removing wordpress widget. I made it in html jquery, but I don´t know, how can I transform it to wordpress widget. Can You help me please? My jquery and html ...
0
votes
0answers
102 views

Use Media Uploader in Widget

I am trying to use the Wordpress Media Uploader inside a Custom Widget. When I use a similar code for a custom meta box inside the post edit screen everything works fine, but on the widget site it ...
0
votes
0answers
118 views

How can I move the Woocommerce Sort button to a widget in the Shop Sidebar?

How can I move the Woocommerce Sort button to a widget in the Shop Sidebar? I don't see any options to do this even within plugins, which is confusing to me. It seems a great place to have it - above ...
0
votes
0answers
109 views

Trouble with Dynamic Input on Widget, Unable to get Widget ID

I'm trying to create Widget with dynamic input as the widget options. The Option fields are Feature (text), Price (text), and Picture (Text with upload button). For some reason, I couldn't get the ...
0
votes
0answers
12 views

How to replace a widget by editing it in the child theme?

I am fairly new to wordpress. I heard that changing a theme widget in the theme itself is not a good practise. I want to edit a certain widget by copying it into the child theme. The widget in the ...
0
votes
0answers
31 views

Are dashboard widget settings global?

I followed the example of how to create a create a dashboard widget from WordPress' site to make a widget that reads an RSS feed and displays the items (yeah I know there are plugins that do this but ...
0
votes
0answers
114 views

After wordpress widget save (ajax call) tinymce editor gone, data not saved

I have made tinymce editor for textarea fields in widgets. I'm enquing scripts: wp_enqueue_script('tinymce', home_url() . '/wp-includes/js/tinymce/tinymce.min.js'); wp_enqueue_script('tiny', ...