Install widget on plugin activation
Anyone know any resources to help me install my widget when my plugin is activated?
Anyone know any resources to help me install my widget when my plugin is activated?
A custom shortcode i made is being forced to the top of the widget outside of the widget container. Any ideas why? This is my code…
I have multiple “sidebars”, but not all of them are the same size. Not all widgets fit in all sidebars (for example, I have a “footer sidebar” where the client can place custom widgets, but they are wide, and don’t fit at all in the “real” sidebar). I want to give an indication when a widget is placed in a sidebar where it would not belong (change the header text color, for example). What would be the best way to do this?
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.
I need to call a sidebar into my header. I’ve 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 widgets functions, stylesheet and two new sidebar templates (one for header and one for footer widgets) in one folder called pgwidgets.
Disclaimer: I am brand spanking new to WP.
I’m trying to include a checkbox in my widget back end. But I cannot get the value (on or off) after the user submits it. I thought the value would be stored in “esc_attr( $check )” (as it is when using a text input), but I cannot retrieve it.
I’m actually using the qTranslate plugin to translate my website. It works really well with everything except one thing. the titles of my sidebar widgets.
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.
I want to give the Editor Role access to editing the sidebar and it’s contents. I have a text widget in there and in order to edit this text widget the user needs to be an admin – this sucks. How do I grant permission to the Editor Role that will give him access to edit the sidebar?