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

learn more… | top users | synonyms (1)

0
votes
1answer
224 views

change widget to display excerpt instead of content

For the life of me I can not figure out how to get this widget (built into the theme) to show the excerpt instead of the post content. Can you guys take a look at it for me please. Any help would be ...
0
votes
1answer
93 views

Is there a simple way to have a new sidebar for each page?

I am the programmer on my small dev team, along with the content editor and designer. My colleagues want to be able to add a different sidebar to each new page they make without having to monkey with ...
0
votes
1answer
4k views

How to load a stylesheet into wp_head from a custom widget?

The code below is part of a widget that goes with my theme. I'm trying to include a stylesheet that the widget needs by placing an add_action call to wp_head. However, the function never fires in this ...
0
votes
2answers
164 views

How do I create a template page with a specific widget as the content?

I have installed a widget so that I may add testimonials. This widget cycles through the testimonials in the sidebar and everything is fine. What I now want to do is create a testimonials page that ...
0
votes
1answer
236 views

What's the best way to implement custom widgets on a per post basis?

I'm creating a category called "Falculty" where each post is a member of my client's staff. Each post includes a biography and photo gallery of that staff member. My client would like to be able to ...
0
votes
1answer
438 views

how to add the same Widget twice to a sidebar?

I have a sidebar and would like to fill it like this: [Text] [Some other Widget] [Text] but I can add the Text widget only once to the Sidebar. What can I do to be able to add it more than once?
0
votes
1answer
673 views

Display specific widgets in different area's around the page

I've installed the Jigoshop plugin to create an e-commerce site. It has several built in widgets that I want to use. Is it possible to pull out specific widgets and display them within a page ...
0
votes
1answer
735 views

Customizing wordpress default widgets?

Is there anyway to customize the default WordPress widgets or do i need to create my own? For example, I want my recent post widgets to display date aswell. Thanks in advance! /Richard
0
votes
1answer
476 views

Widget's container?

I have some custom-made widgets: echo $before_widget; if ( $title ) echo $before_title . $title . $after_title; echo $output; echo $after_widget; Let's assume the $title is "Widget's ...
0
votes
1answer
169 views

Filter Text from sidebar widget?

Hey guys, I'm using a calendar plugin that provides a sidebar widget to show current calendar dates. However this widget always shows N/A if I don't set a category for a specific event. Any idea how ...
0
votes
1answer
760 views

How can I use AJAX to save/update a widget form?

My custom widget's form will have two pull-down menus: the content of the second menu is dependent on the user's selection in the first menu (think of the way Country and State/Province works). I ...
0
votes
1answer
137 views

WordPress archives widget causes Bing bot 404 errors

I'm using the standard WordPress Archives widget in dropdown mode on my blog. But apparently the Microsoft Bing spider gets confused by it, because the dropdown code looks like this: <select ...
0
votes
1answer
148 views

Minimum Widget Width for Plugin Development

I was considering a plugin that inserts itself as a widget in one's sidebar. Trouble is, I don't know what to expect for the minimum width in one's sidebar. Is there a standard?
0
votes
1answer
527 views

Script to remove all inactive widgets?

I've been working with widgets a lot lately and have amassed a ton of widgets in the inactive widgets collection. Can someone share a script or plugin that will remove all inactive widgets from the ...
0
votes
2answers
229 views

How to activate WordPress widgets but not display?

I have activate the widget in my WordPress site in admin panel, but on the front page I don't want to display it. Is this possible?
0
votes
1answer
969 views

How do I use add_action on custom widget?

First hope you will take a look example widget http://pastebin.com/2cL7BmgF There have male and female option. Let say I select male and I want add male.css to wp_head When I put something like this ...
0
votes
2answers
237 views

Button in SideBarOther widget not showing up on all pages

An item in SideBarOther shows up on the main article listing page, but when I select an article (same page layout, the article replaces the listing), the item isn't there. There are two items in ...
0
votes
2answers
299 views

Different widgets in sidebar on sub-children pages?

I'm working on project, where I have different widgets on pages and also different order. Example - on About page I may have chat widget, then e-mail sign-up widget, then testimonials widget. On other ...
0
votes
2answers
213 views

Modifying the markup in the Tag Cloud widget?

I need to modify the markup of the tag cloud widget. Can someone tell me how to go about doing this without modifying any of the files outside of the theme directory so my changes don't get ...
0
votes
1answer
482 views

Removing default theme widgets

I am trying to remove the default widgets in a theme that I found here: http://top-wordpress.net/ The theme is Terapathy. In case of some of the most used themes, if I select the custom widgets, the ...
0
votes
1answer
522 views

Display posts from category in post content?

I am developing a website using WordPress. As I don't want the sidebar, I removed 'get_sidebar()' from my page. But I need to place a category in the content part (like a category for latest news) - ...
0
votes
2answers
1k views

How to make multi -column, interesting home page in Weaver 2010?

(I am pretty new to wordpress - am a C++ developer, not an html/css coder, but I am trying.) I am having trouble figuring out how to make a home page that has blurbs about some of our products, etc ...
0
votes
2answers
512 views

How can i initialize a widgetized sidebar (with widgets)

I have a WordPress multisite installation. The client wants an email update form on the sidebar of every blog. I want to use a widget there so I need to assign it to the sidebar. Is there any way to ...
0
votes
1answer
361 views

Sidebar login widget with error print, returns an error

i'm building a widget to login from the sidebar and print errors if any, so everything is working fine except that when i login it returns an error: Warning: Cannot modify header information - headers ...
0
votes
1answer
1k views

How do you force a sidebar widget to have a container div around all child widgets?

My theme creates several widget areas for the end user. However, I've got a slight problem in that, if multiple widgets are dropped onto any sidebar container, the resulting code in "view source" is ...
0
votes
1answer
436 views

