Thread: Sidebox Spacing

Results 1 to 7 of 7
  1. #1
    Join Date
    Jun 2009
    Posts
    49
    Plugin Contributions
    0

    Default Sidebox Spacing

    I'm using the Blank Sidebox add-on, and it works fine, I just have a little extra space between the sidebox title and it's content that I can't seem to narrow down.

    http://www.wwfdbracelet.com

    The sidebox in question is the one on the right titled "$1 Donation". See how the space between title and content is twice as big as the sideboxes on the right? I'm a sidebox newbie and no idea where to track it down. Here is the code for my includes/languages/english/extra_definitions/MY_TEMPLATE/blank_sidebox_defines.php page:

    Code:
    <?php
    /**
     * blank sidebox definitions - text for inclusion in a new blank sidebox
     *
     * @package templateSystem
     * @copyright 2007 Kuroi Web Design
      * @copyright Portions Copyright 2003-2007 Zen Cart Development Team
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: blank_sidebox.php 2007-05-26 kuroi $
     */
    
    define('BOX_HEADING_BLANK_SIDEBOX', '$1 Donation');
    define('TEXT_BLANK_SIDEBOX', '$1 of every purchase will go to The Tea Party Express and The Tea Party Patriots.
    <p>(You may also opt to donate your $1 to the Heritage Foundation) </p>
    <p><strong>Follow Us:</strong><br />
    <img src="http://www.wwfdbracelet.com/slmContent/facebook-logo.png" alt="Facebook" title="Facebook" name="" width="33" height="33" /> <img src="http://www.wwfdbracelet.com/slmContent/twitter-logo.png" alt="Twitter" title="Twitter" name="" width="33" height="33" /></p>
    ');
    
    ?>

  2. #2
    Join Date
    Apr 2010
    Posts
    12
    Plugin Contributions
    0

    Default Re: Sidebox Spacing

    In your includes/languages/english/extra_definitions/MY_TEMPLATE/blank_sidebox_defines.php page try changing <P> and </P> tags to <DIV> and </DIV> tags

  3. #3
    Join Date
    Jun 2009
    Posts
    49
    Plugin Contributions
    0

    Default Re: Sidebox Spacing

    That did it, thanks!

  4. #4

    Default Re: Sidebox Spacing

    Hi! How about adding a space between sideboxes??

    in my store you can see that Blog Latest Post ann Bestsellers seems like one.. I want them separated like all of my sideboxes.

    Thanks! Heres my code for

    includes/templates/template_default/sideboxes/tpl_wp_posts.php

    Code:
    <?php
    //
    // +----------------------------------------------------------------------+
    // |zen-cart Open Source E-commerce                                       |
    // +----------------------------------------------------------------------+
    // | Copyright (c) 2004 The zen-cart developers                           |
    // |                                                                      |
    // | http://www.zen-cart.com/index.php                                    |
    // |                                                                      |
    // | Portions Copyright (c) 2003 osCommerce                               |
    // +----------------------------------------------------------------------+
    // | This source file is subject to version 2.0 of the GPL license,       |
    // | that is bundled with this package in the file LICENSE, and is        |
    // | available through the world-wide-web at the following url:           |
    // | http://www.zen-cart.com/license/2_0.txt.                             |
    // | If you did not receive a copy of the zen-cart license and are unable |
    // | to obtain it through the world-wide-web, please send a note to       |
    // | [email protected] so we can mail you a copy immediately.          |
    // +----------------------------------------------------------------------+
      $content = "";
    
    if($woz_install){
    
      //start wp output
      ob_start();
      wp_get_archives('title_li=&type=postbypost&limit=5'); // change the 'limit' parameter to whatever number of posts to show
      //get_archives('postbypost', '5', 'custom', '<li>', '</li>'); // change the '5' to whatever number of posts to show
      $out = ob_get_clean();
      //end wp output
    
      $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';
    
      $content .= '<ul>'.$out.'</ul>';' 
    
    }
    ?>

  5. #5
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Sidebox Spacing

    That's because it is all one. Somehow, you have the whole right column inside #wpposts. You might check the template file for that mod.

  6. #6

    Default Re: Sidebox Spacing

    Thanks! but i do not know much about this things..

    I hope someone there has time to point what to change here.

    This is a css file of the mod

    Code:
    #sidebar ul, #sidebar ul ol {
    	margin: 0;
    	padding: 0;
    	}
    
    #sidebar ul li {
    	list-style-type: none;
    	list-style-image: none;
    	margin-bottom: 10px;
    	}
    
    #sidebar ul p, #sidebar ul select {
    	margin: 5px 0 8px;
    	}
    
    #sidebar ul ul, #sidebar ul ol {
    	margin: 5px 0 0 10px;
    	}
    
    #sidebar ul ul ul, #sidebar ul ol {
    	margin: 0 0 0 10px;
    	}
    
    ol li, #sidebar ul ol li {
    	list-style: decimal outside;
    	}
    
    #sidebar ul ul li, #sidebar ul ol li {
    	margin: 3px 0 0;
    	padding: 0;
    	}
    	
    /* for v1.2 */
    .leftboxcontent ul li, .rightboxcontent ul li , .singleboxcontent ul li{
      list-style-type: none;
      margin:0px;
      padding-left: 0px;
    }
    
    .leftboxcontent ul, .rightboxcontent ul , .singleboxcontent ul{
      margin:0px;
      padding-left:0px;
    }
    
    .leftboxcontent ul ul, .rightboxcontent ul ul, .singleboxcontent ul ul{
      list-style-type: square;
      margin:0px;
      padding-left:5px;
    }
    
    /* for v1.3 */
    .leftBoxContainer ul li, .rightBoxContainer ul li , .singleBoxContainer ul li{
      list-style-type: none;
      margin:0px;
      padding-left: 0px;
    }
    
    .leftBoxContainer ul, .rightBoxContainer ul , .singleBoxContainer ul{
      margin:0px;
      padding-left:0px;
    }
    
    .leftBoxContainer ul ul, .rightBoxContainer ul ul, .singleBoxContainer ul ul{
      list-style-type: square;
      margin:0px;
      padding-left:5px;
    }

  7. #7

    Default Re: Sidebox Spacing

    Wanna add that if i put it below other sidebox it looks ok... but i want it on top of right sideboxes for it to be easily noticed.

    Thanks

 

 

Similar Threads

  1. spacing categories in sidebox
    By bloomingvine in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 6 May 2011, 07:55 AM
  2. Blank Sidebox spacing
    By gemadan96 in forum Addon Sideboxes
    Replies: 2
    Last Post: 20 Aug 2010, 01:31 AM
  3. Sidebox Spacing 2
    By igendreau in forum Basic Configuration
    Replies: 5
    Last Post: 23 Apr 2010, 05:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg