Widget error
-
My widget is giving error – when i click appearance then widgets – instead of displaying menu its displaying codes
[ Moderator note: code fixed. Please wrap code in the backtick character or use the code button. ]
label class="setting size"> <span>Size</span> <select class="size" name="size" data-setting="size" <# if ( data.userSettings ) { #> data-user-setting="imgsize" <# } #>> <# var size = data.sizes['thumbnail']; if ( size ) { #> <option value="thumbnail"> Thumbnail – {{ size.width }} × {{ size.height }} </option> <# } #> <# var size = data.sizes['medium']; if ( size ) { #> <option value="medium"> Medium – {{ size.width }} × {{ size.height }} </option> <# } #> <# var size = data.sizes['large']; if ( size ) { #> <option value="large"> Large – {{ size.width }} × {{ size.height }} </option> <# } #> <# var size = data.sizes['full']; if ( size ) { #> <option value="full"> Full Size – {{ size.width }} × {{ size.height }} . . . . . -----> like this
-
Hi,
This sounds like it could be an issue with the theme or a plugin.
When you say a widget is causing the issue. How have you actually registered the widget itself?
Are you using a plugin to register the widget? or have you registered the widget by adding code to your theme functions.php?
If the latter, could you copy/paste the actual code you used to register/create the widget in your theme functions.php
Thanks
Hello
Its not a theme issue might be a plugin issue. And i’m nt getting what you are saying. I’m a beginner to wordpress n i’m using custom side bar plugin n when i click appearance > widgets – menu is not displayed istead the above codes or script is display.
Regards
Puneet
The topic ‘Widget error’ is closed to new replies.