Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1
    Join Date
    Aug 2010
    Posts
    51
    Plugin Contributions
    0

    Default Custom Sidebox heading issue

    I just created a custom sidebox called "cover_sidebox". Now for some reason the heading is on the bottom of the sidebox. Strange, but really not a big deal as I want to remove the heading anyway. Only, when I add the attribute
    HTML Code:
    cover_sidebox_heading (display: none;}
    it doesn't work. I've also tried cover_sidebox and box_heading_cover_sidebox and I can't seem to hide the heading.

    a link to my site:
    www.shopphgmag.com

    Any help would be appreciated

    Thanks

  2. #2
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: Custom Sidebox heading issue

    You need to properly define BOX_HEADING_cover_SIDEBOX in the php file as

    Code:
    define('BOX_HEADING_cover_SIDEBOX', '');
    I purposely made the two single quotes different colors so you can see that it's two separate characters.

    It looks like you tried to remove it by removing the define entirely which is why you're seeing BOX_HEADING_cover_SIDEBOX.
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  3. #3
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Custom Sidebox heading issue

    Check your files and find and remove/comment out
    Code:
    <h3 class="leftBoxHeading" id="coversideboxHeading">BOX_HEADING_cover_SIDEBOX</h3>
    Zen-Venom Get Bitten

  4. #4
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: Custom Sidebox heading issue

    Check Kobra's option first. He may be correct on this.
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  5. #5
    Join Date
    Aug 2010
    Posts
    51
    Plugin Contributions
    0

    Default Re: Custom Sidebox heading issue

    ok, so in /includes/modules/sideboxes/My_Template/cover_sidebox.php

    I changed
    HTML Code:
    // $title =  BOX_HEADING_cover_SIDEBOX;
    Is that what you meant? It did knock out the heading, but some of the background is still there from "coversideboxheading"?

    HTML Code:
    <h3 class="leftBoxHeading" id="coversideboxHeading">BOX_HEADING_cover_SIDEBOX</h3>
    Does not actually exist in a file.

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Custom Sidebox heading issue

    No, that code as such does not exist in any file. It is built in tpl_box_default_left/right.php, which serve all sideboxes, so you cannot change it for one sidebox.
    Change the define from
    BOX_HEADING_cover_SIDEBOX
    to
    BOX_HEADING_COVER_SIDEBOX
    as the code may automatically search for an uppercase constant, and define it as blank per afo's post.

  7. #7
    Join Date
    Aug 2010
    Posts
    51
    Plugin Contributions
    0

    Default Re: Custom Sidebox heading issue

    OK, so changing to caps did work, but I still have some of the background left over. Not sure why...

    Thank you by the way. Your help is just awesome.

  8. #8
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Custom Sidebox heading issue

    Okay, your BOX_HEADING_cover_SIDEBOX as you have used it will function, but it is still best practice to use all uppercase for constants. Just define it as blank ''.

    I don't see where you have actually used the cover sidebox. What you have showing is a custom-built bit of code placed directly in the column, not using the sidebox system. Is this what you are wanting to replace with a proper sidebox that will look/work the same?
    Last edited by gjh42; 18 May 2011 at 06:38 PM.

  9. #9
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Custom Sidebox heading issue

    Oh, and from your first post, cover_sidebox_heading (display: none;} will not work because the sidebox heading id is always built from the box id plus Heading. If the id is cover_sidebox, the style rule for it would be
    #cover_sideboxHeading {what: ever;}

  10. #10
    Join Date
    Aug 2010
    Posts
    51
    Plugin Contributions
    0

    Default Re: Custom Sidebox heading issue

    ok, so this is my first custom sidebox, so not sure I did it right, but...

    I followed the instructions from:
    http://www.zen-cart.com/wiki/index.php/Tutorial

    my tpl_cover_sidebox.php looks like this:

    PHP Code:
    <div class="snavIssue">
                <
    img style="border-width:0px;" src="images/PHG/snavIssueTop.gif" alt="On Stands Now" id="ctl00_ctl00_templateBody_imgSNavTop"><div class="snavIssueCopy">
                
        <
    a target="_blank" title="Subscribe Today!" href="http://w1.buysub.com/online/PHG/website"><img border="0" style="border-width:0px;" src="images/PHG/btnVertSubscribe.gif" alt="Subscribe Today!" class="btnSubscribe" id="ctl00_ctl00_templateBody_ucSubscribe_imgBtnVertSubscribe"></a>
        <
    img style="border-width:0px;" src="images/PHG/PHG0611_Cover0_ch.jpg" class="cover" id="ctl00_ctl00_templateBody_ucSubscribe_Image1">
        
    <
    br style="clear: both;">
                <
    div style="margin-top: 12px;" class="snavIssueDivider"></div>
                <
    div onmouseout="sNavOff(this)" onmouseover="sNavOn(this, 'snavIssueOn' )" class="snavIssueOff"><span class="snavLink"><a target="_blank" href="http://w1.buysub.com/online/PHG/website">Subscribe Today!</a></span></div>
                <
    div class="snavIssueDivider"></div>
                <
    div onmouseout="sNavOff(this)" onmouseover="sNavOn(this, 'snavIssueOn' )" class="snavIssueOff"><span class="snavLink"><a href="http://phgmag.com/global/toc/">What' s Inside</a></span></div>
                <div class="snavIssueDivider"></div>
                <div onmouseout="sNavOff(this)" onmouseover="sNavOn(this, '
    snavIssueOn' )" class="snavIssueOff"><span class="snavLink"><a href="http://phgmag.com/archive/">Article Archives</a></span></div>
                <div class="snavIssueDivider"></div>
                <div onmouseout="sNavOff(this)" onmouseover="sNavOn(this, '
    snavIssueOn' )" class="snavIssueOff"><span class="snavLink"><a href="http://phgmag.com/global/contact/">Letters to the Editor</a></span></div>
                </div>
            </div> 
    All newly created files are a part a the custom template PHG_Template.

    I knew I made a mistake somewhere, but it looks fine if I can just solve this heading issue.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Custom Sidebox Wiki - Minor Yet Annoying Issue
    By mrbojangles in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 26 Jun 2013, 06:05 PM
  2. re; removing custom Sidebox heading font
    By HeyIts007 in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 1 Dec 2011, 04:45 PM
  3. Problems with heading & IE/FF issue
    By bellaandsofie in forum Basic Configuration
    Replies: 8
    Last Post: 29 Apr 2009, 10:11 PM
  4. product listing heading issue in IE
    By tmiller in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 25 Oct 2007, 03:45 PM
  5. product listing heading issue
    By iano in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 18 Oct 2006, 06:50 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