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

learn more… | top users | synonyms (1)

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 ...
0
votes
0answers
96 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
99 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
51 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
12 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
14 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
19 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
81 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
20 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
83 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
55 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
16 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
17 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
52 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
69 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
54 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 ...
0
votes
0answers
39 views

How can I get the sidebar id on the current page?

How can I get the sidebar id on the current page? The question is simple. I have looked at is_active_sidebar(), is_dynamic_sidebar() but they don't provide the info that I need.
0
votes
0answers
166 views

Shortcodes in widget titles: attributes include quotes which are html encoded, why?

I wrote a shortcode plugin that works with widget titles. So I added shortcode support to widget titles like this: add_filter('widget_title', 'do_shortcode'); So my shortcode looks like this: ...
0
votes
0answers
22 views

Move Jetpack Stats dashboard widget to right side

is there anyway to move this? I've followed the instructions in the WP docs to no avail.. / / Global the $wp_meta_boxes variable (this will allow us to alter the array). global $wp_meta_boxes; // ...
0
votes
0answers
95 views

Does w3 total cache cache widgets?

I wish to know whether using w3 total cache also caches widgets on the sidebar? I have a recent activity widget on the sidebar that displays live activity on the site like user joining, sharing etc. ...
0
votes
0answers
69 views

How to detect shortcode usage, submit a form from widget to that page?

I've created a plugin and now want to create a widget containing a form that will submit to the page where my plugin shortcode is embedded from any wordpress page on the front end. I assume that ...
0
votes
0answers
15 views

Modify the siderbar footer

I have to update a website made with wordpress, and I can't find how to change the "sidebar footer". here's the link to the website: somatbel.be the part I want to change is right under the last ...
0
votes
0answers
19 views

grouping my widgets wordpress

In the widgets page, there are two boxes "Available Widgets" and "Inactive Widgets". How can I add a new boxe with my custom name where I can group all my widgets.
0
votes
0answers
36 views

echo the_modified_date('j/M/Y') in after_title

I want to add a "last updated date" in a span inside a specific widget here's my function so far function add_front_sidebar(){ register_sidebar( array( 'name' => 'Front Sidebar', 'id' ...
0
votes
0answers
35 views

Is there a “widget slider?”

This is surprisingly hard to search for on the internet given the keywords that have to be used. I am looking for a widget slider. To be clear, not a slider widget which you can put photos, videos, ...
0
votes
0answers
27 views

How can I make a widget to work only for the products from the current category?

I have an ecommerce wordpress website with Woocommerce plugin. On category pages, I have a widget that filters the products by attributes. But the problem is that the filter works for all the products ...
0
votes
0answers
65 views

Adding SSL verification seal javascript from Thawte breaks website

We are trying to add Thawte SSL seal javascript to our website, but it keeps everything else from loading if added to a normal text widget. For example, if we add it to where the Thawte SSL image link ...
0
votes
0answers
32 views

Get fields of a widget

I have a widget that has fields, so how can I get these fields in my Metabox. I have tried with this variable $wp_registered_widgets, but I can't get the fields. Is there any solution for my ...
0
votes
0answers
17 views

Widgets dissapearing in adminpanel

I have 2 sidebars registered. They appear as they should in the Widget are and i can drop widgets into them. When i save the widgets the widgets content appears on the website where the sidebars are ...
0
votes
0answers
35 views

Widget page broken

using WordPress 3.3.1 Im working on a wordpress site i did not build and i have registered a widget area. There was none before. Now when i go to the widget page it looks like this and i suspect ...
0
votes
0answers
23 views

want use a wordpress widget two times

I have a widget installed in wordpress i want to use this widget two times with different configuration but after first use it disappear from widget list if someone have solution for using many times ...
0
votes
0answers
46 views

Widget in child theme having missing argument

I'm trying to build a child theme on top of a parent theme. So far so good but now I'd like to modify a parent theme widget. So I setup my new file in the child theme, require_once the file, and ...
0
votes
0answers
44 views

