0
votes
0answers
26 views

Working widget does not show up in appearance->widgets

I try to add a custom widget for use outside of a normal sidebar. For that I have created class myfirst which extends WP_Widget and with appropriate function overrides. namespace widget; class ...
0
votes
0answers
20 views

Show sidebar from custom meta value

I want to show sidebar from meta value.Basically I am using wp-page-widget.Now I want to show the active widget.Since I am working on one page template so general procedure will not work. Upon ...
0
votes
1answer
36 views

Wordpress Footer Widget Processing

I made a sidebar in wordpress and have widgets in it, I want to process them one by one so that I can set their locations in theme according to me. Example: If I have a 3 widget in my footer ...
0
votes
0answers
50 views

Custom widget not appearing on front end

I have the following widget location defined in my theme's functions.php: register_sidebar( array( 'name' => __( 'Opening Hours', 'transparent' ), 'id' => 'sidebar-hours', ...
-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 ...
0
votes
3answers
78 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
0answers
24 views

What's the policy for building a theme that doesn't support widgets/menus?

I'm developing a minimalistic theme, and my plan is not to include menus or widgets in it. The Theme Review page on wordpress.org states: Whether implementing required, recommended, or optional ...
1
vote
1answer
95 views

How to add a text widget during theme activation

I'm trying to add a text widget with the title and text set, to two custom sidebars in my custom theme. But, I can't find a clear walkthrough of how to do it. I've seen bits of code here and there, ...
0
votes
1answer
35 views

Creating a Playlist of Widgets

I'm trying to create a specialized theme that would enable users to show a playlist of widgets in their sidebar. By playlist, I mean that each widget in the sidebar would follow a specific schedule. ...
0
votes
1answer
73 views

How to display only some widgets of a sidebar?

I would like to break up a sidebar over three containers. Each container should hold up to three widgets of the sidebar. Therefore, I need to find the HTML for only the widgets 0 to 2, 3 to 5 and 6 to ...
0
votes
1answer
194 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
29 views

How can I specify that an area of my theme contains widgets?

