Komento justification ?

GK User
Mon Mar 16, 2015 2:41 pm
Hello,

we just install Komento in our develppement website, but there is a strange behavior ....

Komento takes the entire width of the screen.
But only with a K2 article. With Joomla article, it is ok.

So we contacted StackIdeas, but apparently, the bug come from the template, not from the component Komento.

Do you think there is a possibility to fix this ?

See my screenshot for more understanding.

Regard.

2015-03-13_12h45_37.jpg
User avatar
Expert Boarder

GK User
Mon Mar 16, 2015 6:43 pm
Hi,
it looks that commento uses full width rather than area under article..
I think it can be fixed using for example max-width
User avatar
Platinum Boarder

GK User
Mon Mar 16, 2015 7:46 pm
Hello,

thank for your answer.

So I understand, but why it is working with Joomla article ?

Komento uses full width with K2 article, but not with Joomla article. It is strange. Are you sure about that ?

And where can I put the max-width (and with what settings) ?

Regard.
User avatar
Expert Boarder

GK User
Mon Mar 16, 2015 7:53 pm
It is outside the div :
Code: Select all
<div class="item-content">

Why ?
User avatar
Expert Boarder

GK User
Mon Mar 16, 2015 8:10 pm
Why?

Why you asking me. I didn't build that template, "dziudek" did, like always. he is also moderator sometimes.

So to be sure, Komento you're using inside articles or K2 items?
User avatar
Platinum Boarder

GK User
Mon Mar 16, 2015 8:11 pm
And where can I put the max-width (and with what settings) ?

In override.css - like always, use for class generated/used by Komento.
User avatar
Platinum Boarder

GK User
Mon Mar 16, 2015 8:18 pm
dieudonne wrote:Komento takes the entire width of the screen.
But only with a K2 article. With Joomla article, it is ok.

It is clear for me... not for you ?

An you say :
Why you asking me. I didn't build that template, "dziudek" did, like always.

Your answer is not contructive (but stupid) ! I post this thread on the forum. I don't ask to you personally... Maybe it is time for you to go to sleep... :shock: !


So, now, what can we do to fix this ? Is anyone else have more skills to fix this bug ?

Regard.
User avatar
Expert Boarder

GK User
Tue Mar 17, 2015 12:03 am
Just add URL, and we will think
User avatar
Platinum Boarder

GK User
Tue Mar 17, 2015 10:41 am
Yes of course.
Here it is : http://www.spoonconcept.com/world-in-action/finance/les-rouages-diaboliques-de-la-dette-grecque-catastroika

Take a look, and see that Komento is outside the div, but must be inside.

Regard.
User avatar
Expert Boarder

GK User
Tue Mar 17, 2015 10:54 am
And here you can see Komento in a normal state (with a Joomla article)
http://www.spoonconcept.com/world-in-action/patte-blanche

Regard.
User avatar
Expert Boarder

GK User
Thu Mar 19, 2015 10:40 pm
right now both I see in content area.
But I think it's because you used
#section-kmt {
display: block;
float: none !important;
margin: 0 auto !important;
max-width: 960px;
width: 100%;
}
User avatar
Platinum Boarder

GK User
Fri Mar 20, 2015 8:48 am
Yes, the solution is to add the following CSS code under template settings -> advanced settings -> custom CSS code option:

Code: Select all
#section-kmt {
margin: 0 auto!important;
max-width: 960px;
width: 100%;
float: none!important;
display: block;
}


Big thanks to Tomasz Dziuda.
Regard.
User avatar
Expert Boarder

GK User
Sat Feb 18, 2017 11:51 pm
Argh, with new version of Komento (version3), this tip isn't working anymore.

And I can't find a other way...

If someone have a idea to re-fix this, it would be really great.

Regard.
User avatar
Expert Boarder

GK User
Sat Feb 18, 2017 11:58 pm
dieudonne wrote:Argh, with new version of Komento (version3), this tip isn't working anymore.

And I can't find a other way...

If someone have a idea to re-fix this, it would be really great.

Regard.


Ok the solution is simply to replace #section-kmt by #kt

Code: Select all
#kt {
margin: 0 auto!important;
max-width: 960px;
width: 100%;
float: none!important;
display: block;
}


Have a nice day.
User avatar
Expert Boarder


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.