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

learn more… | top users | synonyms (2)

2
votes
0answers
37 views

How to make a widget expand wider than the column width when editing its settings in the admin

The WordPress Text widget expands horizontally beyond the margin of the sidebar when added to a sidebar and opened in the admin and I am trying to apply that function to a widget. I see inline css is ...
2
votes
0answers
34 views

How to hook into unregistering a widget instance?

I would like to hook into a widget instance after it is removed from a sidebar panel on the Appearances -> Widgets admin page. So if the instance was an active widget and then removed, I would like ...
1
vote
0answers
22 views

Post Count for Categories, however not to calculate a total

Normally this is how the category widget works. Fruits (15) - Apples (7) - Oranges (3) - Grapes (5) Apples, Oranges and Grapes contains posts, however nothing in Fruits. Lets assume that Fruits ...
1
vote
0answers
17 views

Fire on widgets_init only on dashboard

I have an interesting issue. I need to launch an action on widgets_init, but ONLY on the WordPress Dashboard. So I can't use dashboard related hooks, because they fire too late; it has to be on ...
1
vote
0answers
15 views

Custom widget with WYSIWYG

I am developing a Custom Widget and i want to add a textarea with WYSIWYG editor in my widget setting . Any idea or suggestions ?? Thanks.
1
vote
0answers
9 views

Save/update widget outside admin panel

Is there some way to update/save widget from page - not from admin ? I create widget with charts and do not know how to update it from sidebar. I found of course form in admin: <form action="" ...
1
vote
0answers
33 views

Limit number of widgets in widget area

I used code to limit each widgets area to one widget only. It works great: It uses JavaScript to do so, using the fact that the dashboard’s widgetized areas all use the jQuery UI Sortable library, and ...
1
vote
0answers
36 views

Access Customizer widget instance form

On the WordPress admin widgets page there is a known issue with the widget form not being available the first time a widget is added to a widget area. This can be seen in this trac ticket here: ...
1
vote
0answers
25 views

Override Widget class in plugins with custom plugin

I am currently modifying a purchased theme for a client that has several required plugins for it to work. One of the required plugins, creates a widget that displays a post type and client would like ...
1
vote
0answers
96 views

How to create pagination for homepage with widgetized area?

I have created homepage with sidebar area filled with different widgets. Each widget fetch and display posts from different categories. Now I need to create a numbered pagination in homepage which ...
1
vote
0answers
28 views

Widget area inside a widget

I tried putting dynamic_sidebar('widget-id') inside a custom widget I created and it worked. The only thing I can't figure out is how I can do this through a loop. Is there a way that when the widget ...
1
vote
0answers
35 views

WP_Widget instance value to wp_head

