Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2006
    Posts
    8
    Plugin Contributions
    0

    Headerless Blank Sidebox

    I'd like to add a sidebox to Zen Cart with no header, just a blank box I can place a graphic and link in. I downloaded the Blank Sidebox mod.

    From what I can tell, in the stylesheet.css document, the sideboxes header is defined by


    .leftBoxHeading,.rightBoxHeading {
    margin: 0em;
    background-color: #ffffff;
    background-image: url(../images/tile_back.gif);
    padding: 0.5em 0.2em;
    background-repeat: no-repeat;

    So I figured I'd just copy/paste/modify a bit to come up with this. (BTW, is this called a "class"?)

    .blankBoxHeading {
    margin: 0em;
    background-color: #ffffff;
    padding: 0.5em 0.2em;
    background-repeat: no-repeat;
    }

    (Same thing, just no tile image for the header which would effectively make no header)

    The question I have is: How do I change what a single sidebox looks for in the stylesheet? In other words, how do I get one single sidebox to run without a header while the others are unchanged? I thought there would be something in the blank sidebox files that defines that and I could just point it to my new .blankBoxHeading, but no luck. Suggestions?

  2. #2
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Headerless Blank Sidebox

    pssst- to have no header or footer on your sidebox, call the header_box.

  3. #3
    Join Date
    Jun 2006
    Posts
    8
    Plugin Contributions
    0

    Default Re: Headerless Blank Sidebox

    I'm afraid I don't follow you...

    is header_box a file or ?? I searched it in the Developers Tool Kit and found nothing.

  4. #4
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Headerless Blank Sidebox

    Make a copy of the includes/modules/sideboxes/CUSTOMIZED_SIDEBOX.php and put it in you /modules/CUSTOM_TEMPLATE/ directory.

    Modify this line in that file:

    PHP Code:
          require($template->get_template_dir($column_box_defaultDIR_WS_TEMPLATE$current_page_base,'common') . '/' $column_box_default); 
    Change to:

    PHP Code:
          require($template->get_template_dir('tpl_box_header.php'DIR_WS_TEMPLATE$current_page_base,'common') . '/' 'tpl_box_header.php'); 
    ***Edited to fix the syntax***
    Last edited by Kim; 17 Sep 2006 at 12:43 AM.

 

 

Similar Threads

  1. v150 Blank Sidebox Blank Page after adding code for livechat software
    By whatisthat456 in forum Basic Configuration
    Replies: 8
    Last Post: 3 May 2012, 10:40 AM
  2. Blank Sidebox, no borders or header, just blank
    By chris32882 in forum General Questions
    Replies: 16
    Last Post: 3 Dec 2009, 06:22 PM
  3. blank sidebox
    By t0minit in forum General Questions
    Replies: 29
    Last Post: 22 Jun 2009, 10:10 AM
  4. Flash hack&blank sidebox = blank page
    By AmandaGero in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 20 Apr 2009, 06:19 PM
  5. Blank Sidebox Mod - remove a blank sidebox
    By PJD in forum Basic Configuration
    Replies: 4
    Last Post: 14 Mar 2008, 02:09 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