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

learn more… | top users | synonyms (2)

0
votes
0answers
5 views

How to prevent script from updating each image in Custom Image Widget

I found this create question here where you can create a custom image upload widget. Everything works great except as the disclaimer in the answer mentions every time an image is updated (if multiple ...
-2
votes
0answers
9 views

Showing descriptions in Woocommerce category widget

I'd love to display category descriptions under each category in the product-category widget that comes with Woocommerce. How exactly would I go about doing so? Cheers!
0
votes
1answer
18 views

add_action not working within widget() of WP_Wdiget

I have a function in functions.php function test(){ do_action('before_test_action'); echo 'in test'; } Then within my Widget, in the widget( $args, $instance ) function i use: $boolean = (...
-2
votes
0answers
18 views

A/B testing ads in a sidebar

I am new to WordPress. Could someone tell me how I can a/b test ads on blog posts on my personal blog site? Basically I have 1 ad space on the sidebar of my blog. I want to run Google ads and also ...
0
votes
0answers
11 views

Adding images in widget based on post name!

I have a wordpress blog for products, each product has a unique ID and should have a photo demonstration! I have installed the blog added the products as posts! Now I would like to add a bulk of ...
-3
votes
0answers
21 views

Customize Woocommerce Product Widget to show only free products

What I want to do is to show only products which _sale_price is equal to zero. I have a created a new 'case' in WC file responsible for class-wc-widget-products.php like that: case 'free' : ...
0
votes
1answer
37 views

My plugin works in home page, but doesn't work in post page

I am developing a plugin that fetches data by ajax and shows data into a table. This is my plugin code: <?php /* Plugin Name: Issue Shower Version: 1.0 */ add_action('widgets_init', '...
0
votes
1answer
14 views

Ampersand breaking Widget title

When adding an ampersand (&) to the Text Widget title, the title breaks at the ampersand position (frontend). So: 'me, myself & I' becomes: 'me, myself ' The ampersand is being stored (...
0
votes
0answers
11 views

Widget disappear from the right rail

I recently tagged a new version of my plugin(widget) and released it. This is a widget on the right rail, then I choose to update the plugin(widget) to the current version I released from an old ...
0
votes
0answers
6 views

How to bring widget from above menu to below menu [closed]

I am new to this forum group and i could not attach more than 2 links in this post. So kindly refer the bold wording as my links. My website is "www.aseancrew.varma.com.my" I have used the exact ...
1
vote
2answers
43 views

List authors with posts in a category

I'm trying to create a custom widget to display contributing authors for the current category being viewed on a WordPress site. I have the following PHP code: <?php if (is_category()) { ?> // ...
0
votes
1answer
10 views

Custom Widget not Available after Plugin Installation

I have created the following plugin which is intended to serve as a custom registration widget. class qfpregister extends WP_Widget { static private $login_registration_status; static function ...
-3
votes
1answer
38 views

Show a specific block from PHP website as widget in Wordpress site

I am having a blog timesnews.co.uk and a phone specs site: timesnews.co.uk/phone/ Now i want to show the latest phones block from the phone specs site (located at "/phone/") as a widget on the main ...
0
votes
1answer
33 views

How to save additional user data as part of the registration process?

I've created a multi-part tabbed registration form that includes about 40-45 custom fields aside from user name, password and email. The goal is to create a new user registration and store the ...
1
vote
1answer
32 views

How to create Blog Post Specific Widget

I want to create widgets which will display based on post. I have considered the option of creating a widget post type using Advanced custom post type plugin and populate this widget while writing ...
0
votes
0answers
14 views

Hide pages + widget edit

I have 2 questions on this site i have this item i was wondering how can I make this item not show in the widget area or any other part of the site but still be accessible if some1 has the link to it ...
-3
votes
1answer
18 views

How to create a custom widget in dashboard that shows stats for custom post type

I have a custom post type called Locations. I want to create a widget in the dashboard that shows number of posts in that post type, post taxonomy and number of item in each taxonomy. Any ideas?
0
votes
0answers
16 views

Ajax interfering with widget back end Javascript

I have a plugin that creates a widget that allows users to click a button and select an image. I have noticed that immediately after the widget is dragged and placed into a widget area, two Ajax ...
0
votes
1answer
22 views

Output dynamic_sidebar_params in wp_head

I have created a custom widget with a color picker field. Currently there are two ways to output the color picker value for this widget: Inline style. Using the dynamic_sidebar_params filter. With ...
0
votes
0answers
22 views

Moving widgets panel in Customizer one level up

When adding widgets into the sidebars using the Customizer, there is one unnecessary step till you get to panel with the "Add a Widget" button. Three steps: Widgets → Sidebar → panel with ...
1
vote
0answers
45 views

Modify 'Sizes' Attribute for Images with Specific Class

I'm ultimately trying to add useful responsive image srcset & sizes attributes to images added in a standard Text Widget. I've found this filter which does allow images to get the default WP ...
0
votes
1answer
22 views

Wordpress custom widget undefined variable notice

I am developing a theme and I have created a custom widget for it. When I turn on debug mode I get the following notices, NOTICE: wp-content/themes/integral/inc/widgets/feature_widget.php:92 - ...
7
votes
3answers
353 views

How can I modify the WordPress default widget output?

I don't want to style the default widget with only CSS. I want to display the default 'Categories' widget content with my own HTML structure. Is there available any filter or hook to do that?
1
vote
1answer
38 views

How to output widget

I have the following code to display widgets in the customizer. function arphabet_widgets_init() { register_sidebar( array( 'name' => 'Social Media button', 'id' => ...
0
votes
0answers
31 views

How to add an “All” category to the tag cloud?

I'm using the tag cloud widget in my sidebar that displays my categories and would like to include an "All" link at the top. Any ideas how to accomplish this? Note, I would like to keep using the tag ...
0
votes
1answer
17 views

I want to link an author to everything from any post type that they publish on the website

I'm trying to create/add a widget to a client's website that lists all non-admin authors and links to their posts. I've been able to do that but one of the authors posts, almost exclusively, using a ...
1
vote
2answers
31 views

remove the wrapping of text widget or <div class=“textwidget”></div>

When I write a quote in the text widget and displayed the text is wrapped as "My text...". I would like to remove the div and put simply "My text...". without using jquery. For Example: Current ...
0
votes
0answers
21 views

Creating a custom sidebar section - adding widgets causes “Errors”

http://www.new.techmoney360.com/keek-provides-updates-on-peeks-product-launch/ - is an example of the work I'm doing right now. An example of a sidebar area I'm tying to achieve http://www.vice.com/...
0
votes
1answer
38 views

Add Social Media icon widget to customizer

How can I add a Customizer widget to add social media icons with links to their social media profiles? To clear it up, I have created a few images with the inspect element. I want to have a section ...
0
votes
0answers
16 views

Link in widget title [duplicate]

how can I add a link in the widget title? HTML is not permitted, and until now I've used the Widget title links plugin, but with the latest version of Wordpress, it doesn't work anymore. I've tried so ...
0
votes
1answer
55 views

How to not display subcategories in Recent Posts widget area?

I'm relatively new to Wordpress, and coding in general. I am trying to edit theme-specific recent posts widget to display only posts within a certain category. Currently, the theme will display recent ...
0
votes
0answers
36 views

widget_sidebar not working

I'm trying to add a widget to my customizer. But it is not being added, it doesn't matter which code I try to add from the WP examples but they're all not showing up. add_action( 'widgets_init', '...
1
vote
1answer
19 views

Create widget in dashboard displaying a custom user field?

I'm trying to follow this tutorial but I can't get it to work. My best hypothesis is that because the code is 4 years old, some function in it might have been deprecated... And the code provided there ...
1
vote
1answer
28 views

How can i use the same template file with a widget and category loop?

i wrote a widget and i want to use category template which is located in "themename"/template-parts/content.php". <?php // Category.php while ( have_posts() ) : the_post(); get_template_part( '...
0
votes
1answer
13 views

How do I create a 'selection' criteria list' that will then dictate which posts are generated when the user presses search?

I'm very new to WordPress so please bear with me! I'm currently in the process of building a site for work. Our 'vision' is that we have three lists of options. People would select one option from ...
-1
votes
1answer
26 views

How do you submit a widget for the wordpress directory?

Looking for this process but for Wordpress: https://developers.google.com/blogger/docs/gadgets/gadgets_for_blogger#testing-style-fonts-and-colors Thanks.
1
vote
2answers
48 views

wp_editor in widget breaks after save (no buttons and visual tab broken)

My goal is to get wp_editor working in a simple widget which the admin can use to add text content on an admin options page. Here we go in wp-admin/widgets.php everything looks sooo good right. ...
0
votes
1answer
33 views

How to append custom text to the output of 'categories widget'?

How do I customize the "categories widget" to append additional text on the sidebar display? from category 1 category 2 category 3 category 4 to category 1 folder category 2 folder category 3 ...
2
votes
1answer
28 views

How to exclude certain widget from showing up on home/front page? [duplicate]

Without using a plugin, how do I prevent/exclude the sidebar widget "recent posts" from showing up on the home/front page? I do want it to show on the sidebar of rest of other archive/post pages.
0
votes
1answer
30 views

Widget text color change

hello i have this site and in the footer section there is the recent posts widget with the grey colored text. I wish to change it to white, i tried adding some custom css code in the theme child with ...
0
votes
1answer
20 views

wrapper div for widgets not showing with all widgets

I have registered a Widget area with the following code: // Register Sidebars function custom_sidebars() { $args = array( 'id' => 'footer_sidebar', 'class' =...
0
votes
0answers
37 views

How to include JavaScript script only on specific page [duplicate]

I am creating my own widget. I need to use custom css and js files. I have used wp_register_style`wp_enqueue_styleandwp_register_script\wp_enqueue_script` functions in order to register custom styles ...
0
votes
0answers
57 views

WP 4.4+ Responsive Image Markup in Text Widget?

I'm slowly wrapping my head around the new responsive images features in WP 4.4. I've got it fairly well figured out now for our CPTs & default page/post content images. But is there a way to ...
0
votes
1answer
38 views

Adding classes to dynamic sidebar

Hey so I am trying to create this conditional that auto creates a grid layout when widgets/sidebars are added and removed. The goal is let the user put in as many widgets as possible without worrying ...
0
votes
0answers
17 views

Widget save brake jQuery [duplicate]

I have created a plugin that creates a widget. On the widget form i am using jquery functions that i load using wp_enqueue_script. When adding the widget on a sidebar, everything works. Then when i ...
0
votes
1answer
22 views

Wordpress add css class to cloud tag anchor tag

How to add CSS Class to ul and anchor element of Tag Cloud generated through wp_tag_cloud function. I want wordpress default class for ul 'wp-tag-cloud' to be 'tag-cloud' and anchor tag would have '' ...
0
votes
0answers
18 views

How to remove extra space from li of wordpress widget?

I am building a some WordPress widgets. During this I am facing some problems. When I am using <ul> <li> then my layout taking some margin or padding, but when I am using <td> or <...
1
vote
1answer
32 views

How can I apply css styling to the current day in the calendar widget

How can I apply css styling to the current day in the calendar widget? It seems there is no css class for the current day.
-4
votes
1answer
52 views

Widget won't work due to old JavaScript? Any ideas how to make it work? [closed]

I was trying to add this widget to my blog <!--BEGIN PROFILE WIDGET--> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript">&...
0
votes
2answers
45 views

display widget checkbox selection on frontend

I create a widget for a custom post type that will display a list of post in the widget area. it works fine, i can select multiple posts and save the widget but i can not get it to display on the ...