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 7756839
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T12:55:32+00:00 2026-06-01T12:55:32+00:00

I had to maunally add some html within the sidebar div of html, but

  • 0

I had to maunally add some html within the sidebar div of html, but I when I preview/activate this theme, it doesnt show the maunal updated content of sidebar, do I need to add this to sidebar.php also and if so where. I am a total nood to both wp as well as php. Can you please help?

  • 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-01T12:55:34+00:00Added an answer on June 1, 2026 at 12:55 pm

    This is the recommended way for WordPress sidebar (sidebar.php)

    <ul id="sidebar">
       <?php if ( !dynamic_sidebar() ) : ?>
           <li>{static sidebar item 1}</li>
           <li>{static sidebar item 2}</li>
       <?php endif; ?>
    </ul>
    

    but if you always want to have some static items on your sidebar then you can make sidebar.php as follows

    // Static items will be always at the top of the sidebar
    <ul id="sidebar">
        <?php if ( !dynamic_sidebar() ) : ?>
            <li>{static sidebar item 1}</li>
            <li>{static sidebar item 2}</li>
        <?php endif; ?>
    </ul>
    
    if(function_exists(‘dynamic_sidebar’) && dynamic_sidebar()) :
    
    endif;
    

    Reference : Register Sidebar and Dynamic Sidebar.

    This is your current sidebar (not dynamic)

    <?php include (TEMPLATEPATH . '/searchform.php'); ?> 
    <div id="sidebar"> 
        <h3>Category</h3>
        <ul class="ul-cat"> 
            <?php wp_list_categories('show_count=1&title_li='); ?> 
        </ul>
        <h3>Archives</h3>
        <ul class="ul-archives"> 
            <?php wp_get_archives('type=monthly'); ?> 
        </ul>
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For using ServiceInstaller I had to go and add it manually to toolbox, it
Had to download Command Line Tools from Apple to get make to work, but
Had a good read through similar topics but I can't quite a) find one
Had a page that was working fine. Only change I made was to add
Had a good search here but can't see anything that gets my mind in
Had this working; at one stage. The problem is the following text is now
I had a debate about macros and their readability. I think that in some
I have to execute a SQL made from some users and show its results.
I am moving some scripts from a Linux box to a Windows box, but
Edit: It seems it doesn't work. Some permissions aren't copied over it seems. This

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.