- Posts: 17
COMMUNITY FORUM
[SOLVED] Main image only appears as pop up
- Andy
- Topic Author
- Offline
- New Member
Less
More
10 years 4 months ago - 10 years 4 months ago #128471
by Andy
[SOLVED] Main image only appears as pop up was created by Andy
Please Log in or Create an account to join the conversation.
- P
- Offline
- New Member
Less
More
- Posts: 12
10 years 4 months ago #128472
by P
Replied by P on topic Re: Main image only appears as pop up
Do you mean that image appears always above text even if when we scroll down the text;
I ask you because i have this problem and i don't want to open new topic.
I use Joomla 3.2.2, K2 2.6.8 and Bedava template. I do tests in xampp.
If anyone knows let give specific, clear instructions because i am new in Joomla.
I can make changes in files if someone tell me where and what to do.
Thank you and sorry for my english.
I ask you because i have this problem and i don't want to open new topic.
I use Joomla 3.2.2, K2 2.6.8 and Bedava template. I do tests in xampp.
If anyone knows let give specific, clear instructions because i am new in Joomla.
I can make changes in files if someone tell me where and what to do.
Thank you and sorry for my english.
Please Log in or Create an account to join the conversation.
- Andy
- Topic Author
- Offline
- New Member
Less
More
- Posts: 17
10 years 4 months ago #128473
by Andy
Replied by Andy on topic Re: Main image only appears as pop up
Hi ya! Now you can see the image. Is this the same problem you have?
Please Log in or Create an account to join the conversation.
- P
- Offline
- New Member
Less
More
- Posts: 12
10 years 4 months ago - 10 years 4 months ago #128474
by P
Replied by P on topic Re: Main image only appears as pop up
Yes exactly the same.
Please Log in or Create an account to join the conversation.
- Lefteris
- Offline
- Moderator
Less
More
- Posts: 8743
10 years 4 months ago #128475
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic Re: Main image only appears as pop up
@Andy, @P
Hi. It seems that both of you are using a template which causes this. Usually templates using Bootstrap conflict with the default modal implementation of Joomla!. Try to create override for the item.php ( or edit the existing one ) and just remove the class "modal" from the image link. This should fix your issue.
Hi. It seems that both of you are using a template which causes this. Usually templates using Bootstrap conflict with the default modal implementation of Joomla!. Try to create override for the item.php ( or edit the existing one ) and just remove the class "modal" from the image link. This should fix your issue.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- P
- Offline
- New Member
Less
More
- Posts: 12
10 years 4 months ago #128476
by P
Replied by P on topic Re: Main image only appears as pop up
Hi Lefteris and thank you for your response.
I am not very familiar to make these changes, i am new in all this...so i need a bit more analytic
instructions about how to:
1) create override for the item.php (or edit the existing one)
2) remove the class "modal" from the image link
Sorry but i am amateur in this.
Thank you.
I am not very familiar to make these changes, i am new in all this...so i need a bit more analytic
instructions about how to:
1) create override for the item.php (or edit the existing one)
2) remove the class "modal" from the image link
Sorry but i am amateur in this.
Thank you.
Please Log in or Create an account to join the conversation.
- Lefteris
- Offline
- Moderator
Less
More
- Posts: 8743
10 years 4 months ago #128477
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic Re: Main image only appears as pop up
It's fine:
1. getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates . Note that your template might be already using overrides. In that case you just need to edit them.
2. In item.php, line 209, remove the following part:
1. getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates . Note that your template might be already using overrides. In that case you just need to edit them.
2. In item.php, line 209, remove the following part:
class="modal"
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Andy
- Topic Author
- Offline
- New Member
Less
More
- Posts: 17
10 years 4 months ago #128478
by Andy
Replied by Andy on topic Re: Main image only appears as pop up
Oh you star!!!!!!! Thank you!!!!! :woohoo:
/templates/YOURTEMPLATE/html/com_k2/default/item.php
/templates/YOURTEMPLATE/html/com_k2/default/item.php
Please Log in or Create an account to join the conversation.
- P
- Offline
- New Member
Less
More
- Posts: 12
10 years 4 months ago #128479
by P
Replied by P on topic Re: Main image only appears as pop up
1st question:
do i copy all the contents of folder /components/com_k2/templates/ to folder
templates/YOURTEMPLATE/html/com_k2/ or only the file item.php;
2nd question
In file item.php, from this code:
<span class="itemImage">
<a class="modal" rel="{handler: 'image'}" href="<?php echo $this->item->imageXLarge; ?>"
title="<?php echo JText::_('K2_CLICK_TO_PREVIEW_IMAGE'); ?>">
<img src="<?php echo $this->item->image; ?>" alt="<?php if(!empty($this->item->image_caption))
echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo
K2HelperUtilities::cleanHtml($this->item->title); ?>" style="width:<?php echo
$this->item->imageWidth; ?>px; height:auto;" />
</a>
</span>
i only remove the class="modal" ;
do i copy all the contents of folder /components/com_k2/templates/ to folder
templates/YOURTEMPLATE/html/com_k2/ or only the file item.php;
2nd question
In file item.php, from this code:
<span class="itemImage">
<a class="modal" rel="{handler: 'image'}" href="<?php echo $this->item->imageXLarge; ?>"
title="<?php echo JText::_('K2_CLICK_TO_PREVIEW_IMAGE'); ?>">
<img src="<?php echo $this->item->image; ?>" alt="<?php if(!empty($this->item->image_caption))
echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo
K2HelperUtilities::cleanHtml($this->item->title); ?>" style="width:<?php echo
$this->item->imageWidth; ?>px; height:auto;" />
</a>
</span>
i only remove the class="modal" ;
Please Log in or Create an account to join the conversation.
- Andy
- Topic Author
- Offline
- New Member
Less
More
- Posts: 17
10 years 4 months ago #128480
by Andy
Replied by Andy on topic Re: Main image only appears as pop up
only remove class="modal"
from the item.php. Worked a treat for me.
from the item.php. Worked a treat for me.
Please Log in or Create an account to join the conversation.