Tagged Questions
Widgets are configurable elements used to dynamically build sections of a WordPress theme.
0
votes
0answers
11 views
Widget to calculate time from a certain date
I'm trying to create a widget that will display the amount of time passed since a specific date, however I get this message: "function WP_Widget::widget() must be over-ridden in a sub-class." This is ...
0
votes
0answers
13 views
Limit number of Widgets in Sidebars - bug
i using Javascript from here by @JanFabry from "4 Answers"
the Javascript do his work great but i found bug. when you come to limit widgets the script not give you to drag more widgets to the sidebar ...
0
votes
0answers
16 views
Problems after transfering WP
After transfering my Wordpress to a new domain I can't add new things like images to post or even "text field" to widget area. I see only white blank page after that actions. Everything else looks ...
0
votes
1answer
32 views
How to get class from widget area
So... I registered my widget areas with this code:
register_sidebar( array(
'name' => __( 'Posts Widget Area', 'ikos' ),
'id' => 'primary-widget-area',
'class' => ...
0
votes
0answers
14 views
How to dynamically select particular WordPress Category?
I build my simple wordpress magazine and I have multiple categories, like
cover,
volume 1,
volume 2,
etc.
In the index / homepage, I want to display table of content for each volume (based on ...
0
votes
0answers
12 views
Conditional before_widget and after_widget
Is it possible to use a custom before_widget and/or after_widget value for certain widgets? For example, I'd like to add a opening <div> tag before the first and closing </div> tag after ...
0
votes
0answers
7 views
How to add sort category using post views in wp_list_catgory?
I am using widget-reloaded plugin and i have a function which count post views.
<?php
// function to display number of posts.
function tie_views( $postID = '' ){
if( !tie_get_option( ...
2
votes
1answer
25 views
What is the use case for the “Class” parameter in register_sidebar?
I registered a new sidebar and filled in the class parameter (see code), I then dropped in an Archive widget and went hunting for my "testing" class. Not there.
So what is the class parameter used ...
0
votes
0answers
30 views
Avoid replacing single quotes
In my WordPress widget I include a PHP file which hase the following content:
<div id="<?php echo $args['widget_id']; ?>" data-style='{"width":"35px"}'>
</div>
However, WordPress ...
0
votes
2answers
86 views
+50
HowTo: Add Class to Sidebar Widget List-Items
The newest version of Bootstrap (v3.0) adds a new List Group component which has the following structure:
<ul class="list-group">
<li class="list-group-item">Cras justo odio</li>
...
1
vote
0answers
16 views
Custom taxonomy widget in admin area
I have a custom taxonomy set up on a custom post type and the box it uses is the same as categories, except I wanted to make it easily searchable using a filter script and then also allow the user to ...
0
votes
1answer
18 views
My custom widget won't stay in the widget area after I refresh the widget page
As the title says, i've been developing a simple image rollover widget, now that I'm almost done, the widget won't stay in the sidebar areas after I drag and drop it in and refersh the page, any idea ...
0
votes
1answer
19 views
My widget won't update its values when save is clicked
So this is my first attempt a creating a widget that has a functionality of creating a simple image rollover effect (if anyone wants it when it's done, leave me a message).
Now I downloaded a sample ...
-1
votes
1answer
16 views
function WP_Widget::widget() must be over-ridden in a sub-class. when create new Widget
Show: function WP_Widget::widget() must be over-ridden in a sub-class. in website.
How to fix it?
-1
votes
1answer
26 views
how to enable full width page template in woo theme memorable?
I have been trying to remove sidebar so i can use full width of page but no luck.
Does anyone have any idea how to enable full width page template in woo theme memorable?