WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Placing HTML before and after widgets (2 posts)

  1. davejuk
    Member
    Posted 1 year ago #

    The markup for the core widgets appears to be an h4 tag for the title immediately followed by the content. For my theme, I need to contain each widget in its own div block so that I can style it. I know how to create my own custom widgets but how should I be adding this HTML to the core widgets?

    I guess I need to redefine the value of $before_widget amd $after_widget - can anyone tell me how I do that?

    Thanks

  2. davejuk
    Member
    Posted 1 year ago #

    Never mind, I found the register_sidebar declaration that I need to edit in the functions.php for my theme.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.