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

learn more… | top users | synonyms (2)

0
votes
0answers
6 views

Embed google alerts rss feed into WordPress site

adjustment on my origonal question. How would I go about adding a new widget area to my current template so I can embed a google alerts rss feed? Cheers for any suggestions / solutions
0
votes
1answer
19 views

Change Widget that display posts from categories to tags

I have a theme with a widget that display posts from category and I wanna change it to posts from tags if it s possible. Here is the code : // NewsInPictures Widget class NewsInPictures extends ...
-1
votes
1answer
9 views

How to hide sidebar widgets in all pages except Hompage?

im using a sidebar widget in homepage for an extra gallery. sadly it appears in every pages ._. thanks in advance
0
votes
0answers
7 views

Add text editor to custom widget

I am aware of a few plugins that simply add a rich text widget, but I want to make a widget that will wrap the whole input in a class to be used in the page editor plugin. I just want to add a ...
-3
votes
1answer
31 views

Which widget/plugin do I need for this? [on hold]

http://template-demo.org/woo/WCM01/WCM010013/WP1/ I am trying to copy this template. Just underneath the main banner, "Upto 5% Reward on you shipping" "Easy Extended returned" ...etc I like those ...
0
votes
1answer
11 views

Widgets Section not displaying in theme customizer

When in the WP Theme Customizer, my widget management section isn't displaying (i.e. I can't add/change/remove widgets). I CAN, however, add widgets from the Appearance -> Widgets section, just not in ...
0
votes
2answers
28 views

How to create another widgets.php page

Is it possible to create another widgets.php page? say widgets-ads.php? I want to make it for displaying ads in my website by drag and drop of widgets in a predefined sidebars.
0
votes
0answers
7 views

Why don't my dropdown menues in the widget look the same? [on hold]

I am trying in vain to format my widget so that the dropdown menues look the same. Both of them should be 100% width. What in the world is the reason that they don't do it? I want "select country" to ...
0
votes
0answers
8 views

Widget code for showing Opening hours without using plug-in [on hold]

I'm learning develope wordpress theme and I want to create my own widget to show opening hours for my template as image below. Can you advice for my issue? Thank everyone.
0
votes
0answers
18 views

Image and text widget for Wordpress 4.1 [on hold]

I'm looking for a widget that allows you to add a title, a link and an image. Simple as that, but can't find it anywhere. I'm happy to make my own, but don't want to if there's already something ...
0
votes
0answers
10 views

wp_query in form method of widget breaks customizer

