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

learn more… | top users | synonyms (1)

2
votes
1answer
113 views

Trying to wrap <span> around first word of multiple word strings with a widget_title() filter, only works on two word strings and not more than two

I am trying to wrap a around the first word of multiple word widget titles. I have used the answer from here: ...
2
votes
1answer
78 views

add widgets to dashboard for easy access for clients?

I have a widget created: if ( function_exists('register_sidebar') ) register_sidebar(array( 'name' => 'Featured Video', 'before_widget' => '', 'after_widget' => '', ...
1
vote
1answer
8 views

php to add a link into wp widget without specific url

I'm trying to write a plugin to a specific page that the plugin creates. The issue is how do i add a link to that page from the widget. I know the page but the url has to be picked up from the site it ...
1
vote
1answer
26 views

How to get my plug-in, wrote in php, to refresh on its own every 5 minutes?

I wrote a plugin with custom widgets for the Dashboard. It retrieves information from an XML file, and display the information into the widget. The XML file will be modified a bit every few minutes or ...
1
vote
1answer
27 views

Insert Widget option into mark-up with register_sidebar

I have added a custom field to my all widgets in my theme, called "custom-title". I have managed to save the field into the database for each widget, like so: s:12:"custom-title";s:17:"HELLO TEST ...
1
vote
1answer
39 views

Registering a stylesheet inside my WordPress widget

I did see the other topic similar to this but I cannot get mine to work. I am using WordPress 3.8 and am creating a custom widget for a site. I need to style it a certain way so I need to load an ...
1
vote
1answer
388 views

Adding WordPress colorpicker in widget settings

I want to add the WordPress default colorpicker in widget settings form. Here's what I'm trying: In my functions.php, I have this: function widgets_scripts( $hook ) { if ( 'widgets.php' != $hook ...
1
vote
1answer
101 views

Restrict access to specific widget field based on user role

I'm looking for a way to restrict the ability to drag certain widgets to specific widget areas in the widget editor. For example, I would like to restrict the widget field 'ads' to only be available ...
1
vote
1answer
298 views

Using add_filter() in Widgets

Just have a query reference the add_filter() function. Can you use this function inside a WordPress widget class. Example I have a widget with dynamic created code that I want to pass to another ...
1
vote
1answer
472 views

How to “pair” two widgets side by side in one sidebar

Currently I use the Pinboard theme with 2 sidebars. In each sidebar I place one kind of widget several times. The point is that 2 widgets of a row (1 of each sidebar) belong together regarding the ...
1
vote
1answer
88 views

How do i place same widgets multiple time by default on theme activation?

I am creating a portfolio theme and want to place some widgets on sidebar by default on theme activation. I did it but the problem is that, I want to place Text widget two times at the same sidebar ...
1
vote
1answer
277 views

How do I use wp_editor() in widget form?

I'm trying to use the built-in Rich-text (wp_editor()) editor in Wordpress for my widget, but I can't seem to find any simple way to use it.. I know you can use it, as Black Studio TinyMCE can do ...
1
vote
1answer
110 views

How to create a dashboard widget for one user

I will start by warning you that my programming skill is limited. I need to create a dashboard widget that will display in the WP dashboard for the users with the user_id=21. So far I have tried the ...
1
vote
1answer
64 views

Want to be able to sign up subscribers as authors

I want to be able to select a subscriber an author of a post in the admin so it displays their name as having written the post, but I do not want to give them any additional privileges (if they login ...
1
vote
1answer
124 views

How do I create a widget to embed the code for a sign up form, so that the sign up form appears on every page?

I'm going to follow the instructions here: http://kb.mailchimp.com/article/how-can-i-add-my-signup-form-on-my-website to create a sign up form on my website. I think I need to embed the code that I ...
1
vote
1answer
108 views

How to call widget by widget's id?

Is it possible to call widgets using it's id? for example I have a sidebar. In this sidebar I put meta widget and tag cloud widget. I have got their id's ($widgets_list): 'meta-2' and 'tag_cloud-2'. ...
0
votes
1answer
19 views

Widget & storing a Select box choice

I am creating a simple widget which displays all of the pages on the website. The trouble I am having is how to store the user's choice and display it on the front end. At the moment, when saving my ...
0
votes
1answer
12 views

Warning: Creating default object… when altering Customize panels

I'm trying to move my theme's [only] widget area outside of WP 4.0's nested "Widgets" panel by doing the following: $footer_widgets_section = $wp_customize->get_section( ...
0
votes
1answer
20 views

Display Posts by Views (Popular Posts Widget)

I am trying to display the most popular posts based off of this, but I don't think it is working properly. When you view a post it seems to add 1 view to each of them, not just the unique ID. ...
0
votes
1answer
15 views

Registered widget is showing up collapsed in the dashboard

I have registered two widgets in my functions.php file; however, the second one (#footer-ad) isn't showing up in the dashboard. function mobile_mix_widgets_init() { register_sidebar( array( ...
0
votes
1answer
12 views

Register a widget area when a theme option has been saved?

Is it possible to register a widget area and sidebars when an option has been selected and saved in a theme options panel? I am using a framework called redux but am not too sure if this can be ...
0
votes
1answer
25 views

Trigger Submit Event when Widget is added to Sidebar

I need to trigger the submit or "Save" button for a widget when the widget is added to a specific sidebar in the backend. The reason for this is I am setting a certain taxonomy for a Dropdown Menu ...
0
votes
1answer
18 views

Default Wordpress widgets always appear

I added only 3 Widgets to my sidebar, however when I set their visibility to hidden in post pages they disappear but ALL the default widgets appear. I want to remove the default widgets from appearing ...
0
votes
1answer
19 views

Remove default WordPress widgets

Hey guys here is the problem I have added 2 sidebars to my blog, however when I change their visibility to only appear on front page and when I click on a specific post ALL of the default widgets ...
0
votes
1answer
26 views

Add space to the end on a widget

I have a widget that when stacked with another the out put from my widget to the next sit on top of each other. I tried echo <br> but that gives me a fatal error. Is there any other code to add ...
0
votes
1answer
33 views

Widget dropdown always displays first option

I have a custom widget that I have made but whenever I change the dropdown value it always reverts to the first option when I save the widget. How can I have it display whatever option the user ...
0
votes
0answers
33 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
42 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
164 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
352 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
131 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
50 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
101 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
32 views

wordpress random widget widget

am planning a random widget for widgets that uses jquery to fade in each widget from the top (a total of 12 displayed 3 at a time). The widget creation and animation I can handle but falling short on ...
0
votes
0answers
32 views

Tabs in post of a wordpress?

I want to add tabs on a post of my wordpress website. But i am a new user of wordpress and don't know how to do it. Can anybody tell me how to do it. I will be very grateful.
0
votes
0answers
74 views

Conditionally enable autoplay when using oEmbed in a custom widget

I'd like to have all oEmbed urls (youtube, vimeo, soundcloud, etc.) behave as they usually behave, with one exception. In my theme I've created a widget that gets data from a given post. The post ...
0
votes
0answers
65 views

Custom plugin appears outside of the sidebar container

I created a custom plugin that activates a custom contact form widget, and when I add it to my sidebar, it appears outside of the sidebar container. Here's the code for calling the sidebar: ...
0
votes
0answers
36 views

WordPress widgets manager option for emulating theme layout

My theme has 6 widget containers. I'd like to be able to offer users a screen, similar to the existing widget manager, that presents these sidebars in a layout that mimics my theme's default layout. ...
0
votes
0answers
13 views

Can I make my widget of my video only automatic on the homepage?

I have a video that is automatic when someone logs onto my website homepage (wordpress). But I only want it to be automatic on the homepage. It is automatic on every page. How can I turn it so that it ...
0
votes
0answers
184 views

Set Custom Post Type in Widget Settings for use in Widget

I'm trying to dynamically list all of CPT's in a dropdown, set one in the widget settings and then echo that value in the actual widget output. I can't seem to get it to work though. I was trying to ...
0
votes
0answers
211 views

Output thumbnail for current DJ using Radio Station Plugin

So I've installed the "Radio Station" to my Wordpress installation. All seems fine with that. There's a widget included with this plugin that is meant to display "On Air" information about the ...
0
votes
0answers
67 views

Custom widgets in theme option page

I'm trying to create a simple theme options page that uses widgets to change the layout of content on the front page. I started off by using meta boxes not realizing that the position is based on ...
0
votes
0answers
21 views

My blog has a design issue.

My blog has been getting a good visitors these days. I have used linkwithin add ons to show related posts. But the problem is it is showing related posts in even homepage. Is there any way to not to ...
0
votes
0answers
29 views

Widget Disappearing in IE

Im debugging my site in IE, and my widget area is disappearing. http://pcdconsultancy.co.uk/ Any ideas? I have no transparency or anything on this.
0
votes
0answers
64 views

Getting a “Cannot modify header information - headers already sent by…” after duplicating widget

This probably isn't the smartest way to go about it, but I'm very close to launch and the client wanted a news widget displayed two ways. Our theme's news widget displays a settable number of news ...
0
votes
0answers
96 views

Adding custom widgets to theme sidebar on activation

I have a custom widget in my theme with the id of "widget_my_box_menu" and I'm trying to add that widget to my theme's main sidebar on theme activation. The main sidebar's id is "home-sidebar-widget" ...
0
votes
0answers
72 views

List.js inside WordPress widget

I am trying to implement list.js (http://listjs.com/) inside my WordPress widget, so far with no success. At first I have tried it in a simple index.html file outside the WordPress environment just ...
-1
votes
0answers
20 views

Automatically add widgets to all pages

I have created a few pages and made them into menus. Also i'm using widgets on pages. Some of the widgets should be in all pages. In every page i need to add a short-code to that widget. Is there any ...
-1
votes
0answers
32 views

Get an archive of a specific category

I have created a widget to get an archive with the post count. The issue is, I want to display the monthly archive of the specific category blog. Here is the code I've tried to display the ...
-1
votes
0answers
30 views

Widget to add an different image to sidebar (by category)

I want to add custom content (maybe using a widget) on my website's sidebar that changes by category. For example, if a user lands on the 'Cars' category, I want to show an image related to cars. In ...