0
votes
0answers
46 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 ...
2
votes
3answers
1k views

How do I create a widget that only allows a single instance?

How do I create a widget that only allows a single instance of a widget to be added through the Wordpress interface? The default behaviour of widgets allows multiple instances to be added. I am ...
0
votes
1answer
295 views

twenty eleven single.php

I am using twenty-eleven theme for my site, I just saw that in single posts page, .i.e single.php, the sidebar is absent, which means no widgets in single.php page How do I bring it back