Placing a widget with $wpdb query

I'm getting the feeling that adding Widgets via MySQL query is not as simple as I thought. I was under the impression all data is stored in the options table, but it seems like I was wrong. Any idea ...
0
votes
1answer
192 views

Missing sidebar parameter “fix” - before_content

as you know the sidebar parameters from register_sidebar() that control the widget layout are - before_widget - after_widget - before_title - after_title the problem is that you cannot implement ...
0
votes
1answer
21 views

Why is the phone number a hyperlink on desktop sites, in my widget?

Here is the widget function from a widget I created. For the phone number, I don't understand why it is making it into a hyperlink on desktop sites, using the value of the if before ($gplus) for the ...
0
votes
1answer
18 views

Customise the Category Widget

Similar to my Search Widget question Is there a way to customise the Categories Widget? Again trying to add in extra markup. Thanks
0
votes
1answer
16 views

Is there a way to dump all registered sidebar/widget?

I need to know the properties of sidebar and widgets I've added, is there a way to dump those? Thanks.
0
votes
1answer
25 views

New Widget are not showing

I added a new sidebar according to WordPress Codex and for some reason it shows only on the admin and nothing shows on my front pages.. I tried to look for it on Google and here on the forums but I ...
0
votes
1answer
56 views

Theme's default styles are overriding my plugin's custom CSS

I have created a little plugin that creates a widget that I've made, basically just a pretty <ul> element. Unfortunately, all default widget styles are overriding my custom CSS, and adding ...
0
votes
1answer
17 views

Instance not inserting data for widget

I am trying to create a widget for my website. This is my first instance of widget creation and I am really unsure as to what the issue is Here is my code as it stands: add_action( 'widgets_init', ...
0
votes
3answers
49 views

Allow different <span> tags in widget titles

How can I make widget titles allow HTML? I want to add icons from an iconfont to the titles like <span class="icon-someicon">Widget Title Here</span> I tried the following but it does ...
0
votes
1answer
34 views

Wordpress widget in custom theme

I created a custom theme and writing a basic widget for my wordpress based website. If I paste the code in functions.php the code works fine, however if I paste the code in a separate file and keep it ...
0
votes
1answer
21 views

How to set the default value as the saved value once a form of widget is saved?

I tried doing this for the function form : <?php function form(){ //Set up some default widget settings. $defaults = array( 'uid' => __('121232', 'example'), 'height' => ...
0
votes
1answer
114 views

Removing side bar widgets from GovPress theme

I'm using the GovPress theme, I've created a child theme. I now want to remove the sidebar widgets, as they are no use to me. I've read multiple articles online, but none of them work. I believe I ...
0
votes
1answer
18 views

How to delete Jetpack Widgets from the Widgets page in admin panel

NOTE: Please note that, it's not the Widget Visibility issue — I'm taking about front-end. To supply a project to my customer, I need to hide/delete the Jetpack Extra Sidebar widgets from the ...
0
votes
1answer
38 views

the_widget() inside functions.php

I'm setting some options in the backend using functions.php and I'm doing: $w = the_widget('My_Custom_Widget'); but I don't get any output. However doing <?php the_widget('My_Custom_Widget'); ...
0
votes
1answer
44 views

Widgets not showing on sidebars

I have registered two sidebars in my theme using the function below, but none of the widgets shows up in the sidebars even though I can manage them in the dashboard: // register sidebars add_action( ...
0
votes
1answer
57 views

wp_dropdown_pages in widget form

I have a small quirk somewhere in my widget form. Upon saving the widget instance, the form refreshes with the wrong selected 'page_id' from the wp_dropdown_pages input. If I refresh the widgets page, ...
0
votes
1answer
49 views

Random sidebar/widget background

Does anyone have a clever idea to get a random/changing background for just the widget sidebar?
0
votes
1answer
175 views

Correct code to use php in text widget

This code is used to display php inside a text widget add_filter('widget_text','execute_php',100); function execute_php($html){ if(strpos($html,"<"."?php")!==false){ ...
0
votes
1answer
27 views

What's the right way to share data between widgets?

I've got a few custom widgets in my site, which I'm targeting to specific tags. There may be a case where there may be an overlap in widget targeting, and the desirable behaviour may be to only show ...
0
votes
1answer
31 views

Add links widget to self-hosted blog?

http://en.support.wordpress.com/widgets/links-widget/ discusses a Links widget that makes it easy to create a blogroll in your sidebar. I'm not seeing this widget in my blog by default, and searching ...
0
votes
1answer
215 views

How to add Custom Fields to Settings in Widget Options for all Registered Widgets?

I want to add input box in the custom form when we click for Widget Settings. Really like to have this additional text box in all widgets be Custom Made or the default ones. I'll be needing help in ...
0
votes
1answer
56 views

Why would apply_filters return a non-empty string, when the value returned is empty?

Been breaking my keyboard over this. Did a proper install, uploaded the database to a fresh MySQL and been working on using child themes properly. But there is something plaguing me I can not figure ...
0
votes
1answer
141 views

Widgets not showing in my custom theme

I am developing this WordPress custom theme: http://onofri.org/WP_BootStrap and I am trying to insert a widget area under the Partner e Sostenitori section, but can't work. I have performed the ...
0
votes
1answer
18 views

Widget only in first post

I want to put a widget area into the content of the first post. My problem though is that is can't figure out how to get only the first post in my function. Here is my function: function ...
0
votes
2answers
51 views

Using filter in the widget causes fatal error

I'm adding a filter for a WordPress query in a widget. I'm adding as following: function filter_where( $where = '' ) { } add_filter( 'posts_where', 'filter_where' ); $query = new WP_Query( $args ); ...