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

learn more… | top users | synonyms (2)

0
votes
0answers
14 views

How to place a widget beside a div/text so that they display as a continuous line

An example will probably provide the best base context. I want to achieve: Headline widget (linked text/image)... linked text Point of difficulty: displaying these so that they read as one line, ...
0
votes
0answers
12 views

Post Count for Categories, however not to calculate a total

Normally this is how the category widget works. Fruits (15) - Apples (7) - Oranges (3) - Grapes (5) Apples, Oranges and Grapes contains posts, however nothing in Fruits. Lets assume that Fruits ...
-1
votes
1answer
7 views

Full Width Container Colour Problems

I wanted to duplicate a page and so I copied the code into a new page. Everything worked however one full-width container has a background colour that on the original page stretched across the whole ...
-3
votes
0answers
25 views

Wordpress widget in sidebar based on post tag

I have a website which provides information of listed companies in the stock exchange. We post articles, announcements related to these companies on a daily basis. We have a page for each company, ...
0
votes
0answers
12 views

Widget editing, pages to posts(blog)

Is there any quick way to edit this widget to show posts instead of pages? class interface_recent_work_widget extends WP_Widget { function interface_recent_work_widget() { $widget_ops = ...
0
votes
1answer
26 views

Widget stuck at particular point when dragging to bottom

This is weird, but when I try to drag a widget to the bottom of sidebar it stuck in the middle, if I hold the dragging and drag it back to top it works but I can't drag it bellow that particular ...
0
votes
0answers
6 views

Dropdown Menu Widget Plugin Links not Clickable [on hold]

I am using oneengine theme with Dropdown Menu Widget plugin but the menu items are not clickable. You can see the problem here: http://goo.gl/l6mShN
0
votes
1answer
17 views

How to save widget settings on field value change?

I'm developing a widget. Its form has two HTML select elements: one to display a list of all categories, and the other for displaying a list of posts based on the selected category. The posts HTML ...
1
vote
0answers
17 views

Fire on widgets_init only on dashboard

I have an interesting issue. I need to launch an action on widgets_init, but ONLY on the WordPress Dashboard. So I can't use dashboard related hooks, because they fire too late; it has to be on ...
0
votes
1answer
14 views

Always show the widget title in a wordpress widget

I'm using the default category widget to show my category list in sidebar. The problem is when I select some category to visit the corresponding category page [ex: football], the widget title [which ...
1
vote
0answers
15 views

Custom widget with WYSIWYG

I am developing a Custom Widget and i want to add a textarea with WYSIWYG editor in my widget setting . Any idea or suggestions ?? Thanks.
0
votes
1answer
23 views

How to get options of all active widgets ?

I am currently using a loop that goes trough all sidebars looking for widgets than loop those again in order to get all widgets options. Doing this on add_filter('sidebars_widgets', array($this, ...
0
votes
0answers
12 views

How to add/save/retrieve additional fields to all available widgets?

I cant seem to find any complete tutorial that shows how to add / save/ retrieve a fields to any widget. Can someone please show a simple example how to add a simple select , save the data and ...
0
votes
1answer
19 views

Best strategy for providing theme options using customizer

I am making a free distributable theme and I wish I could provide theme options in the best possible way. I have doubts (mostly about widgets) and sidebars. Here we go: Is it a good idea letting the ...
-3
votes
0answers
24 views

how to call widget area in custom post types [closed]

i m using Types plugin in genesis framework , then i will create custom post and Field under the custom post. i want to call theme widget or want to create custom widget area in this custom post ...
0
votes
1answer
14 views

Widget background images missing on second blog excerpt page

On my main blog page, there are category images on the left-hand side. When I click "next page" at the bottom of the excerpt list, and the second page of excerpts loads, the images are no longer ...
0
votes
0answers
29 views

use add_action('wp_head') in a widget for generating dynamic CSS styles

I have been working on a 'Custom Pop Links' widget for use in a theme which is ready for distribution. User can change the color of a link using a color picker inside widget. Untill now, I used inline ...
0
votes
0answers
7 views

Register Widget Areas from Custom Widget

Is this possible to register sidebar / widget area from a custom widget?. If you have any idea please let me know. I can create it from custom theme and custom plugin. But I want to create from ...
0
votes
0answers
12 views

How to code so the calendar widget so that each day on it is a link straight to that day's post?

I have a blog in which I post no more and no less than once per day. Every day, one post, and they're all named accordingly like this: http://everydaypoetry.net/03/31/2015/03312015/. I'm currently ...
0
votes
0answers
5 views

widget output problem

I created a custom widget, but it's output without any html markup and any css style , and all my variables are surrounded with p tag . any idea ?? public function widget($args, $instance) { ...
0
votes
0answers
9 views

Widget Development: As I add widget to Widget Area, it doesn't work until refresh page

I just created a custom text widget with a bit more styling options in it, but as I tested on widgets page I got some issues. For example as I save anything on that widget, it lost all styling and JS ...
0
votes
0answers
22 views

How can I add widgets to the category page?

At page wp-admin/widgets.php I can personalize the Widgets shown in the homepage of my website. But I suspect I cannot use the same for any other page. I would like to create a page and put inside ...
0
votes
1answer
26 views

Randomizing the RSS Widget

I'm trying to see if there's a way I can make it where the RSS widget can pull in a different feed (one of let's say ten I pick) and displays it in the widget each time the page is refreshed? It's ...
0
votes
1answer
13 views

Wordpress version quick check?

This should be a FAQ but I didn't find it quickly. Logging into my wordpress site as admin on the upper left and lower right it reminds me to upgrade to 4.2.1. This support topic on wordpress.org says ...
0
votes
0answers
16 views

How can I to add css or js to wp_head from shortcodes or widgets? [duplicate]

How can I to add css or js to wp_head generated from shortcodes or widgets?
0
votes
0answers
34 views

Add a sidebar for menu item?

I want to modify the WordPress navigation menu. I have added a custom checkbox in the menu items custommenu. If that is enabled, then I want to remove the submenu items for that item and include a ...
0
votes
0answers
31 views

Sticky Widget with scroll limit

I have a Widget fixed as the visitor scrolls down the page. At a certain point though, the widget needs to 'stop' so wider content is not covered. I found this answer at Stack Overflow (first ...
0
votes
1answer
27 views

Exclude posts from widget while post is showing on home, single and categories

Im using this widget. but im trying to figure out how to get it to not display any posts that are currently being displayed on the home page, single post and categories. Another user raised the ...
-2
votes
1answer
23 views

Change the datasource of widget in a Wordpress theme

i have a wordpress theme and i want to change the data that is displayed on a widget. My theme is Bloom from Famethemes ThemeForest and the widget is this I need to diplay in the tabs a rss feed ...
1
vote
1answer
24 views

Add before_content and after_content to register_sidebar

Is there any way to add two new functions, before_content and after_content to the register_sidebar function? These would work like before_title and after_title, except it would wrap everything that ...
1
vote
0answers
9 views

Save/update widget outside admin panel

Is there some way to update/save widget from page - not from admin ? I create widget with charts and do not know how to update it from sidebar. I found of course form in admin: <form action="" ...
0
votes
1answer
14 views

Downloading Generated XML File

I'm making a Widget which presents users with categories as drop down list. When user selects category and press download, I want to get all posts under category and download them. I have faced a ...
0
votes
0answers
14 views

Displaying a widget with custom taxonomies

I'm trying to display a widget that would pull all the information from custom taxonomies for the relevant post, like this: http://www.onlinecasinos.fm/reviews/bet365-casino In that example, on the ...
2
votes
0answers
37 views

How to make a widget expand wider than the column width when editing its settings in the admin

The WordPress Text widget expands horizontally beyond the margin of the sidebar when added to a sidebar and opened in the admin and I am trying to apply that function to a widget. I see inline css is ...
0
votes
0answers
24 views

Post List Widget with custom posts and editing the Read More Link

I actually have 2 questions, one related to the Post List Widget, the other concerns the "Read More"-link. ad 1) I want to show a certain category of posts (only one post at a time) in this widget. I ...
2
votes
1answer
32 views

How can I delete all inactive widgets?

I want to cleanup all inactive widgets. I tried following snippet as suggested by this answer Script to remove all inactive widgets?. $sidebars_widgets = get_option( 'sidebars_widgets' ); ...
0
votes
1answer
15 views

How to allow editing of text in sidebar?

I am developing a theme which has an area of the sidebar which displays the blog owner's bio and photo as a background image. I could hard-code this information, however, I'd like to learn how to make ...
0
votes
0answers
18 views

Multilingual multisite > customisable footer across different sites with widgets?

I'd like to keep the structure of the footer similar across all sites using the same Theme. However, each site would need different content in their footer. Here's a concrete example - for Site A: ...
0
votes
1answer
104 views

Showing a Thickbox (tb_show) does nothing

I'm trying to add a media uploader to a widget/plugin and I'm at the stage where I need to add a picture from the media library (or upload a new one). I added some javascript and added an event to a ...
0
votes
1answer
23 views

Are widget arguments always set inside My_Widget::widget()?

Specifically, are the before_widget, after_widget, before_title and before_title array keys always set inside My_Widget::widget()? I'm wondering if statements such as the following are necessary ...
0
votes
1answer
14 views

How to get data from one wordpress site to another

I have the following sites: 1. Community News site 2. Classifieds site 3. Coupon Site Is there any way I can get data from my classifieds and coupon site on my community news site....like in the ...
0
votes
0answers
28 views

do_action inside of onclick

I'm brand new with making plugins/widgets, and am probably pretty limited to basic in knowledge with php as well. I want to be able to register a function that runs when a button is clicked. The ...
0
votes
1answer
20 views

Widget Script Loads at Bottom of Page

I've been working on a plugin that adds a script to the sidebar when activated. So far, I've been able to display the code, but it loads at the bottom of the page and not in the sidebar. I'm pretty ...
0
votes
1answer
31 views

widgets not working

I pasted my siderbar widget code in widgets.php file function right_sidebar_widget() { register_sidebar( array( 'name' => 'Right Siderbar', 'id' => 'right-siderbar', ...
0
votes
1answer
49 views

How do I get shortcode, widget and template tag CSS to load in the head only as required? [duplicate]

I have a shortcode, widget and template tag that need to load CSS. I am registering in init, and enqueueing as required. The only problem is, it is adding the CSS loader at the bottom of the page, ...
0
votes
0answers
12 views

Retrieve the real time widget area class

I'm trying to retrieve programmatically the sidebars classes in my developed pluging. I use the global $GLOBALS['wp_registered_sidebars'][1] and try to access the 4th element(class) in the array but I ...
1
vote
1answer
21 views

WordPress widget / plugin…fields not appearing in my widget

Trying to create my first plugin. A simple one. It's doing mainly what I want to do except the widget itself in Appearance-->Widgets doesn't display my fields. Wondering if anyone could point me in ...
0
votes
0answers
14 views

Show widget location borders for development

I'm taking over a wordpress site, whose template has a high number of widget locations in the appearance section. Is there a way to temporarily turn on the widget location borders so I know where ...
0
votes
0answers
20 views

add_filter('body_class') running from widget even when widget is not loaded on page/post

This should be adding a function to init() to check if the widget is active widget on the front end on a page/post - but even when the widget is not loaded on a page/post, .Widget_FilterProject is ...
0
votes
0answers
19 views

Add TinyMCE to WordPress default text Widget

Wonder if there is any way to add the TinyMCE (limited options) to the textarea of a default "Text Widget" in WordPress, Is there any way to do that ? There are few plugins to do the same kind of ...