If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / Need to turn off "Link Heading" in Category Side box

Need to turn off "Link Heading" in Category Side box

Locked

Started by digi on 21 Oct 2008, 4:37 PM · Views: 1,746

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
21 Oct 2008, 4:37 PM
#1
digi avatar

digi

New Zenner

Join Date:
Aug 2005
Posts:
29
Plugin Contributions:
0

Post #1 by digi

Can someone please tell me where to find these two words? I looked in admin and TPL_categories.php. Don't know where to look from here.

Thanks in advance,

Jan

21 Oct 2008, 4:49 PM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Post #2 by schoolboy

Find strings such as these using:-

ADMIN...TOOLS...DEVELOPERS TOOL KIT

There you will see various input fields - I generally use the last one. Type in the text string to search for, select what file sets (catalog, admin, or both) you wish to include in the search, and click the button.

If the text exists as you typed, the results will show what PHP files contain it, and their paths.

20 years a Zencart User

21 Oct 2008, 5:00 PM
#3
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Post #3 by gjh42

I can't tell for sure without an actual link to your site, but it looks like you have installed Categories Dressing and then disabled most of its features. The default installation includes demo headings in the category and link sections.
If you don't want to use any of Cat Dressing, you should delete the tpl_categories.php in
/includes/templates/your_template/sideboxes/ (not the one in
/includes/templates/template_default/sideboxes/).
If you just want to eliminate the "Link Heading", find near the bottom of tpl_categories.php```php
if (SHOW_CATEGORIES_BOX_FEATURED_PRODUCTS == 'true') {
$show_this = $db->Execute("select products_id from " . TABLE_FEATURED . " where status= 1 limit 1");
if ($show_this->RecordCount() > 0) {
//$content .= '<span class="catBoxHeading1">' . (file_exists(DIR_WS_TEMPLATE_IMAGES . 'cathead-featured.gif') ? zen_image(DIR_WS_TEMPLATE_IMAGES . 'cathead-featured.gif') . '</span>':'Link Heading</span>' . $disp_block_head) . "\n";// categories dressing - uncomment this line for heading above link
$content .= '<a class="category-links" href="' . zen_href_link(FILENAME_FEATURED_PRODUCTS) . '">' . CATEGORIES_BOX_HEADING_FEATURED_PRODUCTS . '</a>' . $disp_block . "\n";
}
}
if (SHOW_CATEGORIES_BOX_PRODUCTS_ALL == 'true') {
$content .= '<span class="catBoxHeading1">' . (file_exists(DIR_WS_TEMPLATE_IMAGES . 'cathead-all.gif') ? zen_image(DIR_WS_TEMPLATE_IMAGES . 'cathead-all.gif') . '</span>':'Link Heading</span>' . $disp_block_head) . "\n";// categories dressing - uncomment this line for heading above link
$content .= '<a class="category-links" href="' . zen_href_link(FILENAME_PRODUCTS_ALL) . '">' . CATEGORIES_BOX_HEADING_PRODUCTS_ALL . '</a>' . "\n";
}

Comment out the last catBoxHeading1 line like the one above it:```php
      //$content .= '<span class="catBoxHeading1">' . (file_exists(DIR_WS_TEMPLATE_IMAGES . 'cathead-all.gif') ? zen_image(DIR_WS_TEMPLATE_IMAGES . 'cathead-all.gif') . '</span>':'Link Heading</span>' . $disp_block_head) . "\n";// categories dressing - uncomment this line for heading above link 
21 Oct 2008, 5:32 PM
#4
digi avatar

digi

New Zenner

Join Date:
Aug 2005
Posts:
29
Plugin Contributions:
0

Post #4 by digi

Thank you very much. That was the issue.:hug:
Jan