Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1
    Join Date
    May 2009
    Posts
    3
    Plugin Contributions
    0

    Default how do I disable banner sidebox header?

    [SCR]http://www.kkymn.com/handy35/zencartforumquestionimage.jpg[/SCR]

    I am a keen observer of this forum. I learned a lot from the contributors thank you all.

    But no matter how much I searched I never got the answer to this specific question. The problem is explained on the image.

    Any help would be deeply appreciated.

    Regards.
    Last edited by Kim; 26 May 2009 at 02:37 PM.

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,701
    Plugin Contributions
    11

    Default Re: how do I disable banner sidebox header?

    firefox with firebug will point you in the right direction.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  3. #3
    Join Date
    May 2009
    Posts
    3
    Plugin Contributions
    0

    Default Re: how do I disable banner sidebox header?

    Well I can learn real fast and I am ready to spend 8 hours straight to solve this problems but please can some one give me a real short 3 lines hint about where to start?

    What should I look in the codes for this?

  4. #4
    Join Date
    Jul 2007
    Posts
    156
    Plugin Contributions
    0

    Default Re: how do I disable banner sidebox header?

    Hi kkymn,

    I recently had a similar problem, I wanted to have 5 adverts show in 1 sidebox.
    I eventually figured out that the only way to do that was to have 5 seperate sideboxes but that left me with the same problem you have, headers on every box.

    This is what it looks like now:
    www.personalised-certificates.com
    The adverts at the right are actually 5 sideboxes together.

    Here's how I removed the headers.

    Step 1
    Open includes->templates->template_default->common->tpl_box_default_right.php

    scroll to the bottom and remove this:
    Code:
    <h3 class="rightBoxHeading" id="<?php echo str_replace('_', '-', $box_id) . 'Heading'; ?>"><?php echo $title; ?></h3>
    Rename this file tpl_box_noheader_right.php and save to includes->templates->CUSTOM TEMPLATE->common

    Step 2
    open includes->modules->sideboxes->banner_box.php (or whatever box you are wanting to remove header from)
    Around line 28 find this:
    Code:
    $title =  BOX_HEADING_BANNER_BOX;
    and replace with this:
    Code:
    $title =  '';
    Then just under find this:
    Code:
    require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
    and replace with this:
    Code:
    require($template->get_template_dir('tpl_box_noheader_right.php', DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . '/tpl_box_noheader_right.php');
    Save this file to includes->modules->sideboxes->CUSTOM TEMPLATE

    And that should be it.

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

    Default Re: how do I disable banner sidebox header?

    No need to mess with the php - use the stylesheet to disable the headers you don't want with:

    #nameOfTheBox h3 {display: none;}
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  6. #6
    Join Date
    May 2009
    Posts
    3
    Plugin Contributions
    0

    Default Re: how do I disable banner sidebox header?

    Phil020782 I salute you.

    I did what you said and it worked like a charm.

    I thank you from the bottom of my hard that you took all this time and effort and prepared these amazing instructions for me.

    thank you! thank you! thank you!

    This community is just too good to be true. So many selfless people! and I am sure every one benefiting from this community appreciates at least as much as me.

    Regards to everyone.

  7. #7
    Join Date
    May 2009
    Posts
    6
    Plugin Contributions
    0

    Default Re: how do I disable banner sidebox header?

    If you want to remove the heading from either a left or right sidebox you can just do the following and you don't need to create extra files or do anything else:

    1. Edit the tpl_box_default_left.php or tpl_box_default_right.php (depending on which side you want to place the banner box) from the \includes\templates\YOUR_TEMPLATE\common\ directory.

    2. For tpl_box_default_left.php replace everything between
    <!--// bof: <?php echo $box_id; ?> //-->
    and
    <!--// eof: <?php echo $box_id; ?> //-->
    with:
    <?php if ($box_id == "bannerbox")
    { echo $content;
    } else {?>
    <div class="leftBoxContainer" id="<?php echo str_replace('_', '-', $box_id ); ?>" style="width: <?php echo $column_width; ?>">
    <div class="sidebox-header-left <?php echo $header_left; ?>">
    <h3 class="leftBoxHeading <?php echo $header_right; ?>" id="<?php echo str_replace('_', '-', $box_id) . 'Heading'; ?>"><?php echo $title; ?></h3>
    </div>
    <?php echo $content; ?>
    </div>
    <?php } ?>

    3. For tpl_box_default_right.php replace everything between
    <!--// bof: <?php echo $box_id; ?> //-->
    and
    <!--// eof: <?php echo $box_id; ?> //-->
    with:
    <?php if ($box_id == "bannerbox")
    { echo $content;
    } else {?>
    <div class="rightBoxContainer" id="<?php echo str_replace('_', '-', $box_id ); ?>" style="width: <?php echo $column_width; ?>">
    <div class="sidebox-header-left"><h3 class="rightBoxHeading" id="<?php echo str_replace('_', '-', $box_id) . 'Heading'; ?>"><?php echo $title; ?></h3></div>
    <?php echo $content; ?>
    </div>
    <?php } ?>

  8. #8
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,701
    Plugin Contributions
    11

    Default Re: how do I disable banner sidebox header?

    Again, as Kim pointed out earlier, there's no need to mess with PHP. It can all be done in the css. That way, later changes will not have to look in two places but just one.

    It is truly amazing the amount of changes you can make without touching a single PHP file.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  9. #9
    Join Date
    May 2009
    Posts
    6
    Plugin Contributions
    0

    Default Re: how do I disable banner sidebox header?

    Will only work if you want to remove all the headings for every box on one side. The relevant portion of the stylesheet is H3.leftBoxHeading, H3.rightBoxHeading. If you apply {display: none;} to it you will wipe out the headings for every sidebox. You would have to create a new class in the PHP and name it something like "bannerboxclass" and put it in an if then else statement to display it, then create a new section in the stylesheet to appy the {display: none;}. You'd have to do a lot more php coding on top of messing with the stylesheet. My solution is quick and clean and let's you target specific boxes.

  10. #10
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,701
    Plugin Contributions
    11

    Default Re: how do I disable banner sidebox header?

    Hate to bust a bubble, but try this and see if the Information Box header doesn't disappear.
    #information h3{
    display: none;
    }
    Or this to ge trid of the categories header.
    #categories h3 {
    display: none;
    }
    What you may be forgetting is that each box has it's own id. It may not be listed in the stylesheet, but it is there ready to be turned off as easy as above.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Disable sidebox banner on home page
    By obelis in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 11 Jul 2010, 02:16 PM
  2. sidebox header change font & disable link
    By jharradine in forum Basic Configuration
    Replies: 6
    Last Post: 15 Apr 2010, 05:03 AM
  3. How to disable close function in sidebox?
    By lovefury in forum Basic Configuration
    Replies: 1
    Last Post: 17 Feb 2010, 04:04 PM
  4. how can I disable categories link below site banner?
    By Necro in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 19 Sep 2007, 04:24 AM

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