Forums / Templates, Stylesheets, Page Layout / where to find $box_id?

where to find $box_id?

Locked

Started by maxvenum on 4 Aug 2009, 11:07 PM · Views: 762

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
4 Aug 2009, 11:07 PM
#1
maxvenum avatar

maxvenum

New Zenner

Join Date:
Jul 2009
Location:
San Jose, CA
Posts:
9
Plugin Contributions:
0

where to find $box_id?

I am having trouble finding what $box_id is for various different sideboxes. I see it is set in the column_left.php and column_right.php files:

$box_id = zen_get_box_id($column_left_display->fields['layout_box_name']); )

but I don't see where to find a value I can use in CSS. For example, the sidebox heading is created in includes\templates\CUSTOM\common\tpl_box_default_left.php:

<h3 class="leftBoxHeading" id="<?php echo str_replace('_', '-', $box_id) . 'Heading'; ?>"><?php echo $title; ?></h3>

The $box_id is used in the id field. If I want to style only the category box heading, I need the category $box_id. I noticed the cPath number for products and categories could be found in the administration panel somewhere. Is this the case with $box_id?

Thanks,
Tobyn

4 Aug 2009, 11:40 PM
#2
stevesh avatar

stevesh

Black Belt

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

Re: where to find $box_id?

$box_id has nothing to do with CSS.

Install the Firefox browser, then the Web Developer plugin.

Hit CTRL - SHIFT - Y , and hover over sections of the page to see the applicable css ids and classes for the various sideboxes.