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

learn more… | top users | synonyms (1)

2
votes
3answers
248 views

How do I save data from submitted form from widget

I'm looking over internet for some simple solution of email subscription widget but no luck. Or they are too complicated and paid, or they are relaying on some external email functions. I'm not a ...
1
vote
3answers
381 views

How to show different widgets on different pages in a user friendly way

I'm looking for a plugin to let users choose which widgets appear on individual pages. There's some solutions out there, none of which that I've found are truly easy for a non-technical user. I've ...
3
votes
2answers
168 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
366 views

Conditional tag in Widget Logic for checking if top level page or if subpage

I'm using the Widget Logic plugin to show widgets on certain pages using Wordpress Conditional Tags (or any general PHP code). What I would like to do is only show a widget on child pages, not top ...
1
vote
2answers
219 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
31 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
24 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
52 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
57 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 ...
0
votes
2answers
324 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
28 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
2answers
53 views

Wrap all default widget into div tag

I want wrap all default widget into a div tag, so i can add a suffix class to define style for each widgets <div class="suffix-class"> // widget </div> And in widget form, we have a ...
0
votes
2answers
85 views

Showing related posts (custom post type) outside of the loop

I'm trying the following (it's a sidebar widget in the Single New template): <ul class="featured-jobs"> <?php $postid = $post->ID; $categories = ...
0
votes
2answers
41 views

user definable sidebar per page

I'm searching for a solution where the user can define some sidebar widgets for himself (only text and images). The user should have the possibility to choose a different sidebar for a different page. ...
0
votes
2answers
106 views

Widget redirecting to home page

Am trying to create a widget that searches for names. The searching and all that is fine, but when I hit submit, I get returned to the front page. I tried messing with the action="", but no matter ...
0
votes
2answers
51 views

widgets in contacts only

I have a few pages listed in my top menu. these are: contacts, My account and messages. I have added a map to the "Pages Sidebar" tab in admin. But it seems to add the map to all 3 pages listed above ...
0
votes
2answers
90 views

Multiple widgets in wordpress

I have created a wordpress widget. It has a drop down in widget options. The dropdown contains "facebook" and "twitter". If admin selects "twitter", then twitter follower count is displayed inside the ...
0
votes
2answers
1k views

Creating a custom menu/widget area

I'm looking to create a /menu/widget area like the following site: http://www.microsoft.com/en-gb/default.aspx please see sections under downloads, security, support, about is this considered a ...
-1
votes
2answers
563 views

How to add a widget area between blog posts in Genesis Framework?

What's the code for adding a widget area between my blog posts? Specifically I want to put one widget area inbetween after the first 3 posts of my blog?
-2
votes
2answers
212 views

How to use widget on page or post?

I am just using Random image Widget, it's for image gallery. Please anybody tell me that how can I use this widget functionality on my website page or post?
-1
votes
1answer
71 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
85 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
177 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 ...