Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Nov 2008
    Posts
    71
    Plugin Contributions
    0

    Default Changing top-level category images on home page only

    I need to manipulate the images for my top category levels on the home page only. I've become quite comfortable with the #indexHomeBody method of manipulation via the stylesheet, but I've run into some styling that's not in the stylesheet that I can't seem to isolate.

    Here's how I want the homepage to look.


    Here's how it currently looks.

    The .categoryListBoxContents class has an inline style of {width: 50%}, but I want to make the width a px unit and most-likely position it absolutely. Since this styling is in the markup and not the stylesheet, I'm not sure how to change this just for the home page.

    Is there somewhere in the Admin that this is available? I'm pretty sure I had to change the width value to 50% from 33%, but I can't find where I did it for the life of me.

    Keep in mind that the gray middle box is not a link like the other two, so I don't want to make that an empty category to style it correctly.

  2. #2
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Changing top-level category images on home page only

    This is do-able but what you might find easier is to disable categories on the home page via the admin panel. Then hard code the images and links you require by adding the code to the main page by the define pages editor in the admin panel.

    Just remember that if you install a SEO or uri re-write mod then you may have to change the links in this code

  3. #3
    Join Date
    Nov 2008
    Posts
    71
    Plugin Contributions
    0

    Default Re: Changing top-level category images on home page only

    I'll try that, thanks.

    Is there somewhere in the admin panel that I can change the category images on the home page only? My other pages have the categories at 33% width, and I'm pretty sure I had to change it to 50% on the home page. I've made so many changes lately that I can't even remember where or if I did this!

  4. #4
    Join Date
    Nov 2008
    Posts
    71
    Plugin Contributions
    0

    Default Re: Changing top-level category images on home page only

    Let me ask you this...

    Clearly I've already designed this page (as seen at sweetjujubead dot com), so is there a way I can simply add this code to the define pages editor and apply my other style sheet to this page only? I guess we've already declared that there's no way that we know of to have a separate style sheet for the home page, but I figured I'd ask. I don't want to have to reinvent the wheel if I don't have to. I could always just add this to the styles.css if I had to. Would it be a bad idea to use custom markup for this?

    And I don't even know what a uri re-write mod is, so I don't think I'll be adding it anytime soon

  5. #5
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Changing top-level category images on home page only

    Well first of all you turn categories of on the home page.

    admin - configuration - layout settings

    Categories - Always Show on Main Page
    Main Page - Opens with Category

    Both to 0.

    What I think you will have on your main page then is just the header and anything that you put in via the define pages editor.

    So, you can put the various boxes in by the define pages editor. Whatever code you have to produce the three images on the other page put into the define pages editor. You are only adding the three images so I don't think the stylesheet is really an issue.

    By the way it was pointed out to me in another post that the way to style the main page is to apply all the required styles to the <div> #indexHomeBody. So , it is do-able.

  6. #6
    Join Date
    Nov 2008
    Posts
    71
    Plugin Contributions
    0

    Default Re: Changing top-level category images on home page only

    OK I'll try this out. And yes, you pointed the #indexHomeBody trick out to me in another post, and I've been using it quite successfully since! The problem with this particular instance is that part of the styling is in the <td> tag in the markup and not on the stylesheet. But it sounds like your define pages suggestion is definitely the easiest.

 

 

Similar Threads

  1. Replies: 4
    Last Post: 1 Jul 2015, 06:51 PM
  2. v154 Showing top level category images on home page
    By swguy in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 2 May 2015, 06:40 PM
  3. All Top Level Category Page
    By philip937 in forum General Questions
    Replies: 1
    Last Post: 24 Jan 2013, 02:47 PM
  4. Category box list only top and 2nd level
    By theng6987 in forum Basic Configuration
    Replies: 1
    Last Post: 7 Dec 2007, 08:25 AM

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