I have some problem with dynamic variable on widgets. class instaslidewidget extends WP_Widget { public function __construct() { parent::__construct( "text_widget", ...
1
vote
0answers
70 views

Widget options are not updated

I'm creating a plugin which creates a widget with some options. I've extended the WP_Widget class: class Dynamic_Player_Widget extends WP_Widget { function Dynamic_Player_Widget() { ...
1
vote
0answers
46 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
0answers
71 views

Disable default Wordpress widgets in sidebar

Im creating my own theme. When I have a clean wordpress installation, there are some default widgets in the sidebar (search, category, recent posts etc). I know that I can remove them from the sidebar ...
1
vote
0answers
275 views

Edit and make class-wc-widget-featured-products.php update-proof

Within the class-wc-widget-featured-products.php file I need to Remove this on Line 101: <?php if ( $r->post->post_title ) echo get_the_title( $r->post->ID ); else echo ...
1
vote
0answers
157 views

How to update the widget form when the image is selected?

I have created a custom widget. There are 2 things that I can't do: I need to open the new media uploader window when the button "Select The Image" is clicked. When the image is selected from the ...
1
vote
0answers
65 views

Issue understanding and using WordPress filters and actions

I have a custom WordPress plugin that I have developed. The plugin is a widget bundle containing a bunch of custom widgets. The scenerio The plugin allows for custom css styles through creating a ...
1
vote
0answers
72 views

Custom taxonomy widget in admin area

I have a custom taxonomy set up on a custom post type and the box it uses is the same as categories, except I wanted to make it easily searchable using a filter script and then also allow the user to ...
1
vote
0answers
112 views

Problem getting current post tags to show in a widget

I have tried tons of examples and suggestion on this topic but I can not get them to work. What I am trying to do is display the tags associated with the current post in a widget. I have built the ...
1
vote
0answers
182 views

Save Multiply Checkboxes in a Widget

Trying to save multiply checkboxes in a widget, but no luck. Here is my code: function update( $new_instance, $old_instance ) { $instance = $old_instance; $instance['title'] = ...
1
vote
0answers
75 views

Remove […] from RSS feed?

I would like to remove the [...] from the RSS feed widget. I have tried adding the following to functions: function replace_ellipsis($text) { $return = str_replace('[...]', '-', $text); return ...
0
votes
0answers
12 views

Widget editing, pages to posts(blog)

Is there any quick way to edit this widget to show posts instead of pages? class interface_recent_work_widget extends WP_Widget { function interface_recent_work_widget() { $widget_ops = ...
0
votes
0answers
12 views

How to add/save/retrieve additional fields to all available widgets?

I cant seem to find any complete tutorial that shows how to add / save/ retrieve a fields to any widget. Can someone please show a simple example how to add a simple select , save the data and ...
0
votes
0answers
30 views

use add_action('wp_head') in a widget for generating dynamic CSS styles

I have been working on a 'Custom Pop Links' widget for use in a theme which is ready for distribution. User can change the color of a link using a color picker inside widget. Untill now, I used inline ...
0
votes
0answers
7 views

Register Widget Areas from Custom Widget

Is this possible to register sidebar / widget area from a custom widget?. If you have any idea please let me know. I can create it from custom theme and custom plugin. But I want to create from ...
0
votes
0answers
12 views

How to code so the calendar widget so that each day on it is a link straight to that day's post?

I have a blog in which I post no more and no less than once per day. Every day, one post, and they're all named accordingly like this: http://everydaypoetry.net/03/31/2015/03312015/. I'm currently ...
0
votes
0answers
6 views

widget output problem

I created a custom widget, but it's output without any html markup and any css style , and all my variables are surrounded with p tag . any idea ?? public function widget($args, $instance) { ...
0
votes
0answers
9 views

Widget Development: As I add widget to Widget Area, it doesn't work until refresh page

I just created a custom text widget with a bit more styling options in it, but as I tested on widgets page I got some issues. For example as I save anything on that widget, it lost all styling and JS ...
0
votes
0answers
22 views

How can I add widgets to the category page?

At page wp-admin/widgets.php I can personalize the Widgets shown in the homepage of my website. But I suspect I cannot use the same for any other page. I would like to create a page and put inside ...
0
votes
0answers
35 views

Add a sidebar for menu item?

I want to modify the WordPress navigation menu. I have added a custom checkbox in the menu items custommenu. If that is enabled, then I want to remove the submenu items for that item and include a ...
0
votes
0answers
32 views

Sticky Widget with scroll limit

I have a Widget fixed as the visitor scrolls down the page. At a certain point though, the widget needs to 'stop' so wider content is not covered. I found this answer at Stack Overflow (first ...
0
votes
0answers
14 views

Displaying a widget with custom taxonomies

I'm trying to display a widget that would pull all the information from custom taxonomies for the relevant post, like this: http://www.onlinecasinos.fm/reviews/bet365-casino In that example, on the ...
0
votes
0answers
26 views

Post List Widget with custom posts and editing the Read More Link

I actually have 2 questions, one related to the Post List Widget, the other concerns the "Read More"-link. ad 1) I want to show a certain category of posts (only one post at a time) in this widget. I ...
0
votes
0answers
20 views

Multilingual multisite > customisable footer across different sites with widgets?

I'd like to keep the structure of the footer similar across all sites using the same Theme. However, each site would need different content in their footer. Here's a concrete example - for Site A: ...
0
votes
0answers
28 views

do_action inside of onclick

I'm brand new with making plugins/widgets, and am probably pretty limited to basic in knowledge with php as well. I want to be able to register a function that runs when a button is clicked. The ...
0
votes
0answers
12 views

Retrieve the real time widget area class

I'm trying to retrieve programmatically the sidebars classes in my developed pluging. I use the global $GLOBALS['wp_registered_sidebars'][1] and try to access the 4th element(class) in the array but I ...
0
votes
0answers
14 views

Show widget location borders for development

I'm taking over a wordpress site, whose template has a high number of widget locations in the appearance section. Is there a way to temporarily turn on the widget location borders so I know where ...
0
votes
0answers
20 views

add_filter('body_class') running from widget even when widget is not loaded on page/post

This should be adding a function to init() to check if the widget is active widget on the front end on a page/post - but even when the widget is not loaded on a page/post, .Widget_FilterProject is ...
0
votes
0answers
19 views

Add TinyMCE to WordPress default text Widget

Wonder if there is any way to add the TinyMCE (limited options) to the textarea of a default "Text Widget" in WordPress, Is there any way to do that ? There are few plugins to do the same kind of ...
0
votes
0answers
17 views

Hide/show radio buttons stop working on save

everyone! Here's my case. I'm developing a little widget, and I was looking for a way to hide/show different DIVs on selecting a set of radio buttons. I found the proper code and adjusted it to my ...
0
votes
0answers
28 views

Wordpress Widget Administration Javascripts do not work?

I have been working on a widget in WP 4.1.1 and cant seem to even get simple javascript to function on the backend unless WP is put into Enable Accessibility Mode. For example in your Form($instance) ...
0
votes
0answers
13 views

How know the “admin” blog from wordpress multisite?

I'm try to construtc a multisite plugin and when I've the multisite list with all the blogs, I need to remove from this list the "admin" wordpress multisite. For example: I've the multisites 'ids' ...
0
votes
0answers
14 views

image carousel widget

Is there tutorial how to build widget where you can upload multiple images? I was trying to look some tutorials on widgets but to my surprise there are only few online. Or then my googling skills are ...
0
votes
0answers
21 views

PHP Wordpress Monthly Top Author in Sidebar

Im trying to show List of Top Author by Property Update Count (Monthly) in my sidebar. How to adjust this php code. This php only show AUTHOR list in my sidebar, not sort it by Monthly Property Update ...
0
votes
0answers
26 views

How to display comments with recent comments default widget?

I would like to create custom widget from the default Recent Comments widget to show also the comment content of commenter. How can I do it? class YOUR NEW WIDGET NAME extends WP_Widget { // ...
0
votes
0answers
23 views

creating widget of rotating testimonials

Using this article, http://www.wpbeginner.com/wp-tutorials/how-to-add-rotating-testimonials-in-wordpress/ I converted entire code into widget. In widget creation, I have used title option only. Also ...
0
votes
0answers
13 views

Get widgets from particular sidebar

I created a new widget with name rocky_custom_post. It has two instance 'post_id' and 'position'. Post ID is the ID of the posts in WordPress and position is left, right, full. I created a sidebar ...
0
votes
0answers
41 views

Expand Widget Area With Archive DropDown

I have archive drop down widget. but when i open list, these lists are floating over below widgets and not expanding its parent area for drop down list this widget is added by wordpress widget area ...
0
votes
0answers
15 views

transform default widget_category in accordion

Im trying to transform the original widget category from wordpress as accordion; I can find the files which are: default-widgets.php and category-template.php HOwever my back end skills are quite ...