Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Sidebox heading... yet again

Sidebox heading... yet again

Views: 520

Results 1 to 5 of 5
5 Oct 2011, 11:17 AM
#1
sethf avatar

sethf

Zen Follower

Join Date:
Sep 2011
Posts:
228
Plugin Contributions:
0

Sidebox heading... yet again

Hi

Alright, so I know that this css input will disable the heading of BLANK SIDEBOX 2 (the one I haven't renamed) completely:

#blanksideboxHeading {display: none;}

But, when I duplicate the Blank Sidebox, and change the php name to blank_sidebox3, what css code can I input to disable the heading on this new sidebox? I tried:

#blanksidebox3Heading {display: none;} and
#blanksideboxHeading3 {display: none;}

But it doesn't do the trick. The sidebox heading still shows.
And, if I delete all the text in the language file, the heading still shows, just without text in it.

Any thoughts?

All help is greatly appreciated

Kind regards
S

5 Oct 2011, 12:09 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Sidebox heading... yet again

Did you changes all instances of blanksidebox in all the mod files to blanksidebox3 ?

5 Oct 2011, 1:09 PM
#3
sethf avatar

sethf

Zen Follower

Join Date:
Sep 2011
Posts:
228
Plugin Contributions:
0

Re: Sidebox heading... yet again

stevesh:

Did you changes all instances of blanksidebox in all the mod files to blanksidebox3 ?

\includes\languages\english\extra_definitions\blank_sidebox3_define.php:

<?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_sidebox3.php 2007-05-26 kuroi $
 */

define('BOX_HEADING_BLANK_SIDEBOX3', 'Blank Sidebox Header');
define('TEXT_BLANK_SIDEBOX3', 'Replace this text with your HTML content.');

?>

\includes\modules\sideboxes\blank_sidebox3.php

<?php
/**
 * blank sidebox - allows a blank sidebox to be added to your site
 *
 * @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_sidebox3.php 2007-05-26 kuroi $
 */

  // test if box should display
  $show_blank_sidebox3 = true;

  if ($show_blank_sidebox3 == true) {
      require($template->get_template_dir('tpl_blank_sidebox3.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_blank_sidebox3.php');
      $title =  BOX_HEADING_BLANK_SIDEBOX3;
      $title_link = false;
      require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
 }
?>

\includes\templates\template_default\sideboxes\tpl_blank_sidebox3.php

<?php
/**
 * blank sidebox - allows a blank sidebox to be added to your site
 *
 * @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_sidebox3.php 2007-05-26 kuroi $
 */

  $content = '';
  $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';

  // Replace the text and HTML tags between the apostophes on lines 19 and 20.
  // Use as many or as few lines using this model as you need for your custom content.
  // If you have a multilingual site define your text in the languages/YOUR_LANGUAGE/extra_definitions/blank_sidebox3_defines.php and include it as shown in line 19.
  // If your site is monolingual, you can put the text right here as shown on line 20 (and nobody will know!)
  $content .= '<p>' . TEXT_BLANK_SIDEBOX3 . '</p>';
  $content .= '<p>You can include text, links, images, HTML markup and even PHP code</p>';

  $content .= '</div>';
?>

I can't find the place I've missed.. perhaps I'm not fully awake today.

Thanks for your help.
S

5 Oct 2011, 2:35 PM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Sidebox heading... yet again

I did exactly as you did to those files, and #blanksidebox3Heading {display: none;} works for me.

5 Oct 2011, 6:13 PM
#5
sethf avatar

sethf

Zen Follower

Join Date:
Sep 2011
Posts:
228
Plugin Contributions:
0

Re: Sidebox heading... yet again

stevesh:

I did exactly as you did to those files, and #blanksidebox3Heading {display: none;} works for me.

Got it fixed thanks, for some reason my browser wasn't refreshing the page even though I reloaded it quite a bit.