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

learn more… | top users | synonyms (2)

1
vote
0answers
32 views

Get draggable widgets on Edit Post page

Is it possible to get the widgets with settings (just as widgets.php page) on the Edit post (like attached image) ? There i can define a custom sidebar in post meta. However how to get the list of ...
1
vote
0answers
179 views

How to refresh Theme Customizer after change color inside wpColorPicker?

I develop my custom widget with setting where I can set up custom color for the widget. I use this code to initialize wpColorPicker instead of default text input in form() method of Widget class: ...
2
votes
1answer
22 views

Moving comments section to left of content (Twenty Thirteen)

So I want to move my comments section to the left of my content in my Twentythirteen child theme. I've located where it's pulled from in the content.php file: <?php if ( comments_open() ...
2
votes
1answer
28 views

How can I add a specific, custom widget to my theme's header.php?

I've created a custom widget that I've named openingTimesWidget which extends the WP_Widgets class and follows the guidelines for creating widgets... What I'd now like to do is not only add this to a ...
3
votes
0answers
119 views

Removing custom widget area WordPress 4.4

I know it is a very simple thing but I just cannot figure it out. I always used to define widget areas and sidebar in source code, however this time I have used the UI option from Appearance > ...
0
votes
1answer
46 views

Simple php in wordpress widget [closed]

I am trying to calculate with simple maths but I cant get the following form make the calculations and output the results. Unfortunately I am a newbie. What's wrong? <?php add_action( ...
1
vote
0answers
30 views

How to show all post related taxonomies

I created several custom taxonomies for default WP post type. Does anyone knows any widget solution or have any idea for this: How to show (in sidebar) all post related taxonomies? Example: If we go ...
1
vote
0answers
25 views

Rewrite woocommerce categories widget urls

I am attempting to rewrite the list of categories url in woocommerce categories widget printed to the page. Not sure if I am adding this to the correct hook, or where I went wrong. function ...
0
votes
2answers
26 views

Address automatically generated ids in css [closed]

I am trying to change the background for a the 'recent posts' widget in my Wordpress theme. My problem is that Wordpress generates ids like recent-posts-2 and so on, so how can I address this id in ...
1
vote
0answers
8 views

Setup page on first login on multisite

Is it possible to create a setup page on the first login before they visit their admin page to say change the language of the administrator and change their temporary password? I don't want users to ...
1
vote
1answer
43 views

How can I inject options into an select tag inside the widget form?

I created a widget, that retrieves filenames from the database and am now trying to output the filenames as options in a select tag inside the admin widget menu(the form function in the widget class). ...
1
vote
1answer
70 views

Problem creating an array instance in a widget in 4.4 update

Before WordPress 4.4 recent update, I was able to create an array instance in a widget from a multiple select menu this way: <?php $cats = get_categories(); ?> <select multiple="multiple" ...
1
vote
1answer
47 views

Filter widget outputs

I've been trying to find a good solution for my problem, but I can't seem to find anything on this topic at all. I've got a custom sidebar, created by using register_sidebar and I've used wordpress's ...
1
vote
0answers
67 views

Select multiple categories from CPT to display in LayersWP builder widget

I am currently developing a LayersWP child theme and have registered a portfolio custom builder widget. In this widget I would like users to be able to select the categories that they want shown. For ...
0
votes
1answer
23 views

Adding link on title its in description but not in title see screenshots attached

This should be simple fix. I am learning php so am not that good to spot the obvious. Here's the website http://goo.gl/tE4OSO. here's what I want http://imgur.com/qZXPPYu . Here the code I believe ...
1
vote
0answers
59 views

Theme Customizer - Choose where widget area appears, to let users organise widgets

I am creating a Theme, and I have a problem with Widgets and Widget Areas. I am using the Theme Customizer to let the user edit the content, colors, etc. I know how to create a widget area. I need to ...
1
vote
0answers
69 views

How do I pass the id of my widget to javascript in the form function?

I would like to add a Quilljs editor to the admin area of my widget, but I am having trouble passing $this->id to javascript. I am using the foo_example widget code, and I've appended the ...
0
votes
0answers
45 views

How can I use wp_widget_rss_output to show my site's feed in the dashboard?

I have a dashboard widget working and I'm trying to use wp_widget_rss_output to display the site's rss feed in that area. The problem is that the only thing showing up is an error. ...
0
votes
4answers
148 views

Insert widgets into loop/custom query at every nth position

The basic challenge: I have a 'normal' custom query, e.g. of news posts from a certain category and want to add in several elements (CTAs, generally speaking) at every nth position, while the loop of ...
0
votes
0answers
11 views

Cloudfare Rocketloader ignore help

in cloudfare i enabled rocket loader and its super charged my site however few widgets etc has become a problem. my footer widgets have turned white here is the code i got <footer id="footer" ...
0
votes
0answers
19 views

Script in sidebar blocks other widget's load

in my Sidebar, before the widget generated from Wordpress, I have this PHP script that fetches the latest threads from my vBulletin 4 Forum: <div class="box newtopics"> ...
0
votes
1answer
22 views

Make a widget to my footer

I am using a theme and the developer doesnt want to help me make a widget on the templates/footer.php The curently code at this php file is <div class="bw-footer <?php echo isset( $class ) ? ...
0
votes
1answer
30 views

Are WordPress widgets cached?

I'm not sure if it is true but seems that the content of the widgets is cached. I initially thought there was a problem with my code (I need to hide/show a section in a custom widget according to a ...
0
votes
2answers
45 views

Widget edit and add in any page

So I have this site and on the bottom of the site you can see the map and search. I have 2 problems with that: The search if offset not in line with the other elements. I want/need it to be full ...
0
votes
1answer
42 views

How do I insert an amazon search widget into posts or pages?

How do I insert an Amazon Search Widget into posts or pages? The source code is: <SCRIPT charset="utf-8" type="text/javascript" ...
0
votes
1answer
36 views

Create a setting at backend,to print only selected categries at front-end

I am making a plugins widget .In back-end when i am clicking on the selected categories that categories only shows in frontend. I just making code checked categories but after that what to do,i don't ...
0
votes
0answers
8 views

Default widget for custom theme [duplicate]

I'm Currently developing some themes, in this theme, I need to make default widget, so when user activate my theme, the widget is automatically activated in the sidebar. I know I just can place the ...
0
votes
1answer
21 views

widget: input the px value from user and use it as inline style in widget function

I am trying to dynamically add margin-bottom property to my widget. For example, I am inputting the value "50px" from my widget and want to use this value to adjust margin-bottom property for the ...
0
votes
1answer
79 views

wp_get_attachment_image() not displaying post images even though wp_get_attachment_url() echo correct urls

I am trying to make a widget which takes post id as input from user and displays images of the specified post in sidebar. wp_get_attachment_url() gets me the url but in the next line ...
0
votes
0answers
56 views

How to get variable IDs from OOP in jQuery?

I created image widget and tried to use $variable ($this->get_field_id('widget_image') in jQuery. Unfortunately, I cannot get it in jQuery. It shows Uncaught ReferenceError: object_name is not ...
0
votes
0answers
56 views

Wordpress Widget: How to pass $this->get_field_id() to javascript

I would like to pass $this->get_field_id() from widget to jquery. How can I do? Now, I tried to do like this with no luck. var Id = $('.media').attr('id'); console.log(Id); Result: ...
0
votes
0answers
11 views

How to remove Help tab and the Widget empty border

I only need to know using code in my functions.php, how to remove the Help tab and the Widget border when it's empty. I found answers here but the date is old and things are changed so, i want an ...
0
votes
0answers
9 views

widget titles are hidden when logged out

At some stage of my development i recognized that the titles of the widgets disappear when user logged out of my site. Any Ideas how to debug this error? Might be is_user_logged_in at some point ...
0
votes
0answers
11 views

WordPress Custom Widget Media Upload

OK I am not a programmer and after reading lots of tutorials I have managed to make one custom widget that just works with texts. Now in this code of mine I want to make a media uploader. Can anybody ...
0
votes
1answer
102 views

How to display widgets inside a page content without a plugin?

I want to build a homepage where I can show posts gathered from different categories and having the ability to choose such categories from the admin. I was thinking to use widgets for this. Is the ...
0
votes
1answer
44 views

A/B test options at the widget level [closed]

I am looking for a method to show 1 of 3 different widgets on my site's homepage. I could do this with javascript, but this would increase page weight and I would rather do it at time of render ...
0
votes
0answers
48 views

Error extending widget class defined in another plugin

I am trying to extend a widget class from another (widget) class in a 3rd party plugin - so hierarchy like this: 3rd_Party_Widget extends WP_Widget (in 3rd party plugin) My_Widget extends ...
5
votes
2answers
244 views

Having different sidebar content for MANY pages?

I am continuing on from a topic I already posted but with a different angle. Please bare with me as I try to provide as much information as possible. I am looking to add a simple text area called ...
0
votes
0answers
17 views

How do I keep WP content in sync with an external spreadsheet or document?

I've been thinking about this and googling solutions for a couple days and haven't made much progress, so I figured I'd get some suggestions. I have an intranet site built in Wordpress that has a ...
2
votes
1answer
52 views

When you register a sidebar in Wordpress, is it possible to choose in what order it appears in the admin

I've registered some new sidebars. They are appearing on appearance->widgets screen. However, they appear in two columns and the order is arbituary. Is there a way to config the order and columns in ...
0
votes
0answers
46 views

Create new sidebars trough admin post/page metabox

I have this bit to register sidebars dynamically: function my_custom_sidebars() { $sidebars = get_option('my_theme_sidebars'); // get all the sidebars names if ( ! empty($sidebars) ) { // add a ...
0
votes
1answer
31 views

How to change text of a widget depend on condition?

I have text widget with default ads on it ( google ads for example ). Sometime, depend on condition like location, time, I need to change the default ads from code, just temporary only. Is there ...
0
votes
1answer
25 views

Shortcode not working in widget

I created the following shortcode: function newsletter_signup_shortcode( $atts ) { $post_type = get_post_type(); // Attributes extract( shortcode_atts( array( 'location' => ...
0
votes
1answer
35 views

How to add a toggle on the left side of my page?

How to add a toggle on the left side of my page and the content on the right side of my wordpress page. The toggle should behave like a menu on the left side(the arrangement)and each heading would ...
0
votes
0answers
15 views

widgets have disappeared from sidebars

I disabled a few plugins (widget logic, tinymce advanced, black studio TINYMCE, remnove widget titles ). I also swapped themes. When I everything backthe widgets I had created have disappeared from ...
0
votes
1answer
18 views

Slider from different widgets

I need some advice. I have added the possibility to pages to have categories with a plugin. I have created a widget for a client that lets a user select a category from a page and select a subpage ...
0
votes
0answers
24 views

Widget Admin page and Javascript enqueuing

I am authoring a WP Widget plugin, and am having problems enqueuing javascript onto the Widget Admin page. The Javascript works when the page is first loaded or refreshed, but when you click "Save" on ...
1
vote
0answers
44 views

Can you target a widget_class in a register_sidebar?

Using Bootstrap 3 to create a WordPress theme I am using register_sidebar() for the sidebar: if ( function_exists( 'register_sidebar' ) ) { register_sidebar( array( 'name' => __( ...
0
votes
0answers
17 views

Order of sidebars in Appearance > Widgets

How do you change the order that the sidebars appear in the Appearance > Widgets page? I have code like: register_sidebar(array( 'name' => 'Home 1', ... register_sidebar(array( 'name' ...
0
votes
1answer
43 views

How not to display an instance of a widget dynamically?

How to change the CSS style for an instance of a multi instance widget dynamically depending on the result of an SQL query? When the query returns nothing at all, I would like that the instance of the ...