When I write a quote in the text widget and displayed the text is wrapped as…
<div class="textwidget">My text...</div>
.
I would like to remove the div and put simply “My text…”.
For Example:
Current output
<div class="container">
<div class="textwidget">
My text...
</div>
</div>
Required output:
<div class="container">
My text...
</div>
jQuery way :
PHP way :
Ref : https://stackoverflow.com/a/12495139/622813
So WordPress way : (Hacks way)
Functions.php (get dynamic_sidebar as
return
)Your template : (So replace it)
Could you please check below code?
Try this,
It works in jQuery, give it a try.