I am pretty new in WordPress theme development and I am developing a theme that use BootStra CSS framework I have to do that a specific area of my theme can contains some widget\module (I don't know ...
1
vote
1answer
419 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 ...
0
votes
1answer
39 views

How to include a file only on dashboard widgets page?

I want to add some styles to the widgets input fields. Therefore I want to include a style.css file only on the wp-admin/widgets.php page. How can I detect the above page and include file there?
0
votes
2answers
34 views

Is it acceptable for a WordPress theme to not accept widgets?

I'm developing my own WordPress theme, and I was going through the Theme Unit Test as described by the Wordpress Codex. Now, at some point, the Codex mentions that I should verify that All widgets ...
0
votes
0answers
19 views

grouping my widgets wordpress

In the widgets page, there are two boxes "Available Widgets" and "Inactive Widgets". How can I add a new boxe with my custom name where I can group all my widgets.
0
votes
1answer
125 views

Can't work out why widget contents disappear from admin

everytime I make a change to any widgets in admin they disappear - sometime just from admin, sometimes from the frontend and sometimes both. I get them back by adding update_option( ...
0
votes
1answer
175 views

Widget Option is Missing

My Widget Option is missing in the Dashboard area. How can i make that appear? I have downloaded this Blank Theme from Chris Coyiers site. sidebar.php <?php /** * @package WordPress * ...
1
vote
2answers
2k views

HowTo: Add Class to Sidebar Widget List-Items

The newest version of Bootstrap (v3.0) adds a new List Group component which has the following structure: <ul class="list-group"> <li class="list-group-item">Cras justo odio</li> ...
0
votes
1answer
65 views

Default calendar widget not showing up

I just started learning how to make custom websites with this (unfortunately) most popular CMS, and I am having a small issue. I widgetized some areas of my website, and some widgets (I tested 3, ...
0
votes
2answers
314 views

Remove/Hide a Widget on a Custom Template

i want to make a custom template using Genesis.. I added a custom Menu just by adding a widget on WIDGETS section and placed it on the top right side of the page. But i want it to be removed in a ...
0
votes
1answer
51 views

Wordpress dynamic widget by location?

i need to show the widget based on user location , for a testing purpose i have created the by using following code if( function_exists( 'register_sidebar' ) ) register_sidebar( array( ...
2
votes
2answers
245 views

Add class to before_widget for all widgets with a dropdown and a counter

Some predefined widgets offer the option to use a select element (dropdown) and/or a counter after each entry. How can I add the CSS classes widget-with-dropdown or widget-with-counters to these ...
0
votes
1answer
481 views

How to hide custom sidebar on mobile

So I have made some customizations to my wordpress premium theme,but I want to hide those customizations on mobile versions. I've tried to add id of widget inside @media with display:none; but ...
0
votes
2answers
169 views

Unable to add widgets to sidebars in custom theme

I'm trying to add a footer area to wordpress so I can drop widgets and things there. I see my footer area in the admin section, but if I add a text (or any other) widget and then save it, nothing ...
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. ...
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 ...
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
97 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" ...
3
votes
1answer
400 views

Should I use set_transient or update_option?

I want to store some Twitter API data in WordPress. After every hour, I want to fetch new data from Twitter, and update only if the data is successfully retrieved from API (sometimes the API gives ...
5
votes
1answer
2k views

How to store widget fields data as an array?

I am creating a widget, it needs to store about 10 IDs. Right now I'm using following field method to store each of the ID in a separate field. It stores data of each field in a separately in the ...
3
votes
1answer
582 views

Registering Sidebars and Sidebar Widgets. Sidebar Widgets Not Displaying

I am registering sidebars and sidebar widgets. The theme currently supports two sidebars. Primary and Secondary. add_action('widgets_init', array($this, 'add_sidebars'), 10, 2); public function ...
1
vote
1answer
530 views

Add tinymce to widget textareas

I've got several custom widgets which are extended from WP_widget. Many of these have textarea fields. I'd like to be able to apply a special css class to certain of these textareas in order to ...
2
votes
1answer
74 views

How to determine which registered sidebar area a custom widget is loaded into

I have a custom widget that I want to apply conditional logic to, depending on its parent sidebar's registered ID. For example, my theme has 6 registered sidebar widget areas. I have a custom widget ...
0
votes
0answers
15 views

Widget for Sitewide Editable Content? [duplicate]

Possible Duplicate: Add New Footer Widget Area with Limited Options? I have a banner and a footer that I need to be editable, but I'm not sure if a widget is the best way to accomplish ...
5
votes
4answers
3k views

Adding a div to wrap widget content after the widget title

I'm trying to add a div to a widget's content in my dynamic sidebar. Here is the register code; register_sidebar(array( 'name' => "Sidebar1", 'id' => 'home-sidebar-1', ...
28
votes
4answers
5k views

Where to put my code: plugin or functions.php?

Is there an easy to understand scheme to decide what kind of code belongs to a plugin or the theme’s functions.php? There are many cases and many debates about that topic, mostly because there are ...
1
vote
0answers
27 views

Theme development: Pre-activated widgets [duplicate]

Possible Duplicate: Programmatically add widgets to sidebars Is it possible to develop a theme that has certain widgets automatically activated when the theme is activated? For example: ...
0
votes
1answer
375 views

How to Modify a Widgets UL and/or LI Classes

Im attempting to use twitter UL styles on a custom menu widget. For example, in BootStrap they have a Nav List Style for UL's <ul class="nav nav-list"> <li class="nav-header">List ...
2
votes
1answer
834 views

register_sidebar ignores 'id' and 'class'

I am using the following to register a widget area: if ( function_exists('register_sidebar') ) register_sidebar( array( 'name' => __( 'Footer Widgets', 'hex'), 'id' => ...
1
vote
4answers
572 views

Widget items disappearing

if ( function_exists('register_sidebar') ) register_sidebar(array( "name" => "Top Widget Area", "id" => "topWidgetArea-$i", )); I just create a new sidebar with this. ...
2
votes
2answers
1k views

How wp_cache is supposed to work, and does it help with performance?

I was coding my recent comments widget, and using $wpdb->get_results and I wanted t use cache so it doesn't perform the query every time the page loads, so I used: $comments = ...
3
votes
3answers
1k views

How to enqueue script if widget is displayed on page?

I created a widget that uses a jquery plugin, and I used is_active_widget to enqueue the script, it's working fine but it's also including the script even on pages that doesn't show this widget. so is ...
6
votes
1answer
1k views

What is the difference between wp_register_sidebar_widget and register_widget?

What's the difference between them and when should we use each one ? I'm using wp_register_sidebar_widget right now and it's working fine but I've seen a lot of tutorials online on how to create a ...
1
vote
2answers
53 views

Should use widgets in this case?

We develop a new WordPress site with a new theme developed exclusively for this site. Some widgets of the same type (such as two "Bookmarks" widgets) should be styled differently (that is have ...
2
votes
3answers
106 views

Is it a good idea to make whole theme widgetized?

I have mainly seen sites using widgets on sidebars or inside multi-column layout. However, I was wondering what if we could use widgets in every blocks like header, main content block, footer etc. Is ...
0
votes
1answer
1k views

Register sidebar 'before' and 'after' html as div rather than li tags

I am making sidebars for my theme using the register sidebar function. The codex does it something like this if ( function_exists('register_sidebar') ) register_sidebar(array( 'name' => 'Right ...
0
votes
2answers
523 views

How can I hard code my sidebar?

I am building a child theme based on Thematic. Rather than use widgets, I would like to hard code my sidebar but I can't figure out how to do this. Any help appreciated! Thanks
1
vote
2answers
871 views

modify a output of a widget

I'm to implement a theme in wordpress. Is possible modify a output (html) of widget in wordpress? For example, the "recent comments widget"?
1
vote
3answers
236 views

Disable dashboard drag&drop

I need to disable drag&drop functionality for dashboard widgets. This should be realized with jquery, just as it is for the dashboard_browser_nag. I'm no jquery expert - so can anybody tell me ...