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

learn more… | top users | synonyms (1)

0
votes
1answer
171 views

Conditional widget_form_callback

I have attempted to develop a way to set something in a widget only if the widget exists in a specific sidebar. The code below looks for sidebar called 'footer' and shows the select option above the ...
0
votes
2answers
332 views

Remove/Hide a Widget on a Custom Template

i want to make a custom template using Genesis.. I added a custom Menu just by adding a widget on WIDGETS section and placed it on the top right side of the page. But i want it to be removed in a ...
0
votes
1answer
107 views

Infinite-Scroll Plugin and Jetpack Infinite Scroll Plugin - Adding to “Thoughts” Theme

How do I enable infinite scroll (either with the infinite-scroll plugin OR the built in infinite scroll jetpack) on the "Thoughts" Wordpress theme? I'm a total noob at editing this stuff so if you ...
0
votes
1answer
43 views

How to display a widget on a page with no theme?

I would like only a widget to appear on a page, is this possible? As in if I created a page, I am wondering if I can make a page just display the widgets contents with no headers, sidebars, just ...
0
votes
1answer
53 views

Wordpress dynamic widget by location?

i need to show the widget based on user location , for a testing purpose i have created the by using following code if( function_exists( 'register_sidebar' ) ) register_sidebar( array( ...
0
votes
1answer
536 views

How to hide custom sidebar on mobile

So I have made some customizations to my wordpress premium theme,but I want to hide those customizations on mobile versions. I've tried to add id of widget inside @media with display:none; but ...
0
votes
1answer
497 views

Sidebar widgets - dynamic CSS : problem with widget-title

Fortunately or unfortunately without much studying I made a dynamic sidebar widget area for my client's website. My functions.php codes are: ... register_sidebar( array ( 'name' => 'Left ...
0
votes
1answer
90 views

How to conditionally add a widget via a hook in functions.php

I'm trying to add some widget areas to the homepage only using functions.php - so that the client won't be able to accidentally destroy shortcode when editing the page. I've registered the widget ...
0
votes
1answer
837 views

Widgets menu does not appear under “Appearance” in dashboard

I am developing a WordPress theme, but am stuck on widgetizing my theme. I have followed several tutorials but still cannot get it to work. My widgets menu does not appear under Appearance in my ...
0
votes
1answer
384 views

Creating a custom wordpress widget and stopping js from running twice(once in active widget once in widget selector)?

Ok so here's the question how do i stop js from running twice on the widget.php page? I am creating a ajax loaded custom image selector from a domain on the same server as the current site. I want ...
0
votes
1answer
897 views

Wordpress: Apply filter/hook to a particular sidebar widgets?

I'm developing a theme that has more than 5 different sidebars and I want to apply a function to a particular one of them for styling purposes. Basically, the function will modify it's params using a ...
0
votes
1answer
296 views

Adding a single text input field to a custom Dashboard widget

I have a client whom I want to give as much Dashboard control over the admin area as possible. I know how to create a custom dashboard widget that contains just text/html but I have no idea how to ...
0
votes
1answer
41 views

widget not displayed

the command echo '<pre>';print_r(wp_get_sidebars_widgets()) ; returns [sidebar-page] => Array ( [0] => execphp-5 [1] => simple-section-nav-3 ...
0
votes
1answer
129 views

Dynamically creating multiple widgets from Mustache templates

I built a bunch of basic Mustache templates for a project, and now I'm wanting to effectively make them available to WordPress as widgets. //This uses Composer to manage dependencies (Mustache). ...
0
votes
1answer
132 views

Simple form to add custom links to menu?

I currently have a menu set up called "sidebar links" with 5 custom URLs. In my widgets section I have a Custom Menu which shows my "sidebar links" menu. This basically gives my sidebar 5 links. ...
0
votes
2answers
208 views

Unable to add widgets to sidebars in custom theme

I'm trying to add a footer area to wordpress so I can drop widgets and things there. I see my footer area in the admin section, but if I add a text (or any other) widget and then save it, nothing ...
0
votes
1answer
303 views

how to show only particular category post in archive widgets

i want to display blog category month list in archive widgets. but i i can't figure out yet how. i have more category like review, gallery etc. normally show all month list in archive widgets but i ...
0
votes
2answers
634 views

how can i display all youtube videos from a users youtube account

I want to display all recently uploaded youtube videos from my youtube account as a widget on the right side of the page. Just like how technobuffalo.com has done. Is there such a plugin that will do ...
0
votes
1answer
30 views

Link a widget or find the php that creates the widgets

I would like to make the entire widget a link. Ideally, I would like to find the php file that has created the widget and then modify that. Q: Is there a way to backtrace the HTML to find what php ...
0
votes
1answer
78 views

Override widget in function WordPress

Im trying to override the text widget in WordPress. My code looks like this: class WP_Widget_Text_Custom extends WP_Widget { function __construct() { $widget_ops = array('classname' ...
0
votes
2answers
73 views

random reason on refresh

I am editing the sidebar widgets and have added one for users who are not logged in or registered. the widget requests that users register or login and I am wanting to add a random reason (quote) as ...
0
votes
1answer
59 views

How to change widget's form color in admin?

I have a simple question. How to change widget's form color in admin panel of wordpress (on widgets page) to make them more unique? Here is a simple example:
0
votes
1answer
272 views

how to extend a WP_widget twice

Has someone ever tried to extend calss WP_Widget, then extend it again ? Having to related widgets, I tried to create the first extending WP_Widget, : class FirstWidget extends WP_Widget { public ...
0
votes
2answers
171 views

Is there a way to allow only certain type of widgets in the sidebars?

For example, I want Sidebar A to display nothing but one text widget and Sidebar B to display anything but text widgets. How can I do that? Thanks.
0
votes
2answers
390 views

register child class in another plugin

I think this should be relatively easy, but somehow I cannot figure out how to do this. essentially there's a preexisting plugin that does this: add_action('widgets_init', create_function('', ...
0
votes
1answer
255 views

How Do I include/Import a Custom Widget from the Parent theme into My Child Theme?

I'm trying to make a small modification to a custom widget that was included with a clients parent theme. Whenever I remove the parents version of the widget (for testing purposes) the child version ...
0
votes
2answers
263 views

Widget to show posts in the sidebar basing on its IDs

I am trying to create a widget that displays posts in the sidebar taking post IDs as input from the user. The result of my code is that the widget displays just the first entered ID and ignores the ...
0
votes
1answer
105 views

Creating a dynamic class name in my custom widget

I have been currently building a custom widget in WordPress based on the text widget as a starting point. It seems that within the function __construct part of the widget, the class name is a hard ...
0
votes
1answer
66 views

Add a select-option to the default widgets

I would like to add an extra feature to one of the default widgets so that the user can choose from the select-field to either align the widget to the left, center or to the right. How would I be ...
0
votes
1answer
195 views

How to Get Admin Settings for a widget when using the_widget() with custom widget

I have searched around for an answer to this question and I found this: Manual display of widget which gave me a solution of: if(function_exists('the_widget')) { $instance = get_option( ...
0
votes
1answer
189 views

accessing wordpress serialized data outside wp

I've never worked with serialized data... I need a little help with how to load "text" widgets title and content in php script outside wordpress... my script just connects to database (including ...
0
votes
1answer
448 views

How to add Ajax to the default widget calendar to support next/previous months loading?

I want to customize or replace the default calendar, similar to the default widget, but with Ajax next and previous months loading. Ideally I would like to be able to do that (red dots are dates ...
0
votes
1answer
192 views

Want to add more option in “Sexy Login”

I am using Sexy Login in my new website. Its a beautiful plugins. But i need to add some more options. I want to add more button for both who are logged in & who are not logged in like "Write New ...
0
votes
1answer
203 views

How do I exclude portrait pictures from the nextgen gallery sidebar widget?

I have a gallery that contains both landscape and portrait pictures and want the gallery to be displayed in the wordpress sidebar. The problem is that the thumbnails of the portraits are scaled into ...
0
votes
2answers
27 views

How to test if the widgetized area has any widgets?

I making a widgetized footer with three widgetized areas (footer1, footer2, footer3), The problem is that even if there's no widgets assigned to any widgetized footer area, the footer is still there ...
0
votes
3answers
276 views

jQuery UI inside widget on admin page

I have created a widget that has quite a few settings, and so I am trying to create a tabbed menu (using jQuery UI) inside the widget settings of the admin page. The problem is basically that tabs ...
0
votes
1answer
27 views

prevent custom widget file names from showing in Appearance > Editor

I've setup a few custom widgets for my theme, and when I go into Appearance > Editor, the widget file names are showing up in the list of files that can be edited. How can I prevent these widget file ...
0
votes
2answers
180 views

Add html after the first widget in a sidebar

Just wondering is it possible to add HTML code after the fisrt widget in a sidebar so that it would only show once and not repeat after a second or third widget is added? This is what I have so far: ...
0
votes
1answer
47 views

Accessing widget information

I'm trying to access widget information saved in the wp_options table. I printed it out: add_filter('the_content', function(){ $res = get_option('widget_my_widget'); print_r($res); }); And ...
0
votes
1answer
81 views

Trouble accessing a multidimensional array to add classes to default WordPress widgets

I've been writing up a function to assign classes to default WordPress widgets that I choose. After a bunch of research and modifications, I came up with the function below. A quick explanation of ...
0
votes
1answer
38 views

Stuck with sidebar registering

I tried to add a custom page to my Wordpress template. That part is good. What I´m stuck with is a common sidebar that appears although I registered a custom sidebar for it. I am calling the ...
0
votes
1answer
74 views

Can / should a widget plugin define its own Widget Area?

Should a plugin be able to add a widget area above the_content? (Without requiring template/theme changes.) What would be the best way to do this? Doubts: widgets typically echo output to the screen; ...
0
votes
1answer
270 views

How to add a recent post function to a text widget I created for practice?

I am currently being trained to create widgets and my mentor has asked me to create a text widget then add the ability to display the 5 most recent posts (all categories) on it. I am a little stumped ...
0
votes
1answer
1k views

disable default widgets in Responsive theme

Theme: Resposive I have added "Widget Context" and has set it to show a widget only on the start side. This works perfectly BUT on all other sides there shows a default widget "Home Widget 1" with a ...
0
votes
1answer
3k views

How to add social buttons like facebook and twitter in the footer of a theme?

Hi I own the blog camilamfotografia.com.br and I'd like to add social buttons in the footer or in the navigation menu to link my site to facebook twitter flickr pinterest etc... I have tried without ...
0
votes
3answers
1k views

Using wp_dropdown_categories in widget options

I have a product search widget when you select certain products a hidden field is shown. I would like to set a custom category in my widget options that is then used for displaying my hidden field. ...
0
votes
2answers
60 views

How can I re-register my blogs widgets?

I deleted my wp_options database file in error. I replaced it with a clean install file. Now my widgets are still present in my widgets area but none are recognized by wp. Am I right in thinking ...
0
votes
1answer
129 views

event organiser not loading in main content area

there is possibly a very simple answer for this, but im afraid im a novice at this stuff :( on my wordpress site Im using the event list shortcode in the main content area and the calendar in the ...
0
votes
2answers
329 views

Widget queries even when there are no sidebars?

I'm trying to reduce my database queries. I don't have any sidebars or widgets set but I noticed the following query SELECT option_value FROM wp_options WHERE option_name = 'widget_pages' LIMIT 1 ...
0
votes
1answer
96 views

Replace the “widgets” label in the backend

Is it possible to replace/modify the "Widgets" label in the backend by an other label ? ... and do the same thing for the "Widgets" title in the widget page. Is there a filter or another solution ?