Keyword

Drawing of the template category item

  • jeanchristophe
  • jeanchristophe's Avatar Topic Author
  • Offline
  • Junior Member
More
14 years 4 months ago #76397 by jeanchristophe
Drawing of the template category item was created by jeanchristophe
Hello,

I would like to modify the template category item.
I would like to have the pictures to the side of the article and not over.
That's why I would like to change the template.

I would like to know if you have a drawing of it, to find out where what is going where and change it.

Thank you very much
Best regards
Jean-Christophe

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

More
14 years 4 months ago #76398 by Emilija Vojnović
Replied by Emilija Vojnović on topic Drawing of the template category item
hi there.. here is how i have managed to do this

div class="itemBody" wraps around div class="itemImageBlock" and div class="itemFullText". this is my css for it.

div.itemImageBlock {
padding:8px;
float: left;
width: 40%;
margin-top: 0;
margin-right: 0;
margin-bottom: 16px;
margin-left: 0;
}

div.itemFullText {
float: left;
width: 50%;
}

as you can see, i've leaved 10% of the width for additional margins and padding that are already included in the css.

here is the print screen

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

  • jeanchristophe
  • jeanchristophe's Avatar Topic Author
  • Offline
  • Junior Member
More
14 years 4 months ago #76399 by jeanchristophe
Replied by jeanchristophe on topic Drawing of the template category item
I will try this.

Thank you very much

Happy hollydays
Best regards
Jean-Christophe

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

More
14 years 3 months ago #76400 by Lee White
Replied by Lee White on topic Drawing of the template category item
Thankyou so much, this was really helpful to me. I've searching for weeks trying to find this solution...

Mihael Fugaj said:hi there.. here is how i have managed to do this
div class="itemBody" wraps around div class="itemImageBlock" and div class="itemFullText". this is my css for it.

div.itemImageBlock {
padding:8px;
float: left;
width: 40%;
margin-top: 0;
margin-right: 0;
margin-bottom: 16px;
margin-left: 0;
}

div.itemFullText {
float: left;
width: 50%;
}

as you can see, i've leaved 10% of the width for additional margins and padding that are already included in the css.

here is the print screen

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

More
14 years 2 months ago #76401 by HomesteadMommy
Replied by HomesteadMommy on topic Drawing of the template category item
I would like to change this as well. I tried the coding but didn't see any changes...I think i could be placing it in the wrong place. I was using the general template in K2. Is this the right place?
Thanks,
Kim

Mihael Fugaj said:hi there.. here is how i have managed to do this
div class="itemBody" wraps around div class="itemImageBlock" and div class="itemFullText". this is my css for it.

div.itemImageBlock {
padding:8px;
float: left;
width: 40%;
margin-top: 0;
margin-right: 0;
margin-bottom: 16px;
margin-left: 0;
}

div.itemFullText {
float: left;
width: 50%;
}

as you can see, i've leaved 10% of the width for additional margins and padding that are already included in the css.

here is the print screen

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

More
14 years 2 months ago #76402 by piperchick
Replied by piperchick on topic Drawing of the template category item
HomeSteadMommy,

I just looked at your site. I can't see where you want to do this? Are you trying to do it for your video within the article-view?

If you don't already use firebug, you might want to try it. It is a FireFox add-on and it will inspect elements of your web site and tell you exactly where to make the changes.

That said, some of the templates have their own css which over-ride the default. You may want to try looking in templates\template name\html\com_k2\templates (change "template name" to your template name.)

Don't forget to include a link so that we may help you better! (disclaimer: I am not an expert, but find these forums very helpful).


HomesteadMommy said:I would like to change this as well. I tried the coding but didn't see any changes...I think i could be placing it in the wrong place. I was using the general template in K2. Is this the right place? Thanks, Kim

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

More
14 years 2 months ago #76403 by HomesteadMommy
Replied by HomesteadMommy on topic Drawing of the template category item
Thanks for having a look. I do have firebug and will keep working on my site today. Hard getting a block of time long enough with little ones lol.

What I would like is when you open the articles (I'm using catalog mode) I would like the photos to be to the side and not top. You can see how they come up on my site here. I would like them to look like this site.

Before I changed to K2 I had the Imagesized plugin and it did a great job for this! Exactly what I wanted, but it doesn't seem to work with K2.

piperchick said:HomeSteadMommy,
I just looked at your site. I can't see where you want to do this? Are you trying to do it for your video within the article-view?

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

More
14 years 2 months ago #76404 by Emilija Vojnović
Replied by Emilija Vojnović on topic Drawing of the template category item
Those fields are extra fields?

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

More
14 years 2 months ago #76405 by piperchick
Replied by piperchick on topic Drawing of the template category item
I have just played with this in Firebug and got it to work. I have attached a screen shot.

All I did was a a float: left; to the div.catItemImageBlock in k2.css

div.catItemImageBlock {
float:left;
margin:0 0 16px;
padding:8px;
}

components/com_k2/css/k2.css

You may need to finesse a bit as Mihael has indicated.

I hope this helps.

HomesteadMommy said:Thanks for having a look. I do have firebug and will keep working on my site today. Hard getting a block of time long enough with little ones lol. What I would like is when you open the articles (I'm using catalog mode) I would like the photos to be to the side and not top. You can see how they come up on my site here. I would like them to look like this site.
Before I changed to K2 I had the Imagesized plugin and it did a great job for this! Exactly what I wanted, but it doesn't seem to work with K2.

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

More
14 years 2 months ago #76406 by HomesteadMommy
Replied by HomesteadMommy on topic Drawing of the template category item
Thanks!! I'll give it a try. :-)

piperchick said:I have just played with this in Firebug and got it to work. I have attached a screen shot.

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


Powered by Kunena Forum