Widgets are configurable elements used to dynamically build sections of a WordPress theme.
0
votes
1answer
44 views
Widget where it can make changes to the container
Is it possible to create a widget where it can make changes to the container?
An example is like this:
<!--- widget-container --->
<div class="wdget">
<div ...
0
votes
0answers
46 views
Widget Display Options
in regards to my previous question. I am playing around with the widgets page and have added a google maps feature to the "Pages Sidebar" Tab.
the google maps feature displays on the contact page, ...
0
votes
2answers
38 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
0answers
98 views
Facebook plugin activated, widget in sidebar yet doesn't show on page - stumped
I have the official Facebook plugin v.1.3 on my website. The plugin is activated, the Facebook Like Box widget can be moved into the sidebar and all options set, yet it doesn't show up in my sidebar. ...
0
votes
1answer
108 views
How to register custom menu widget
I'm trying to register a custom menu widget programmatically with wp_register_sidebar_widget, but it doesn't appear in wordpress. I'm using remote call of that method (xml-rpc). Referring to codex I'm ...
0
votes
2answers
55 views
How to make widget title accept php?
I am trying to make widgets accept php, but without resorting to plugins.
So far I have enabled php for the widget_text but cant make it work for widget_title.
I am using the following code in ...
0
votes
1answer
89 views
Want to add more option in “Sexy Login”
I am using Sexy Login in my new website. Its a beautiful plugins. But i need to add some more options. I want to add more button for both who are logged in & who are not logged in like "Write New ...
0
votes
2answers
81 views
Contact information footer
I am new to Wordpress but forced to create a website as a Wordpress template for my current employee (I am a front end developer, mostly build new systems/apps etc from scratch). Creating the template ...
0
votes
1answer
88 views
How do I exclude portrait pictures from the nextgen gallery sidebar widget?
I have a gallery that contains both landscape and portrait pictures and want the gallery to be displayed in the wordpress sidebar. The problem is that the thumbnails of the portraits are scaled into ...
0
votes
1answer
64 views
Some widgets on Multisite not showing up in template for particular theme
I have a load of custom widgets that all look pretty much the same. I have a multisite blog with 3 blogs. The widgets are configured individually to show up on all 3 blogs with their own settings in ...
0
votes
0answers
127 views
Good examples/resources for using a drop down for filtering jquery isotope? [closed]
I'm working on a plugin that uses jquery isotope and I've also built a widget that will handle the filtering using terms and taxonomies. What I would like is to have a drop down of terms of a taxonomy ...
1
vote
2answers
73 views
How to add custom widget above admin_footer
What I am trying to accomplish is placing custom widget on an admin page (edit.php). I tried using these two functions:
Places custom html right below < body > (above all page content)
...
2
votes
0answers
82 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 ...
0
votes
1answer
92 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 ...
0
votes
2answers
133 views
Hide certain widgets from specific user roles in admin
I'm looking for a way to hide certain widgets from specific user types in the admin, Appearance > Widgets page?
For instance, admins can see all widgets, but authors can only see a select few?
I ...
0
votes
2answers
20 views
How to test if the widgetized area has any widgets?
I making a widgetized footer with three widgetized areas (footer1, footer2, footer3), The problem is that even if there's no widgets assigned to any widgetized footer area, the footer is still there ...
2
votes
1answer
140 views
Adding Widget form fields dynamically
I am trying to add form field to a WordPress widget dynamically. So if the user want to add another date to an event they can click a button to get more fields.
The question is: How do save newly ...
1
vote
1answer
20 views
Print owned created widget
Im trying to print my own created widget with the following function:
the_widget();
The widget is defined with the following values:
$this->WP_Widget('openingHours', 'Opening', $widget_ops, ...
0
votes
2answers
120 views
jQuery UI inside widget on admin page
I have created a widget that has quite a few settings, and so I am trying to create a tabbed menu (using jQuery UI) inside the widget settings of the admin page.
The problem is basically that tabs ...
1
vote
1answer
57 views
How to remove the parentheses from the category widget
In the default category widget, when you check the "show posts count" checkbox, the number of posts appear surrounded by parentheses, how to remove them.
-1
votes
1answer
36 views
jQuery “on” handler does not fire on newly inserted widgets [closed]
I have a jQuery script attached to the widget.php page via an add_action('admin_footer') call.
The jQuery executes fine on widget items that were in place when the page loaded. However, on newly ...
0
votes
1answer
86 views
Putting a wordpress custom post into a widget
I have just recently created a widget in my Wordpress theme that inserts a widget into the sidebar.
Its based upon the text widget. However the html content is hard coded into the widget and it has ...
0
votes
1answer
29 views
New loop vs widget
So, I have a sidebar that I'm going to list all posts in, I could just use a widget.
But is it proper to use a new loop instead of a widget, or preferential?
0
votes
1answer
73 views
Plugin won't activate, fatal error (widget class not found)
I've been putting together a simple WordPress plugin that employs a sidebar widget and shortcode. One user has reported the following error when trying to activate the plugin on their local WP ...
0
votes
1answer
79 views
Saving widget gets an undefined variable
I am developing a widget for cached feeds. The widget itself works exactly as I want but I noticed that if I were to delete the widget and then add a new one (or simply just add a new one) on the ...
1
vote
0answers
25 views
Adding custom menu widget to sidebar programatically [duplicate]
I am trying to add custom menu widget to the sidebar. I am not working on wordpress directly, but I am using an xml-rpc calls to manage worpdress site (it is possible via ...
0
votes
1answer
77 views
WAMP to XAMPP WordPress transfer
I want to switch a WordPress site from a wamp localhost to xampp localhost. Using the Tools > Export, I saved the WordPress content to an XML file. I did not create a similar backup of the MySQL ...
0
votes
1answer
25 views
WordPress function breaks widget's markup?
Here's a standard function creating widget, it displays Widget's title and echoes "test" below it:
function widget( $args, $instance ) {
extract( $args );
$title = ...
0
votes
1answer
109 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 ...
0
votes
1answer
131 views
how to implement a language switcher widget / plugin for users
I'm needing to create an option for the users to change the language of the site. So, for example there would be a dropdown with languages that the user can choose from and this would change the ...
0
votes
1answer
44 views
Problem with single posts not showing correct category sidebar
I'm looking for something very specific: I'm using a plugin called "Category and Tag Specific Widgets" to create category-specific html in the sidebar of each category. This only works if I click on ...
0
votes
1answer
24 views
prevent custom widget file names from showing in Appearance > Editor
I've setup a few custom widgets for my theme, and when I go into Appearance > Editor, the widget file names are showing up in the list of files that can be edited.
How can I prevent these widget file ...
0
votes
1answer
63 views
wordpress widgets screen disappeared
Im having a weird problem. The screen where you manage widgets (drag and drop them from left to right) suddenly disappeared.
How can I access it?
It should be accessible via admin>themes>widgets but ...
0
votes
2answers
72 views
Add html after the first widget in a sidebar
Just wondering is it possible to add HTML code after the fisrt widget in a sidebar so that it would only show once and not repeat after a second or third widget is added?
This is what I have so far: ...
-1
votes
1answer
49 views
Widget logic not working
I am using the Widget Logic plugin to display a widget only on certain pages.
I use the condition
is_page(10,16,19)
to specify the pages I want the widget to display on.
However, the widget does ...
2
votes
1answer
35 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
1answer
37 views
Accessing widget information
I'm trying to access widget information saved in the wp_options table.
I printed it out:
add_filter('the_content', function(){
$res = get_option('widget_my_widget');
print_r($res);
});
And ...
0
votes
1answer
160 views
twenty twelve theme widgets not working
For both Twenty Twelve 1.1 and a child theme based on Twenty Twelve, widgets cannot be added.
If I go to appearance > widgets, there is no widget area to drag widgets into.
I have reinstalled the ...
1
vote
2answers
75 views
Displaying a widget in sidebar only when no other widgets rendered?
I am working on a custom theme, basically migrating a current sites look and feel into WordPress. Most of everything is based on Pages, and all of these pages should have a left sidebar. Of those ...
0
votes
1answer
76 views
Wordpress plugin not eching popular posts
I created a plugin in wordpress to show popular posts, but this is not returning the post and number of comments properly.
Even I have comments in my post(approved as well, so this is not the case) ...
1
vote
0answers
322 views
How to create a 'single' category widget for woocommerce plugin
Woocommerce out of the box provides many widgets, however the category widget for providing a product search, groups ALL the categories into one widget.
I want a widget for one category, i.e. 'shop ...
0
votes
1answer
109 views
Custom tabs widget don't work in google chrome, is blocked, do not change the tabs. Why?
Code is the problem or is a Google Chrome issue?
Here is the code:
/*-----------------------------------------------------------------------------------*/
/* Create the widget
...
0
votes
3answers
172 views
Why Can't wp_editor Be Used in a Custom Widget?
I've been working on developing a plugin that adds a widget that allows you to edit the content with a wysiwyg editor. I want to use the default wordpress editor by calling wp_editor(). I've seen ...
2
votes
2answers
131 views
Reorder dashboard widgets
I recently tried to reorder the dashboard widgets by writing a plugin. I accomplished this:
with the following code:
<?php
/*
* Plugin Name: Custom Dashboard
* Description: Custom dashboard ...
0
votes
2answers
309 views
Insert a span inside widget title to give a different color to the second word
I'm trying to make my widget titles two-colored; the first word white and the second one yellow. I have no idea how I can insert a span before the second word of every widget title so that I can put a ...
-1
votes
1answer
96 views
Create a simple widget
I wanna create a simple widget that show an image and text with a link.
Something like this:
http://jsfiddle.net/aF4UR/
But I want to include this as a widget with fields.
For example in the back ...
1
vote
1answer
167 views
remove post and categories/tags count from right now dashboard widget
I know it is easily possible to add a post-type count for a custom post type to the right now dashboard widget.
However I wonder if it is also possible to remove stuff from this widget.
E.g. I ...
0
votes
2answers
73 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 ...
1
vote
2answers
172 views
Sidebar widget to show popular post not working?
This is the code to display popular post on front end, however the problem is the data is not saving from the back end. Like i want to show only 3 popular posts on front-end so i select the option 3 ...
0
votes
1answer
38 views
Trouble accessing a multidimensional array to add classes to default WordPress widgets
I've been writing up a function to assign classes to default WordPress widgets that I choose. After a bunch of research and modifications, I came up with the function below.
A quick explanation of ...


