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

learn more… | top users | synonyms (1)

3
votes
2answers
553 views

Full width layout for custom post type pages

I'm trying to remove a widget area called 'Primary' from a certain page on a site. This is the function where I manage the sidebars: //ADD CATEGORIES IN SIDEBAR OF SINGLE POST TYPE add_action( ...
3
votes
2answers
182 views

How to target the default Recent Posts and Recent Comments widgets with pre_get_posts?

I added the following to my functions.php: add_action('pre_get_posts', 'keyl_get_emp_posts'); function keyl_get_emp_posts($query) { if ($query->is_main_query()) ...
1
vote
2answers
286 views

Elegantly using JavaScript on widget admin forms

I'm working on a project involving a lot of widgets, and I'm thinking it'd be really great to have a "More options" section built using jQuery UI Accordion that expands when clicked. So, I've ...
1
vote
2answers
288 views

Add description to custom text widget and display the 5 recent post titles

I just started coding and working as an intern for a company. My boss asked me to create a custom text widget for practice in making word press widgets. The problem I am running into is I have no idea ...
0
votes
2answers
33 views

How can I only show a widget prior to a specific date?

I can't find a solution for this anywhere, so help is highly appreciated! The problem is, that my Dropbox account is losing aboz 48 GB's, so I had to remove my podcast episodes from there... because ...
0
votes
2answers
51 views

How to determine if the sidebar is empty? Or not active?

I used is_sidebar_active('NameOfSidebar'), but it seems not working. It returns false all the time. I wanna have a condition that goes like this if('sidebar is not active'){ //must not display the ...
0
votes
2answers
39 views

Wordpress - registering sidebar and adding a button directly after .textwidget

I have registered a new widget area, code as below and want to add a button after the .textwidget, however cannot seem to do it properly. Adding it after the </li> results in the button not ...
0
votes
2answers
34 views

Unregistering a Sidebar in Child Theme

I'm working with a handy responsive theme framework (Reverie) and I'm developing my own theme the right way using a Child theme. The Parent theme calls a sidebar called with an ID of 'Footer' and ...
0
votes
2answers
155 views

Change HTML structure for custom menu in sidebar

I've been digging for documentation on how to change HTML output for the "Custom menu" which you place in optional widget. So its clear what I meen I have attached an image of the widget block here: ...
0
votes
2answers
55 views

Remove image height/width attributes from Image Widget

The Image Widget includes width and height on the images which I've unsuccessfully have been trying to filter out so I can have fluid width. I've tried the following, which seems to be the most ...
0
votes
2answers
120 views

Display widget outside sidebar?

I want to display a widget outside the sidebar, but I can't get my code to work. The theme name is radius-primary-sidebar and my widget id is text-20 (according to the html in the admin page. See ...
0
votes
2answers
30 views

Can I add a widget to the <head> of my site?

I need to add a small bit of JavaScript to the <head> section of my site (on every page). I thought Widgets would cover this but I am only able to add widgets to the sidebar and nowhere else. ...
0
votes
2answers
113 views

How can I add a new CSS class to a widget?

I want to assign a new CSS class to default widget <ul> in Page/Post creating page in WordPress. How can I do this? See the image below.
0
votes
2answers
410 views

Unable to load “wpColorPicker” on theme customize page

Whether I'm using a Wordpress default theme or a custom one, I see the JS error: Uncaught TypeError: Object [object Object] has no method 'wpColorPicker' when I click "Customize" on the theme. I've ...
0
votes
2answers
33 views

Are there any official or unofficial guidelines for the styling of a widget?

I've designed a sidebar widget and found that on many themes the widget looks fine. However, certain themes make the widget look out of place (clashing with colors, bad contrast, etc.) Are there any ...
0
votes
1answer
114 views

Tabbed navigation in widget backend

I have just created a widget and i am trying to implement a tabbed navigation in the wp backend but it just seems more difficult than writing all the php code! The categories metabox is an example of ...
0
votes
1answer
178 views

Show or hide custom menu widget in side bar conditionally

I have been trying and searching to accomplish this. I have the "custom menu" widgets "Members Area", "Admin Area" in side bar, assigned menus to them. Fine, they display. I want to show "Admin Area" ...
0
votes
1answer
118 views

Putting a wordpress custom post into a widget

I have just recently created a widget in my Wordpress theme that inserts a widget into the sidebar. Its based upon the text widget. However the html content is hard coded into the widget and it has ...
0
votes
1answer
226 views

Saving widget gets an undefined variable

I am developing a widget for cached feeds. The widget itself works exactly as I want but I noticed that if I were to delete the widget and then add a new one (or simply just add a new one) on the ...
0
votes
1answer
208 views

WAMP to XAMPP WordPress transfer

I want to switch a WordPress site from a wamp localhost to xampp localhost. Using the Tools > Export, I saved the WordPress content to an XML file. I did not create a similar backup of the MySQL ...
0
votes
1answer
90 views

Problem with single posts not showing correct category sidebar

I'm looking for something very specific: I'm using a plugin called "Category and Tag Specific Widgets" to create category-specific html in the sidebar of each category. This only works if I click on ...
0
votes
1answer
100 views

Wordpress plugin not eching popular posts

I created a plugin in wordpress to show popular posts, but this is not returning the post and number of comments properly. Even I have comments in my post(approved as well, so this is not the case) ...
0
votes
1answer
64 views

Registering multiple copies of a widget

I'd like to be able to register multiple copies of the Quick Search Widget in the code below, so that I can have it multiple sidebars. The code has been taken from a plugin I've downloaded function ...
0
votes
1answer
113 views

Passing widget options to external script

I am trying to pass some widget options to an external script using wp_localize_script. I know how to pass the variables and how to use them within the script, but how do I extract the widget options ...
0
votes
1answer
42 views

How to create a widget on witch a registered user can create a checklist

I have no idea where to start. I want to create a widget. with the following features show a button to create a checklist. Show a list of already created checklists created by the user. Mark ...
0
votes
1answer
45 views

Wordpress Hide Widget If $_Session Is Active?

I was wondering if there is an easy solution to add some php "if" code when my website tries to show the widgets and if it has $_SESSION I set on homepage (based on the source of which they came) not ...
0
votes
1answer
95 views

Trying to output a “Most visited blogs” list in wordpress multisite

Does anyone know how to get a "most visited" list out of Wordpress Multisite? I got alot of bloggers and have been looking for a way to output a top 10/20 list of most visited blogs, but cant find ...
0
votes
1answer
165 views

Author Link in Recent Posts Widget

I want to add author link into the recent post widget. For example if any user post on my web from his LinkedIn ID (which I have allowed) so in Recent Posts where it shows, <time> By: ...
0
votes
1answer
38 views

How to stop comments widget conflicting with theme comments

I have a widget that retrieves and displays the latest comments for a WordPress site. It displays the comment author, Gravatar, comment and date / time. The function to display the comments is in a ...
0
votes
1answer
117 views

Best practice to include custom user styles in widgets

What's the best way to include custom user styles in widgets? For example adjust colors for buttons, borders etc. without having the user to develop a complete new stylesheet.
0
votes
1answer
114 views

How To Disable Category Hierarchy In Categories Widget?

I want to disable all category's hierarchy in default categories widget. With a code in functions.php . But how? Thanks in advance.
0
votes
1answer
138 views

Display a widget on a specific type of archive

I have two sidebar widgets, I need to display 1 widget on the archive pages for the standard post categories and the other widget needs to show on just the archive pages for a specific custom post ...
0
votes
1answer
101 views

An issue with register_sidebar and the admin interface

Okay, I'm sure there is an simple explanation for this problem... it's just that I can't see it right now. Here is my code adding widget sidebars: add_action('widgets_init', ...
0
votes
1answer
57 views

Strange widget behavior

I've created widget by simple copying one of the default widgets class and modifying it. The strange thing is in the widgets admin area, this widget is not shown. When I searched the page source code ...
0
votes
1answer
56 views

Radom post image/link based on custom taxonomy

How would I make a widget to display a random post's image and permalink? I would like it to pull from a specific custom content type and only posts have set the custom field of "featured" to "yes".
0
votes
1answer
40 views

I would like to display different text on different pages

I have at the very top of my page a line of text within a h1 tag thet I use for seo reasons. the text and html around it is written in my header.php. but I would like to write differnet txt so it ...
0
votes
1answer
59 views

Custom widget breaking widget section in admin menu

I am building a child theme at http://habitat.erniehigh.com for a client. I need to add custom widget that shows recent posts by category. I have built similar widgets elsewhere using basically the ...
0
votes
1answer
164 views

Wordpress RSS widget and Yahoo Pipes

My RSS widget seems to be having a mind of its own! I am using a yahoo pipe to combine multiple feeds into one feed. The output RSS is being fed into the RSS Widget. I have modified the pipe to have ...
0
votes
1answer
37 views

Imported blog page layout messed

http://uma.lohray.com/weblog/moots-part-ii/ is a blog I imported from blogger. The front page is fine, but when one clicks to read a blog post, the end of the post has parts of the right side bar ...
0
votes
1answer
145 views

Edit the Publish Widget Options

Another noob question - under the 'Publish' widget in a default vanilla installation of WordPress 3.3.1, we would like to 'simplify' the Publish widget/ Specifically, we would like to have no 'draft' ...
-1
votes
1answer
32 views

How to make custom dashboard widget to display alert in front-end?

I need to make a widget to display any alert in front end The widget is in dashboard section on backend and any user can use yet. The content of the widget in dashboard is: Welcome message On/off ...
-1
votes
1answer
49 views

Widget that shows categories with posts numbers

Is there any solution to show categories with posts numbers like 'Archives' widget without changing the font size? UPD0: Sorry if my question is not clear. What I want? We have a pretty nice widget, ...
-1
votes
1answer
26 views

What can I do to customize a widget provided with this plugin? from where have I to start?

I am using this WordPress plugin to create an immage gallery: http://wordpress.org/plugins/easy-media-gallery/ This plugin provide a single widget inside it and I would customize some litle function ...
-1
votes
1answer
40 views

Widget does not work with WooCommerce enabled

I have created a widget here https://gist.github.com/joshbenham/e03c35313282c6ac402a For some reason when WooCommerce is enabled it will not save the extra fields (greatest, great and good). I have ...
-1
votes
1answer
616 views

function WP_Widget::widget() must be over-ridden in a sub-class. when create new Widget

Show: function WP_Widget::widget() must be over-ridden in a sub-class. in website. How to fix it?
-1
votes
1answer
84 views

how to enable full width page template in woo theme memorable?

I have been trying to remove sidebar so i can use full width of page but no luck. Does anyone have any idea how to enable full width page template in woo theme memorable?
-1
votes
1answer
114 views

Add a twitter feed to my Wordpress website

My website is WilsonsTransportation. On the left hand side of my site we have "testimonials" scrolling down. I've located the coding for that in my custom theme under page-home.php. I was hoping to ...
-1
votes
1answer
26 views

Problem on register/login widgets

I have downloaded and uploaded, activated successfully the plugin : Sidebar login of wordpress.org, which can be found here : Sidebar login In the picture description of sidebar login(in the link ...
-1
votes
1answer
230 views

Extending Widgets - Exclude # of posts field from Recent Posts Widget

I am currently using this code to extend WP_Widget_Recent_Posts, but I would like to exclude the field that gives the user the ability to show how many posts they want. I have a set number in my ...
-2
votes
1answer
26 views

how to move a widget from theme 1 to theme 2?

I bought two themes for two websites but now I can't buy the domain name and host for both and decided to run just one web I try my two theme 1-metro mag 2-Glider I decided to run Glider at least but ...