Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Feb 2010
    Posts
    26
    Plugin Contributions
    0

    Default category headings

    hi guys,
    I wanted to get rid of the category headings so
    I assigned a new css tag to the category headings, so for instance
    accessories now has a <h7>accessories</h7> which has a value of
    h7 {
    margin: 0.2em 0.3em 0.3em 0;
    display: none;
    }
    works great in firefox and safari but I can still see it in IE

    any ideas?

    site is at www.littleredsky.com

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,269
    Plugin Contributions
    3

    Default Re: category headings

    You could also add: color: transparent;

    There has been some discussion about using declarations such as:

    visibility: hidden
    display: none
    color: transparent

    in relation to SE ranking.

    I use the above in many places on my sites and as long as you don't use them on H1 tags and other important features, it should be OK to hide the category headers.
    20 years a Zencart User

  3. #3
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: category headings

    #indexCategoriesHeading {display:none;} should work, too.

  4. #4
    Join Date
    Feb 2010
    Posts
    26
    Plugin Contributions
    0

    Default Re: category headings

    Thanks Guys

    but both those ideas still work in safari and firefox but not in IE for some reason.
    Investigating deeper i changed
    h7 {
    margin: 0.2em 0.3em 0.3em 0;
    display: none;
    }
    to
    h7 {
    margin: 0.2em 0.3em 0.3em 0;
    color: #FF0000;
    }
    and sure enough it showed up red in firefox and safari but continued to use the body text colour in IE.
    So to check I changed the body text colour and it changed in IE.
    Its seems to be ignoring the other declarations.
    Any more ideas?

  5. #5
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: category headings

    I would remove the h7 stuff and just add #indexCategoriesHeading {display:none;}. I'm sure it will work in all browsers.

  6. #6
    Join Date
    Feb 2010
    Posts
    26
    Plugin Contributions
    0

    Default Re: category headings

    Hi stevesh,

    thanks again for replying mate
    However this is not working.
    I have changed my tags in
    /custom/templates/tpl_index_categories.php
    from

    <h7 id="indexCategoriesHeading"><?php echo HEADING_TITLE; ?></h7>

    <h7 id="indexCategoriesHeading"><?php echo $breadcrumb->last(); ?></h7>

    back to

    <h1 id="indexCategoriesHeading"><?php echo HEADING_TITLE; ?></h1>

    <h1 id="indexCategoriesHeading"><?php echo $breadcrumb->last(); ?></h1>

    & have now removed my h7 tags in the css
    h7 {
    margin: 0.2em 0.3em 0.3em 0;
    display: none;
    }

    and have added

    #indexCategoriesHeading {display:none;}

    #productListHeading {display:none;}


    again works fine in firefox and safari but headings are very visible in
    IE 6 & 7 ....haven't tried 8

    Thanks again..any other ideas and you time is appreciated

 

 

Similar Threads

  1. v150 Want to eliminate Category Text Headings on category page
    By Antigravity in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 27 Mar 2012, 06:15 AM
  2. Category Headings
    By gprit in forum Customization from the Admin
    Replies: 0
    Last Post: 5 Jul 2010, 10:25 AM
  3. category & sub-category on headings of pages
    By caustic in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 2 Oct 2009, 05:18 PM
  4. Static Category Headings??
    By lmw1 in forum Basic Configuration
    Replies: 3
    Last Post: 6 Feb 2008, 07:28 PM
  5. removing category headings
    By tarynhipp in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 3 Jan 2007, 06:52 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