1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Need help with dynamic sidebar

Discussion in 'Web Design' started by moneymagnet246, Aug 16, 2015.

  1. moneymagnet246

    moneymagnet246 Power Member

    Joined:
    Aug 13, 2014
    Messages:
    543
    Likes Received:
    93
    So I kind of screwed myself over editing the sidebar.php file in wordpress. I wanted to move it from the right to the left and it seemed easy and it might be, just not for me.

    I was able to go to archives and recover the old sidebar (which isn't the one I wanted) so it's decent now. But any new widgets I add don't get uploaded.

    I used to be able to change the widgets and if I have it activated for the side bar then it'll show, now i need to go into the html coding to fix it up. Any advice on how to restore it? I'm using the colorbold theme


    Code:
    <div id="colRight">    
    <!-- begin search box -->
            <div id="searchBox" class="clearfix">
                <form id="searchform" action="" method="get">
                    <input id="s" type="text" name="s" value="">
                    <input id="searchsubmit" type="submit" value="SEARCH">
                </form>
            </div>
            <!-- end search box -->
    <!-- begin adsBox -->
    <!-- end adsBox -->
    <!-- begin twitter box -->
    <!-- end twitter box -->
    <ul>
    
    
    <h2>Categories</h2><?php _e(''); ?>
        <ul>
    <?php wp_list_cats(); ?>
        </ul>
     </li>
    
    
    
    
    <ul>
     <h2>Ads</h2>
    <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <!-- Travel -->
    <ins class="adsbygoogle"
         style="display:block"
         data-ad-client="ca-pub-3360815284995969"
         data-ad-slot="5787841335"
         data-ad-format="auto"></ins>
    <script>
    (adsbygoogle = window.adsbygoogle || []).push({});
    </script></li>
    <a target="_blank" href="http://www.copyrighted.com/copyrights/view/t7u8-e5c6-zmsw-iaei"><img border="0" alt="Copyrighted.com Registered & Protected T7U8-E5C6-ZMSW-IAEI" title="Copyrighted.com Registered & Protected T7U8-E5C6-ZMSW-IAEI" width="150" height="40" src="http://static.copyrighted.com/images/seal.gif" /></a>
    </ul>
     
  2. MrBlue

    MrBlue Senior Member

    Joined:
    Dec 18, 2009
    Messages:
    974
    Likes Received:
    680
    Occupation:
    Web/Bot Developer
    If you have the theme source files handy just overwrite your current sidebar.php with the original one and reimplement your desired changes. If you don't have the original files try dropping the following PHP tag into your file:
    Code:
    <?php dynamic_sidebar(); ?>
     
  3. moneymagnet246

    moneymagnet246 Power Member

    Joined:
    Aug 13, 2014
    Messages:
    543
    Likes Received:
    93
    I dont have the original, I'll try to get it though. And that code didn't work.