Widget area does not show any contents for specific users in admin interface. How to go about debugging?

I use a custom theme on a WP-Multisite instance which also uses WPML plugin. I am pretty technical and I can read PHP code but I do not have any WP experience. The theme has three custom widget ...
0
votes
0answers
32 views

Widget to calculate time from a certain date

I'm trying to create a widget that will display the amount of time passed since a specific date, however I get this message: "function WP_Widget::widget() must be over-ridden in a sub-class." This is ...
0
votes
0answers
39 views

Problems after transfering WP

After transfering my Wordpress to a new domain I can't add new things like images to post or even "text field" to widget area. I see only white blank page after that actions. Everything else looks ...
0
votes
0answers
49 views

How to dynamically select particular WordPress Category?

I build my simple wordpress magazine and I have multiple categories, like cover, volume 1, volume 2, etc. In the index / homepage, I want to display table of content for each volume (based on ...
0
votes
0answers
51 views

Conditional before_widget and after_widget

Is it possible to use a custom before_widget and/or after_widget value for certain widgets? For example, I'd like to add a opening <div> tag before the first and closing </div> tag after ...
0
votes
0answers
100 views

How to add sort category using post views in wp_list_catgory?

I am using widget-reloaded plugin and i have a function which count post views. <?php // function to display number of posts. function tie_views( $postID = '' ){ if( !tie_get_option( ...
0
votes
0answers
52 views

Avoid replacing single quotes

In my WordPress widget I include a PHP file which hase the following content: <div id="<?php echo $args['widget_id']; ?>" data-style='{"width":"35px"}'> </div> However, WordPress ...
0
votes
0answers
35 views

How to use native wordpress tag metabox in a widget?

I'm developing a custom theme for a client and one of the requirements is to allow the home page to be configured via widgets. One of the widgets that I'm also developing will allow the client to ...
0
votes
0answers
68 views

“Display as dropdown” option in Categories Widget hides the dropdown

I've never used this option, and I was testing it on my theme but when I clicked the "Display as dropdown" checkbox and went to see what the widget looks like - it was hidden. The HTML code looked ...
0
votes
0answers
135 views

Creating an custom admin page for editing widgets

There is always danger in thinking your almost there... The end Goal: A custom page in the admin menus where i can edit a widget I constructed. Where I am now: I have registered a custom menu I ...
0
votes
0answers
52 views

Widget ID on Drop

This code will give me the widget ID if the widget is moved at all after the initial placement. jQuery('div.widgets-sortables').on('sortstop',function(event,ui){ ...
0
votes
0answers
305 views

Widget dynamically add new input field

I'm trying to edit widget and add new input field for facebook user ID and Location. The widget has 4 parts of code, display the widget on the screen, fetch facebook userdata and post, update widget ...
0
votes
0answers
47 views

Changing the default widgets of new multisite blogs

I run a wordpress multisite.The thing is that I would like new blogs to have widgets and themes that are different from the default one.If you run a multisite installation then you know that ...
0
votes
0answers
124 views

Filter CPT based on meta box value using Flexible Posts widget?

I'm using the Flexible Posts Widget to display a list of "deals" (a custom post type) in my sidebar. I'm also using that plugin's capacity to use a custom template to control the display of that ...
0
votes
0answers
45 views

Automatically hide Widgets that would lengthen page

Something I've been dreaming about ever since I started using CMS's for making websites. I've settled on WP now, so hence I'm asking here. I conditionally hide widgets on certain pages that are very ...
0
votes
0answers
96 views

How to manage a 200 sidebars website? widgets.php page is way too slow!

I'm using a plugin called "Simple Page Sidebars" (http://wordpress.org/extend/plugins/simple-page-sidebars/) to manage the sidebar of pages. The problem is that now, I have more than 200 sidebars in ...
0
votes
0answers
7 views

How do I create pages for specific people to insert content in specific fields while retaining the theme/look of my page?

My site has multiple pages, but I want to create pages where associates can upload their profiles and other information, but i want the look of the pages and style to be editable only by myself. How ...