Support » Plugins » Placing HTML before and after widgets

  • Resolved davejuk

    (@davejuk)


    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

Viewing 1 replies (of 1 total)
  • Never mind, I found the register_sidebar declaration that I need to edit in the functions.php for my theme.

Viewing 1 replies (of 1 total)
  • The topic ‘Placing HTML before and after widgets’ is closed to new replies.