Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8817039
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T04:45:19+00:00 2026-06-14T04:45:19+00:00

Alright so i am trying to change the HTML output for wordpress sidebars. I

  • 0

Alright so i am trying to change the HTML output for wordpress sidebars.

I tried using: register_sidebar(); and use after/before title and after/before widget.

The above does work to some extent however the way that the HTML output is now it’s missing the body of the widget and i would like to edit it and add a div wrapping the body of the widget.

Right now its.

 <div class="beforewidget">
      <div class="title">
      </div>

      // content of the widget
 </div>

I want to change it so the content of the widget would be wrapped with div as well.

Here is my register_sidebar()

 $args = array(
'name'          => __( 'Normal Sidebar', 'theme_text_domain' ),
'id'            => '3',
'description'   => 'Normal Sidebar',
    'class'         => '',
'before_widget' => '<div class="widget-body">',
'after_widget'  => '</div>',
'before_title'  => '<div class="widget-title">',
'after_title'   => '</div>' );
register_sidebar( $args );

Which file do I need to edit?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T04:45:20+00:00Added an answer on June 14, 2026 at 4:45 am
     $args = array(
    'name'          => __( 'Normal Sidebar', 'theme_text_domain' ),
    'id'            => '3',
    'description'   => 'Normal Sidebar',
    'class'         => '',
    'before_widget' => '</div><div class="widget-body">',
    'after_widget'  => '</div>',
    'before_title'  => '<div class="widget-title">',
    'after_title'   => '' );
    

    try that

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Alright, I'm just trying to learn about using Contact information, but I'm a bit
Alright... I'm trying to write some javascript code that will apply to an html
Alright, I'm trying to display an image thumbnail using the File API and jQuery.
Alright, I'm trying to buy into the idea that html tables should not be
Alright, after doing a ton of research and trying almost every managed CPP Redist
Alright, I'm having trouble getting started on this one. I'm trying to use the
Alright, so I'm trying to connect to UDP trackers using c#, but I never
Alright so I am trying to basically take what's in $row['cardid'] and set it
Alright so I have been trying to get all of my separate classes (At
alright so I'm trying to set up a keydown dispatcher that will do different

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.