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

learn more… | top users | synonyms (1)

3
votes
0answers
49 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
0answers
9 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
24 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
119 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
69 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
52 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
51 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
625 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
28 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
93 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
160 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
161 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
66 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
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 ...
0
votes
0answers
21 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
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 ...
0
votes
0answers
17 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
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 ...
0
votes
0answers
50 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
20 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
16 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
33 views

Hide Password Protected pages in Recent posts

I have the following lines of code in my functions.php file: // Filter to hide protected posts function exclude_protected($where) { global $wpdb; return $where .= " AND ...
0
votes
0answers
20 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
19 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
43 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
30 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
11 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
63 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
14 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
24 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
73 views

How to display custom message for (Genesis) featured posts if no posts

I'm using the Genesis Framework, and the custom post types featured post widget (code below). I need to display a custom error message for a particular post type if there are no post present for that ...
0
votes
0answers
29 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
33 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
21 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 ...
0
votes
0answers
63 views

jQuery does not work in widget backend

I created a widget which should use jQuery for switching between two views and implement the jQuery UI date picker. I was wondering why my jQuery code does not work as I noticed that the date picker ...
0
votes
0answers
70 views

Inkness theme sidebar

I am using the inkness theme for my site, mostly it works fine apart form when I try to remove all of the widgets from the sidebar. When I do this the widgets for the archive, search and meta ...
0
votes
0answers
39 views

Add class from custom field into widget class

How would I add a class coming from a custom field to a widget? I know I should put it somewhere into $before_widget ... in my case this is 'before_widget' => '<aside id="%1$s" class="widget ...
0
votes
0answers
10 views

How to link only to main blog page from news list widget?

I need to link from news title widget to main blog page that has all the news listed. I do not need single post pages at all. The link from news widget should take user directly to the right spot on ...
0
votes
0answers
9 views

How do you get a valid DateTimeZone when the user has it set to a custom timezone?

Taking a look at this question: How to get WordPress Time Zone setting?, I see that I can use get_option('timezone_string'); to get a time zone string to use in my WordPress widget. I want to pass ...
0
votes
0answers
17 views

My Email Newsletter plugin will not configure when I try to import the widget

I am currently using the "Spun" theme for my website and bluehost as my hosting product. I downloaded and activated the "Email Newsletter" plugin, however when I try to import the widget it does not ...
0
votes
0answers
48 views

Wordpress Multisite add widget on new blog

I need to put widget in sidebar when new blog is creating. My code is: function make_default_widgets($blog_id, $user_id, $domain, $path, $site_id, $meta) { switch_to_blog($blog_id); ...
0
votes
0answers
19 views

Modify link in widget archive

I want to add Google campaign to link in default wordpress widget archive. How can I do this?
0
votes
0answers
57 views

Foundation and Wordpress Footer Widgets

I'm trying to use Zurb's Foundation 5 and I have the following code that works great, IF, using 4 footer widgets because Foundation uses a 12 column grid. $sidebars = array('Footer'); foreach ...
0
votes
0answers
40 views

Title after content dynamic_sidebar

Is there a configuration to change the dynamic_sidebar widget's title order? I want to display title after the content. I used JavaScript to swap it at page load and looking for a robust -- tangible ...
0
votes
0answers
13 views

Using widgets on an options page?

hopefully someone more experienced can help me out with this idea I've got... I'm working on a new theme, and I'd like this to be widgetised. I've done this before using the regular widgets/sidebar ...
0
votes
0answers
14 views

Need an idea of how to realize filling of accordion by editors

I have and accordion (something like this one but smaller). I already made one. OK. But I can fill it only using WordPress built-in theme editor (just changing php). My customer don't like this ...
0
votes
0answers
46 views

JQuery Accordion Menu Widget Expand All on Mobile?

Can anyone tell me how to/if it would be possible to set up this plugin so that when it's being viewed on the desktop, it works as usual (hover to expand) but when being viewed on mobile, the menu ...
0
votes
0answers
55 views

register_sidebar() will not wrap an element properly

I am trying to add a widget for for some reason I cant wrap an element around the widget. Here's the html in the index.php: <article class="intro-widget"> <p> ...
0
votes
0answers
11 views

which code helps to display new widgets (first font page widgets)?

how to make new widgets(First font page widgets,second..). i found this code .. it shows the default sidebar. <div id="secondary" class="widget-area" role="complementary"> <?php ...
0
votes
0answers
46 views

Add a popup message on frontend?

I want to show a box or a widget with HTML content at the bottom of a page to show the reader a message s/he can dismiss. Here is an example: Can one of the built-in JavaScript libraries be used ...