Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Feb 2007
    Posts
    107
    Plugin Contributions
    0

    Default Unusual Sidebox Class Question

    Hello,
    I have gotten quite far with installation, setup and basic customization by reading through the forums, but I'm stuck on a css/php issue that I just can't figure out nor find any forum posts about.

    The site (which is very much not finished): http://www.puppycoatjunction.com/catalog/

    What I'm trying to do:

    I would like to turn the link text bold for the Information sidebox, the New Products sidebox, and other sideboxes' link texts.
    I know how to set a. classes in the css file to have every link on every page bold, but as the site develops there will be places where this will look very bad. I also like the look of my dropdown subcategories as they are now (not bold), so setting a global a. class is not desired.

    What I've tried:
    I viewed page source and saw that <a class="category-top"> was assigned to all the href links in my two categories boxes, so I created a section of css coding that is:
    a.category-top:link {font-weight: bold; color: #ff66cc;}
    and also identically-formatted styles for hover, visited, active, etc.... It worked fine.

    But there are no href classes assigned to any of the other sideboxes and that is where it got tricky for me. I didn't figure this would work, but before I bothered anyone on the forums I tried setting a. classes for
    a.SideBoxContainer
    a.rightBoxContainer (and the left one too)
    a.SideBoxContent

    and a couple of others, but it's not working. I used the Developers Tool Kit in Admin to see how/where the "category-top" class was assigned (which worked on my cats. box) in the php file that controlled the categories box. I was thinking that if I figured that out I could just copy it and drop it into the other sidebox'es php files, but none of the other sidebox files are similar enough to the tpl_categories.php (where I found "category-top") for me to be able to figure out where to assign the class.

    I am completely php ignorant, though I understand css fairly well. If anyone can help me through this I would very much appreciate it.

  2. #2
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,888
    Plugin Contributions
    0

    Default Re: Unusual Sidebox Class Question

    You were getting close:
    Code:
    .sideBoxContent a {font-weight: bold;}
    this will cover all of the sideboxes
    Mike
    AEIIA - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  3. #3
    Join Date
    Feb 2007
    Posts
    107
    Plugin Contributions
    0

    Default Re: Unusual Sidebox Class Question

    Oh sheesh, after all I went through trying to get this to work, I can't believe it was that simple! Now I feel like a total idiot.

    Thank you, Mike, it all works perfectly now

  4. #4
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,888
    Plugin Contributions
    0

    Default Re: Unusual Sidebox Class Question

    We've all been there
    Mike
    AEIIA - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

 

 

Similar Threads

  1. Programming Question about the Order class
    By tcarden in forum General Questions
    Replies: 2
    Last Post: 24 Jul 2013, 08:02 PM
  2. Unusual discount question
    By Athens Collectibles in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 10 Nov 2011, 08:56 PM
  3. Creating a New Class to Control single sidebox
    By JosephKola in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 20 Nov 2008, 04:44 PM
  4. Advanced Question - Class cannot store variable
    By jaycode in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 24 Aug 2007, 04:53 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