WordPress.org

Ready to get started?Download WordPress

Forums

How to remove box around sidebar? (8 posts)

  1. Jonathan
    Member
    Posted 1 year ago #

    Hi!

    How do I remove the box around my sidebar?
    You can see a picture here:

    http://www.billigste-internet.dk/wp-content/uploads/2013/02/box-around-sidebar.png

    It says the following in my:

    sidebar-custom.php:

    <?php
    global $sidebar_choice;
    
    ?>
    <div id="sidebar-wrapper" class="one-third column">
    <?php if(is_page_template('template-sidebarleft.php')){ ?>
    <img class="sidebar-shadow-l" src="<?php echo get_template_directory_uri() ?>/images/sidebar-shadow-l.png" />
    <?php }else{?>
    <img class="sidebar-shadow" src="<?php echo get_template_directory_uri() ?>/images/sidebar-shadow.png" />
    <?php }?>
    		<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar($sidebar_choice) ) : ?>
        <?php endif; ?>
    </div>

    And in my sidebar.php:

    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Blog Single') ) : ?>
        <?php endif; ?>

    [Please post code or markup snippets between backticks or use the code button. Your posted code may now have been permanently damaged by the forum's parser.]

    Hope someone can help :-)

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    This is a CSS issue - not a coding one. You will need to start customising your theme's CSS - possibly via a child theme or a custom CSS plugin.

  3. Jonathan
    Member
    Posted 1 year ago #

    Hi Esmi,

    Thank you for quick reply.

    Okay. Do you know what I can write in my custom CSS to get it removed?

  4. esmi
    Forum Moderator
    Posted 1 year ago #

    Not without seeing the actual site.

  5. Jonathan
    Member
    Posted 1 year ago #

    Okay. You can see the page here: http://www.billigste-internet.dk/optimalt-internet-gamere/

    There is no error when you use Firefox, but there is an error if you use Google Chrome :-)

  6. esmi
    Forum Moderator
    Posted 1 year ago #

    I cannot see any "box" around your sidebar right now...

  7. Jonathan
    Member
    Posted 1 year ago #

    Even if you use Google Chrome?

  8. esmi
    Forum Moderator
    Posted 1 year ago #

    No - just Firefox. If you are seeing a box in Google Chrome, I suggest that you start by validating your site's markup & CSS.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.