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

learn more… | top users | synonyms (1)

2
votes
0answers
29 views

Why won't my custom widget stay in the sidebar after a reload?

After I drag my custom widget into a widget area and reload the page it's gone. Any ideas? <?php add_action('widgets_init','register_postTypeWidget'); function register_postTypeWidget(){ ...
1
vote
0answers
56 views

Multisite Widget/Content

I'm using WordPress multisite and need to display content across all subsites in the sidebar. This is a network of 50+ sites so updating all 50+ sidebars with this content every few days is not ...
1
vote
0answers
22 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
168 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
92 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
54 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
61 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
672 views

How to create a 'single' category widget for woocommerce plugin

Woocommerce out of the box provides many widgets, however the category widget for providing a product search, groups ALL the categories into one widget. I want a widget for one category, i.e. 'shop ...
1
vote
0answers
29 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
99 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
165 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
180 views

Widgetize Buddypress Activity Plus plugin?

Is there anyway to widgetize the Activity Plus plugin so I can display the post form in a widget area on my Genesis News child theme front page? I'm using the BP Sitewide Activity Widget to display ...
1
vote
0answers
71 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
51 views

Dynamic css for a widget plugin

I have a plugin that creates a widget to show latest posts and I would like to add a dynamic css file to style the post title without using inline styles. So for example i have public function ...
0
votes
0answers
16 views

Wanted to collapse all the widgets in sidebar by default via jQuery

I already applied jQuery on footer to Slide them up but i noticed that when the page is completely loaded the widget slides up properly but dont know how this again slides down automatically. I m not ...
0
votes
0answers
11 views

Prevent submission of widget form

