Keyword

K2 category page makes theme's logo image smaller

  • Surdo
  • Surdo's Avatar Topic Author
  • Offline
  • Junior Member
More
7 years 9 months ago #156579 by Surdo
Hello,

I have a problem that I've not been able to solve. On a site that I'm constructing, a page that contains a K2 category listing, somehow redefines the size of the theme's logo image on that page. If you look at the logo at the top left of this page:

psicologiabrasileira.com.br

and then go to the page in question:

psicologiabrasileira.com.br/index.php/blog

you'll see what I mean, the logo gets smaller. The other pages without K2 categories are unaffected.

I've tried to tweak css settings for the logo-img class in firebug but couldn't get anything to work. I also can't see any javascript errors.

Any suggestion please?

Thank you

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

  • Surdo
  • Surdo's Avatar Topic Author
  • Offline
  • Junior Member
More
7 years 9 months ago #156580 by Surdo
It must have something to do with the way the logo image is selected. I do have two types of logo, one for large screens and one for small. This is usually controlled by css code such as the following:

@media (min-width: 1280px) {
.logo-control .logo-img-sm {
display: none;
}
.logo-control .logo-img {
display: block;
}
}

But this doesn't seem to function properly when the K2 Category listing is called on the page.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 8 months ago #156599 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 category page makes theme's logo image smaller
I see that you figured this out.
However this is a template issue, unrelated to K2.
For commercial templates please address this issue to the template's developer.

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

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

  • Surdo
  • Surdo's Avatar Topic Author
  • Offline
  • Junior Member
More
7 years 8 months ago #156603 by Surdo
Thanks Krikor. Yes I believe it was and sorry I didn't have time to reply here. I'm using a Joomlart template and what was needed was the following in the custom.css file:

.com_k2 img { max-width:none!important; }

All the best,

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 8 months ago #156614 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 category page makes theme's logo image smaller
Best of luck with your project :)
.com_k2 img { max-width:none!important; }

might cause issues if the images uploaded through the editor (.itemIntrotext img) don't have a max-width set.

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