In the "form" method of one of my widgets I make a query to offer the user some posts to choose from, like this: <?php $products = new WP_Query( array( 'post_type' => ...
0
votes
0answers
13 views

My widget it showing up only its title, not content after adding the widget without saving

I made a simple Recent Posts widget that not showing up its content if I don't click the save changes after adding the widget. I notice this similar issue on some WordPress core widgets too. What can ...
0
votes
0answers
17 views

How To Make Wp Dynamic Sidebar Like twentytwelve Theme

im new in wordpress and trying to create wordpess theme which can be used in any wordpress blog ,im following twentytwelve Theme as my theme example but when i try to create sidebar it does not work ...
2
votes
1answer
27 views

how can i limit the number of instances for my widget

I am developing a generic widget that randomly selects an image to be displayed. I only have 5 images to choose from. Is there any way to limit the number of widgets to 5, so that there are no repeat ...
0
votes
1answer
10 views

Expanding a function to call a plugin or show a link

I have added the following code to my functions.php to validate if a user is logged in before allowing them to fill out a form: function my_members_only_shortcode($atts, $content = null) { if ...
0
votes
1answer
29 views

How to programmatically GET (to know) which Sidebar (or) which Menu is being used on Different Pages?

Lets say i want to detect such thing from the "functions.php" .. to know which Sidebar (or) which Menu is being loaded on current (whatever landed) page, how can i know? Lets say i have a few pages, ...
0
votes
1answer
29 views

Why isn't this widget displaying one of the icons?

I have coded a widget. In the admin area the user can enter the url for their youtube, facebook, twitter and google+. On the front end of the site in the browser, they can click on a logo for either ...
0
votes
1answer
29 views

How to detect if query is runned from widget?

I want to know if exists function that detect if some database query run from widget, for example from recent_posts widget or search_widget.
0
votes
0answers
32 views

Creating custom search results widget

I am new to wordpress and trying to accomplish the following: I want to create a wordpress widget with the following functionality. Please advice how it can be accomplished: Widget should accept ...
0
votes
0answers
8 views

Converting hashtags into search friendly term (%23) in a widget

The plugin Hashtag can achieve this within a posts text, so surely its possible on a widget? I have no idea what I'm doing here, specifically its the widget 'Popular searches tag cloud' I am trying ...
0
votes
0answers
9 views

Enhance built-in calendar widget to dynamically browse through months

I am using the built-in calendar widget to show posts, the plugin "Future" helps me to show future posts too and so far everything works fine. But when you click on the arrows for the previous or ...
0
votes
1answer
29 views

Extending the WP_Widget_Text class

I am trying to alter the output of the default WordPress text widget. Since the widget is written in OOP I hoped it could be a simple deal of extending the class and overwriting one method – but it ...
-1
votes
0answers
20 views

Auto generate text field in wordpress widgets after clicking add button?

How to auto generate the text field in widget area of wordpress after clicking the 'ADD' button and also remove that after clicking 'REMOVE' button?
1
vote
0answers
65 views

How to create pagination for homepage with widgetized area?

I have created homepage with sidebar area filled with different widgets. Each widget fetch and display posts from different categories. Now I need to create a numbered pagination in homepage which ...
0
votes
2answers
36 views

Widgets won't save

I have almost no experience in creating widget area's and I am stuck at saving the widgets in the widget area 'red menu'. I have searched a dozen posts but I can't seem to get it working. I am ...
0
votes
0answers
15 views

Wordpress Custom Widget Strange Behaviour

I have developed a Custom widget plugin with a dozen of input fields. Some of those input fields load Fabtastic Color Picker. When I add the widget in any widget area, the color picker loads very ...
0
votes
1answer
34 views

Custom widget doesn't save values from dropdown box

I am trying to save the value from a dropdown box on a custom widget created by me. the title from the same widget is getting saved, but not the values from drop down box. Can someone please help me? ...
0
votes
0answers
8 views

Sidebar Categories Questio

I added five categories through widgets on my primary sidebar. Under each of them, all of my main categories that have posts in them are coming up. However, I only want certain categories to come up ...
0
votes
0answers
8 views

Widget is breaking on filter function

I have created a widget which displays posts based on Display Posts shortcode. All works fine till I have added filter to public function widget() to output titles only (and need to be executed only ...
1
vote
1answer
55 views

instance is empty in function widget()

I am working on a widget for my theme. If I do a print_r($insance) in the form function, the instance array is populated with the correct data. I have checked the database and the correct ...
0
votes
2answers
46 views

Show different website layout if no sidebar added

I have a question about website layout with and without wp widges in sidebar. Here is the code i have for my registered sidebar. <?php if ( !function_exists('dynamic_sidebar') || ...
0
votes
1answer
36 views

How to Sync Menu, Widgets and other masters from Main Website to its Sub Site

I am using Wordpress Multisite Network and i am having problems regarding masters to its subsite. I am not able to see the widgets or Menus which were created on Main website to its Sub-site. When i ...
0
votes
0answers
67 views

Embedded Videos (PB) - Not Available

I am using this link to create a wordpress website VIDEO At minute 53 the guy is using "Embedded Videos (PB)" widget in order to embedd a youtube video. (By the way he is using Page Builder). Problem ...
0
votes
1answer
14 views

Target logic based on Widget / Sidebar Name

I have a theme that uses registers a sidebar called 'homepage-middle-widget' and it's child widgets are pulling images in undesired sizes. Is it possible to target a widget and / or it's parent in ...
0
votes
1answer
32 views

Hide first blog post in content and output it in widget

I am working on a theme and want to hide the first blog post and instead output it at a custom widget position. For that I created a variable in the functions.php called $postCounter. I accessed ...
0
votes
3answers
44 views

How to add css classes to widgets?

I need to add a class to the WordPress search widget. How would I go about doing so? I'm calling it from the admin side, as in dragging and dropping it into the sidebar at the widgets page of the ...
0
votes
2answers
35 views

Dynamically add content to an existing widget area

I have an existing widget area / sidebar. Rather than adding content to it via Appearance ? Widgets in the Dashboard, I want to inject content into the widget area from functions.php. Is there hook ...
0
votes
0answers
21 views

“widget” on edit.php which loads/saves data

i am trying to add a "widget" to the edit.php post-filter-table as seen in this plugin: https://wordpress.org/plugins/advanced-post-manager/screenshots/ i would love to do this with piklist or ...
0
votes
1answer
17 views

modifying title (in dashboard) for different widget instances

When I insert multiple instances of widget in a particular sidebar, they all appear by default collapsed and with the same title. E.g.: In this case, the user can upload a different pic to each ...
0
votes
0answers
16 views

Any reason why widgets/menus get emptied when I updated custom theme code?

Deployed my site over git last nite, and client came back saying some menus in the the footer widgets had disappeared. I looked in the admin, and the widgets were still available but all the items ...
0
votes
2answers
37 views

Can't Write Custom Widget Code In One ECHO

I am creating a WordPress custom widget and I created the below one that is working fine when I add it in function.php. <?php /* ...
0
votes
0answers
15 views

how to convert Html block to dynamic widget?

<div class="widget-wrapper"> <div class="widget-icon"> <i class="fa fa-facebook"></i> </div> <div class="widget-title"> </div> ...
0
votes
0answers
20 views

Widget Popular Posts

I want add "code 1" inside "code 2", but I don't know how I can do this. CODE 1 (found here): <ul class="popular_posts"> <?php $pc = new ...
0
votes
2answers
19 views

How to retrive widget title/data

I'm using this code to display widgets of certain sidebar: $sidebar_id = 'sidebar1'; $sidebars_widgets = wp_get_sidebars_widgets(); $widget_ids = $sidebars_widgets[$sidebar_id]; foreach( ...
0
votes
0answers
9 views

Widget Logic code for different PMP membership levels

I'm using both Paid Memberships Pro and Widget Logic plugins. In PMP, I set up 2 membership levels - one free ( id# = 3) , one paid (id# = 1) With Widget Logic, I'd like to have the custom sidebar ...
0
votes
0answers
13 views

Run function after theme is installed for the first time

I want to run a function to add default widgets for my theme when it's installed for the first time. I tried add_action( 'after_switch_theme', 'add_theme_widgets' ); but it resets the widgets back to ...
0
votes
0answers
33 views

php- What can be the best alternative to eval()?

I am using WordPress and for some reasons I need to execute php in my WordPress text widgets. I googled and found this code to add in functions.php file: add_filter('widget_text', 'php_text', 99); ...
1
vote
0answers
21 views

Widget area inside a widget

I tried putting dynamic_sidebar('widget-id') inside a custom widget I created and it worked. The only thing I can't figure out is how I can do this through a loop. Is there a way that when the widget ...
0
votes
1answer
25 views

How do I make the title of the following widget editable?

I have the following widget which displays basic info for a game: class Game_Info_Widget extends WP_Widget { /** * Register widget with WordPress. */ public function __construct() ...
0
votes
2answers
24 views

Register Script in Plugin Widget

I need to load a separate js file into a widget and just can't get it to work. So far I have if ( is_active_widget( false, false, $this->id_base, true ) ) { function tab_widget_scripts() { ...