How to fix the missing the id attribute on before_widget problem in theme ?

Posted in: Newspaper
Post count: 28

Hello,
I’m using WP Popular Posts plugins [https://wordpress.org/plugins/wordpress-popular-posts/] but when i try to display it in widget form with its ajax display settings enabled,
the theme on any post front-end outputs this error in sidebar where the widget is placed – Error: cannot ajaxify WordPress Popular Posts on this theme. It’s missing the id attribute on before_widget (see register_sidebar for more).

How to fix it ?

Thank you

  • This topic was modified 8 years by krysn76. Reason: spell correction
Post count: 20685

Hi,

You could use theme blocks to display popular posts, instead of an additional plugin. All the blocks are available as widgets and there are sorting options by popularity that can be used
https://forum.tagdiv.com/block-settings-tutorial/

Thanks

Post count: 28

Hi Simion,
The theme’s popular post widget sorting option only displays last 7 days & all time popular posts, while this plugin displays todays/this weeks/this months/ & any custom period popular posts thats why using it. Its very versatile & popular plugin.

Pls help me with the that theme error “Theme missing the id attribute on before_widget”
If i could add some code in td_wp_booster_functions.php for any sidebar that will fix this prob ?

Thanks

Post count: 20685

Hi,

You could try different popular post widgets, if you require more advanced sorting. That would be easier then modifying theme files, which will be lost after a theme update. Maybe some of these for example
http://www.wpbeginner.com/plugins/5-best-popular-posts-plugins-for-wordpress/

Thanks

Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.