- Posts: 27
COMMUNITY FORUM
How to make k2 item signature?
- Marko Jovovic
-
Topic Author
- Offline
- Junior Member
Less
More
10 years 4 months ago #135909
by Marko Jovovic
How to make k2 item signature? was created by Marko Jovovic
I want to add SAME TEXT to be at the end of all my k2 articles.
So it can be something like "Read all sports results live on www...."
And i want that line to be on every article that my journalists publish on my website.
Is that possible?
Can i do that throught adding some code inside item.php ? And what the code should be ?
thanks :)
So it can be something like "Read all sports results live on www...."
And i want that line to be on every article that my journalists publish on my website.
Is that possible?
Can i do that throught adding some code inside item.php ? And what the code should be ?
thanks :)
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
10 years 4 months ago #135926
by Krikor Boghossian
Replied by Krikor Boghossian on topic How to make k2 item signature?
First of all read this post.
getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates
Then in the item.php in the itemFullText div paste the text, above the closing div tag. As for markup and styling you can choose from your template's typography section.
getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates
Then in the item.php in the itemFullText div paste the text, above the closing div tag. As for markup and styling you can choose from your template's typography section.
Please Log in or Create an account to join the conversation.
- Marko Jovovic
-
Topic Author
- Offline
- Junior Member
Less
More
- Posts: 27
10 years 4 months ago #135932
by Marko Jovovic
Replied by Marko Jovovic on topic How to make k2 item signature?
I will copy you from the line 137 to the line 149:
</div>
<?php endif; ?>
<?php if(!empty($this->item->fulltext)): ?>
<?php if($params->get('itemIntroText')): ?>
<div class="itemIntroText">
<?php echo $this->item->introtext; ?>
</div>
<?php endif; ?>
<?php endif; ?>
<?php if($params->get('itemFullText')): ?>
<div class="itemFullText">
<?php echo (!empty($this->item->fulltext)) ? $this->item->fulltext : $this->item->introtext; ?>
</div>
Where to put text here ?
I want to put this: "Sve rezultate uzivo mozete pratiti na sportinside.me/rezultati"
</div>
<?php endif; ?>
<?php if(!empty($this->item->fulltext)): ?>
<?php if($params->get('itemIntroText')): ?>
<div class="itemIntroText">
<?php echo $this->item->introtext; ?>
</div>
<?php endif; ?>
<?php endif; ?>
<?php if($params->get('itemFullText')): ?>
<div class="itemFullText">
<?php echo (!empty($this->item->fulltext)) ? $this->item->fulltext : $this->item->introtext; ?>
</div>
Where to put text here ?
I want to put this: "Sve rezultate uzivo mozete pratiti na sportinside.me/rezultati"
Please Log in or Create an account to join the conversation.
- Marko Jovovic
-
Topic Author
- Offline
- Junior Member
Less
More
- Posts: 27
10 years 4 months ago #135933
by Marko Jovovic
Replied by Marko Jovovic on topic How to make k2 item signature?
I solved the problem. Found where to put it.
Thank you !
As im here already can i ask you one more question.
I want my image credits and image caption to be beneath the picture and to be CENTERED beneath the picture.
Is there any code you can give me to enter in my k2.css or item.php or anything ?
You can see how image credits and image caption are located now on this link : sportinside.me/ostali-sportovi/rukomet/nasi-najbolji-rukometasi-poceli-pripreme-u-baru .
You see:
Foto: Sasa Matic
handballme
It is too much separated.
I would like it to be both beneath the picture located. is that possible ?
thanks
Thank you !
As im here already can i ask you one more question.
I want my image credits and image caption to be beneath the picture and to be CENTERED beneath the picture.
Is there any code you can give me to enter in my k2.css or item.php or anything ?
You can see how image credits and image caption are located now on this link : sportinside.me/ostali-sportovi/rukomet/nasi-najbolji-rukometasi-poceli-pripreme-u-baru .
You see:
Foto: Sasa Matic
handballme
It is too much separated.
I would like it to be both beneath the picture located. is that possible ?
thanks
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
10 years 4 months ago #135957
by Krikor Boghossian
Replied by Krikor Boghossian on topic How to make k2 item signature?
This has to be addressed by the template's developer.
PS. Yes you will have to edit your k2.css file
PS. Yes you will have to edit your k2.css file
Please Log in or Create an account to join the conversation.