How can I prevent submission of a widget form? The following doesn't work for me. And preventing submit won't work because Wordpress uses Ajax for those forms. jQuery(document).ready(function($) { ...
0
votes
0answers
15 views

Display custom menu on specific post/page

I have a real problem with Wordpress. My need is this: I have three main pages that every one must display a list of sub-pages (custom menu) and a list of events related to that specific page. Both ...
0
votes
0answers
31 views

Hide widget on page

How can I hide a widget from a certain page (one page). After spending an hour, all I can find is with the plugins. The problem is, that I know with them how to do it, but one widget (ad widget) is ...
0
votes
0answers
20 views

Infinite scroll on sidebar widget

I am trying to add an infinite scroll functionality to a website i am building, but i want to add it to a sidebar widget. I have a widget that shows a list of recent posts, and i would like to add an ...
0
votes
0answers
7 views

Jetpack infinite scroll on widget

I would like to add the jetpack infinite scroll (other options would be good as well), to a sidebar widget that shows "additional posts". So instead of paginating (ajax) the whole page, i only want to ...
0
votes
0answers
10 views

How to include WP_Widget from another file in main plugin file?

I tried to use the code bellow in my main file: define( 'MYPLUGINNAME_PATH', plugin_dir_path(__FILE__) ); include MYPLUGINNAME_PATH . 'class/class-widget.php'; Then I have a file ...
0
votes
0answers
26 views

Custom widget not appearing on front end

I have the following widget location defined in my theme's functions.php: register_sidebar( array( 'name' => __( 'Opening Hours', 'transparent' ), 'id' => 'sidebar-hours', ...
0
votes
0answers
50 views

Custom Meta Boxes repeatable field show on single.php

I have some code that adds a Metabox, with repeatable fields to the edit screen of the WordPress backend. It looks like this: The code, I have in the functions.php, looks like this: function ...
0
votes
0answers
24 views

Wordpress API to get galleries?

Is there a way to get with wordress API the created galleries? The main idea would be to create galleries as normal wordpress pages or posts on and use those images in a wordpress widget.
0
votes
0answers
18 views

Show widget inside wordpress admin based on site language (WPML)

I've developed a plugin that allow me to show /hide widgets based on the frontend language (ICL_LANGUAGE_CODE) using the widget_display_callback filter. I was wondering if is it possibile to do the ...
0
votes
0answers
30 views

Question about file path for include/require methods

So I am currently rather new to Wordpress development and I had a question about the file path for the include() and require() methods. I have a php script within my Wordpress installation that I ...
0
votes
0answers
16 views

Widget Logic - Target 1 URL

TestSite.com/?property=Name How do I target only this URL with conditional tags and widget logic. I've tried is_singular( 'Name' ), but that didn't work.
0
votes
0answers
49 views

Create a widget to display image and Title?

I want to Create a Widget with image top and Title at bottom.Please help me to display like image top and Title at bottom also add link to to the arrow image. i have Created a Widget area and ...
0
votes
0answers
43 views

How to give a File Upload option in wordpress Widget backend?

I want to use a file upload Input option where User can upload a Excel file on backend and the widget will save the file in uploads directory and save the file link in the $instance variable of ...
0
votes
0answers
24 views

adding a dashboard widget for multisite

I would like to add a dashboard widget for a WP multisite and need to include/require a php file from a directory in my root. I combined a couple of things together that I found on different websites ...
0
votes
0answers
38 views

Widget editor not displaying in Dashboard

I'm not sure if this is because of the new 3.9 update, because I haven't had to mess with any widgets in a while, but my active widgets won't display in the editor anymore. I've uploaded a screen ...
0
votes
0answers
38 views

WPMU widget use sitewide

I'm using a widget on a site with the blogid 1. But I want to use the same widget with the content from blogid 1 in all of the other sites. Is there a way to reuse this widget? I tried the ...
0
votes
0answers
29 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 ...
0
votes
0answers
44 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
0answers
24 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 ...
0
votes
0answers
19 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 ...
0
votes
0answers
146 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 ...
0
votes
0answers
39 views

Customize Dashboard Widgets Area for the Client?

To avoid the client messing up the website I have already customized other parts of the admin backend, now for the dashboard widgets area. I don’t want to block access but rather I want to give the ...
0
votes
0answers
20 views

Disable wordpress widget automatically on error

I have a small widget which gets some information from other websites. Now, at times it is possible that these other websites are not available. Is it possible to disable or hide a widget ...
0
votes
0answers
36 views

wp_register_sidebar_widget in loop within a plugin?

I'm trying to dynamically create widgets based on a posts from a post type. The code is as below. This function is pulled from my plugin class: public function initWidgets() { // Config ...
0
votes
0answers
27 views

Search form is not working in live site

I have installed a wordpress theme called suffusion. Search widget is not working in this theme. It shows nothing found always. I have search.php as below. It is working in local machine <?php ...
0
votes
0answers
77 views

how to override menu widget?

I would like to customize the menu widget in sense to add some classes which would make it responsive. How do I override the default widget for menus? I use a custom template which supports bootstrap ...
0
votes
0answers
47 views

Widget on home page displays wrong time compared to same widget on inside pages

I am trying to use the timely events calendar and I have the upcoming events widget on my home page widget area. The time that displays is not the time I have selected. When I put the same widget to a ...
0
votes
0answers
12 views

Diplaying widgets causes responsive slider to not show up

I'm making a custom home page template. On the top I have an image slider(using the Responsive slider plugin). Than I query some posts and after that I want to include one of my widgets. The problem ...
0
votes
0answers
167 views

Displaying database table in backend of wordpress

So basically I'm working on a job website for a client where they post jobs and users can apply for these jobs with a form that writes to the database with their inputed information.. I have set up a ...
0
votes
0answers
18 views

How do I add a field only to certain default WordPress widgets

I've made a plugin that adds a language select field to all admin widget forms based on the following three pages and and a bit of extra googleing to solve some specific issues: ...
0
votes
0answers
31 views

iframe not being displayed in a widget

I'm trying to write my first widget so i'm not that expert with the code. I have the following code in my function.php but the iframe is not being displayed: class account_internet extends WP_Widget ...
0
votes
0answers
38 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 ...
0
votes
0answers
54 views

Duplicate sidebar with duplicate post plugin

I'm using http://wordpress.org/plugins/duplicate-post/ and http://wordpress.org/plugins/per-page-widgets/ . The duplicate-post plugin doesn't copy all the settings from the page-widgets plugin. I try ...
0
votes
0answers
27 views

Change the order of sidebars in admin

Say I use a child theme and my parent theme already registered four dynamic sidebars. Now I am registering a fifth dynamic sidebar in the functions.php of my child theme. In the backend that last ...