Keyword

Children category styling

  • trogladyte
  • trogladyte's Avatar Topic Author
  • Offline
  • Senior Member
More
8 years 5 months ago #149498 by trogladyte
Children category styling was created by trogladyte
www.ckdev.info/twt/things-to-do/drink

I'm starting to like K2 and what it can do (this is my first installation) but it's so complex and, for a new user, unintuitive in setting it up. And the documentation isn't detailed.

I can make an article and do this, but it must be able to be done with K2 I assume. The out-of-the-box styling is ugly, but I don't know where to alter it. Firstly I want the images much bigger - currently it's 100px and I've changed every setting I can find that specifies 100px without making a difference. I also want to get rid of that nasty background that seems to be color #F7FAFE. Again, no idea where to access this setting.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 5 months ago #149525 by Krikor Boghossian
Replied by Krikor Boghossian on topic Children category styling
The image needs to be reuploaded so it can be resized to the new size.
The background is generated from CSS in this rule.
div.subCategory {
    background: #f7fafe;
    border: 1px solid #ddd;
    margin: 4px;
    padding: 8px;
}
k2.css line 371.

Remember to override the k2.css file. Move it to the css folder of your template.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • trogladyte
  • trogladyte's Avatar Topic Author
  • Offline
  • Senior Member
More
8 years 4 months ago #149640 by trogladyte
Replied by trogladyte on topic Children category styling
www.ckdev.info/twt/things-to-do/drink

I copied the whole k2.css file to templates/<my_template>/css, then edited it. Nothing. I thought I'd done according to your instructions. I also added the whole CSS snippet you quote to the end of the template.css file, but that had no effect either.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 4 months ago #149660 by Krikor Boghossian
Replied by Krikor Boghossian on topic Children category styling
The snippet I quoted is where the background is being generated.
There is no need to copy it, you need to edit it.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum