Widgets are configurable elements used to dynamically build sections of a WordPress theme.
0
votes
1answer
21 views
How to change widget's form color in admin?
I have a simple question. How to change widget's form color in admin panel of wordpress (on widgets page) to make them more unique?
Here is a simple example:
0
votes
1answer
13 views
how to extend a WP_widget twice
Has someone ever tried to extend calss WP_Widget, then extend it again ?
Having to related widgets, I tried to create the first extending WP_Widget, :
class FirstWidget extends WP_Widget {
public ...
0
votes
2answers
45 views
register child class in another plugin
I think this should be relatively easy, but somehow I cannot figure out how to do this.
essentially there's a preexisting plugin that does this:
add_action('widgets_init', create_function('', ...
0
votes
1answer
26 views
Creating a dynamic class name in my custom widget
I have been currently building a custom widget in WordPress based on the text widget as a starting point. It seems that within the function __construct part of the widget, the class name is a hard ...
0
votes
2answers
26 views
including image assets in widget
I've written my first simple WP widget-- it all works fine, but I'd like to dress it up a bit, and add an image / logo in the widget display code.
How do I package the widget (which is just a single ...
0
votes
1answer
31 views
Add a select-option to the default widgets
I would like to add an extra feature to one of the default widgets so that the user can choose from the select-field to either align the widget to the left, center or to the right.
How would I be ...
0
votes
2answers
62 views
making footer widgets responsive
i have 4 footer widgets in the theme i'm working on. it works great. the only thing that i cant get to work is the responsiveness of the widgets. The 4 footer widgets keep on showing up next to each ...
0
votes
1answer
39 views
How to Get Admin Settings for a widget when using the_widget() with custom widget
I have searched around for an answer to this question and I found this: Manual display of widget which gave me a solution of:
if(function_exists('the_widget')) {
$instance = get_option( ...
0
votes
1answer
28 views
call sidebar from file
i need to call a sidebar into my header. i switched to the new twenty twelve theme and created my own child theme. With this new theme i decided to keep things organised and together, so i put my ...
0
votes
1answer
54 views
accessing wordpress serialized data outside wp
I've never worked with serialized data... I need a little help with how to load "text" widgets title and content in php script outside wordpress...
my script just connects to database (including ...
0
votes
1answer
161 views
How to add Ajax to the default widget calendar to support next/previous months loading?
I want to customize or replace the default calendar, similar to the default widget, but with Ajax next and previous months loading.
Ideally I would like to be able to do that (red dots are dates ...
0
votes
1answer
96 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
1answer
97 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
2answers
21 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 ...
0
votes
2answers
127 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 ...
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
2answers
81 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: ...
0
votes
1answer
38 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
41 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 ...
0
votes
1answer
28 views
Stuck with sidebar registering
I tried to add a custom page to my Wordpress template. That part is good. What I´m stuck with is a common sidebar that appears although I registered a custom sidebar for it.
I am calling the ...
0
votes
1answer
62 views
Can / should a widget plugin define its own Widget Area?
Should a plugin be able to add a widget area above the_content? (Without requiring template/theme changes.)
What would be the best way to do this?
Doubts: widgets typically echo output to the screen; ...
0
votes
1answer
126 views
How to add a recent post function to a text widget I created for practice?
I am currently being trained to create widgets and my mentor has asked me to create a text widget then add the ability to display the 5 most recent posts (all categories) on it. I am a little stumped ...
0
votes
1answer
326 views
disable default widgets in Responsive theme
Theme: Resposive
I have added "Widget Context" and has set it to show a widget only on the start side. This works perfectly BUT on all other sides there shows a default widget "Home Widget 1" with a ...
0
votes
1answer
879 views
How to add social buttons like facebook and twitter in the footer of a theme?
Hi I own the blog camilamfotografia.com.br
and I'd like to add social buttons in the footer or in the navigation menu to link my site to facebook twitter flickr pinterest etc...
I have tried without ...
0
votes
1answer
305 views
How to Remove ALL Widgets from Dashboard?
I'm looking for a complete blank Dashboard. No widgets at all and preferably one column.
There are snippets to remove the default WordPress widgets, but haven't found nothing about the ones added ...
0
votes
2answers
42 views
How can I re-register my blogs widgets?
I deleted my wp_options database file in error. I replaced it with a clean install file.
Now my widgets are still present in my widgets area but none are recognized by wp.
Am I right in thinking ...
0
votes
1answer
80 views
event organiser not loading in main content area
there is possibly a very simple answer for this, but im afraid im a novice at this stuff :(
on my wordpress site Im using the event list shortcode in the main content area and the calendar in the ...
0
votes
2answers
106 views
Widget queries even when there are no sidebars?
I'm trying to reduce my database queries. I don't have any sidebars or widgets set but I noticed the following query
SELECT option_value FROM wp_options WHERE option_name = 'widget_pages' LIMIT 1
...
0
votes
1answer
60 views
Replace the “widgets” label in the backend
Is it possible to replace/modify the "Widgets" label in the backend by an other label ? ... and do the same thing for the "Widgets" title in the widget page.
Is there a filter or another solution ?
0
votes
1answer
51 views
Issue with checked() echoing on to page
This is kind of a weird one. I'm in the process of building a widget that goes through posts of type product and displays a list of checkboxes in the admin panel to display/show the products in the ...
0
votes
2answers
197 views
In widget, the value of select field doesn't get updated, changes after saving
I'm building a simple widget which will allow the user to select a post among a list of posts.
For some reason, when I select an option, I believe it actually gets selected but the option doesn't ...
0
votes
1answer
278 views
Hide widget if user is logged in without plugin
I would like to be able to hide a widget in the front-end if the user is logged in and only display the widget when the user is not logged in.
I have found a plugin that does this called Widget Logic ...
0
votes
1answer
59 views
Extend a plugin to include a widget option
I currently have a plugin (not a widget) that allows people to use shortcode to put the results on their web pages and posts. Some people have asked for a widget option, so the output can go in the ...
0
votes
1answer
195 views
Add a specific css to a widget
I have a theme with a sidebar and 3 widgets. I want to change the color of one of those widgets. The problem is that all the widgets have the same code:
<div class="box_outer">
<div ...
0
votes
1answer
52 views
Any advice on customising this twitter feed?
I'm really having trouble locating the documentation for the Recent Tweets widget anywhere. It's not a plugin and appears to be native. All I want to do is to be able to move the tweet_time underneath ...
0
votes
2answers
1k views
WP_enqueue_script() loads them always in wp_footer()?
This is my example code placed in functions.php:
function my_init_method() {
wp_enqueue_script('jquery');
wp_enqueue_script('jquery-ui-core', false, array('jquery'), false, false);
...
0
votes
1answer
350 views
Custom dashboard widget search box
I'd like to create a custom dashboard widget that contains the search box from the posts edit screen.
I know how to create the dashboard widget and how to display it, but I don't know how can I place ...
0
votes
1answer
114 views
Is there a Image Gallery which will load all my posted Images like twitter's image grid?
Many of my wordpress posts have images in them for my personal blog. I have been searching for a good way to display all of the images from all of the posts in a grid layout on a page. Similar to the ...
0
votes
3answers
385 views
Any available action to add content before and after sidebar ?
Hiz
As the title says, i am looking for inserting a function's output before sidebar's first widget, and one in the end after teh last widget, is it possible?
thanks in advance.
0
votes
2answers
74 views
Creating a widget that displays the content of a page
I have a page that displays information from a query (I placed the output of the query in a custom page template and have the information display that way). How can I put this information into a ...
0
votes
1answer
283 views
How to automate setup of theme, pages, widgets, etc for a new site in multi-site?
I have a large MultiSite network, and each page is designed a bit differently. I'm looking to write some custom code to automate the setup of a new blog as much as I can.
Things I'm looking to do ...
0
votes
1answer
140 views
Removing widget without using unregister_widget
I want to remove some plugin widget showing from wp-admin/widgets.php but i dont want to use unregister_widget because i am using this widget automatically from php files..
Basically i dont want ...
0
votes
1answer
137 views
Recent Posts widget missing current_menu_item class
Unlike the (WP standard) Custom Menu widget, the Recent Posts widget does not add the current_menu_item class when a post is selected (being displayed).
This seems like a major oversight, am I ...
0
votes
1answer
43 views
How to place my g+ or fb plugin at the bottom of post or page?
I recently installed the google+ and facebook widget plugins to my pages and I do not like it's current position. I'm not sure where to begin looking..
Thanks.
0
votes
2answers
100 views
How to use variables from widgets in other pages?
I have a widget where I set some custom url's like register or login. I want to use those variables declared in a widget outside of the widget, in other pages (page templates). How can I save or use, ...
0
votes
1answer
90 views
Remove Widgets in Dashboard
Another noob question...when authors log on and access their Dashboard, they see all sorts of widgets such as an Internet Explorer warning, news on what's going on with WordPress.
Is there anyway to ...
0
votes
2answers
484 views
Wordpress multiple widget in single plugin
In my plugin in need to create two widget.
One is :social rank" another is "Profile Rank".
This is the code which i am using here.
<?php
add_action( 'widgets_init', 'src_load_widgets' );
...
0
votes
1answer
119 views
Text Widget to Show database fields based on post
I am wondering whether this is possible:
I would like a widget which displays fields taken from a database table I have created.
Table contains information about the location of the post.
...
0
votes
1answer
83 views
Catagorized hierarchy menu for PAGES!
Yes, I am a noob at all this so please excuse my ignorance! So, for the past couple of days, I've been searching for a drop down page menu widget, but I would like to have the pages separated into ...
0
votes
1answer
366 views
Add a widget to a static front page
I'm using a premium theme, which I purchased and would like to add a social widget to the static front page. I've made a static page with a image slider my home page.
An example of the page can be ...
