WordPress.org

Ready to get started?Download WordPress

Forums

How to edit dynamic sidebar widget templates (2 posts)

  1. dbenjamin
    Member
    Posted 4 years ago #

    Hello,

    Into the sidebar.php file a dynamic sidebar is loaded. But now, for some widgets i would like to edit the template. For example, i add the "categories" widget to the primary sidebar from wp-admin and i want to add an image next to each category, how can i do that please ?

    Thanks.

    br,
    Benjamin.

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    You can't edit the markup for the default widgets without hacking the WordPress core - which I would not recommend. However, depending upon your theme, it may be possible to add images using CSS. Or you could use a coded solution.

Topic Closed

This topic has been closed to new replies.

About this Topic