- Posts: 5
COMMUNITY FORUM
[SOLVED] Image Not Showing in Item View
- Muggsy Lauer
-
Topic Author
- Offline
- New Member
Using T3 Frameworks version 2.1.0 for my template
K2 Version 2.6.7
I imported all my previous Joomla articles and have begun replacing the images using K2's Media Manager. First, I tried using the existing path, then I tried uploading a new version of the photo through the Image tab.
When viewing in Category view the photo shows up just fine and in the proper width, but when I go to the item itself there is nothing but a caption where the photo should be. I've checked the source code and it reads:
<div class="itemImageBlock">
<span class="itemImage">
<a class="modal" title="Click to preview image" href="/media/k2/items/cache/c10c64c27e0606d1654b81b9bb482558_XL.jpg" rel="{handler: 'image'}"></a>
</span>
<!--
Image caption
-->
<span class="itemImageCaption"></span>
<div class="clr"></div>
</div>
I followed the path using my ftp program and the image exists.
I've checked all the Parameters the global setting, the category settings and even in the item settings and every button regarding images is set to "Yes." (Maybe I missed one??)
See for yourself at: newsite.foxterrierrescue.net/index.php/k2-catblog and click either Nancy or Peter Pan's articles.
Any help would be greatly appreciated.
Please Log in or Create an account to join the conversation.
- Tracey
-
- Offline
- Senior Member
- Posts: 47
Joomla! v3.5.1
Gantry5 - Hydrogen Template
k2 v2.7.0
Please Log in or Create an account to join the conversation.
- Muggsy Lauer
-
Topic Author
- Offline
- New Member
- Posts: 5
Time to start digging into the CSS.
Please Log in or Create an account to join the conversation.
- Elric
-
- Offline
- New Member
- Posts: 3
Same problem for me with T3 and K2...
No problem with other templates, and the image is showing when css is disabled.
I'm really interested if you can find a solution.
Please Log in or Create an account to join the conversation.
- Muggsy Lauer
-
Topic Author
- Offline
- New Member
- Posts: 5
In bootstrap.less you have class .modal display: none Line: 5347 That is the problem.
modal {
display: none;
overflow-x: auto;
overflow-y: scroll;
position: fixed;
top: 0px;
right: 0px;
bottom: 0px;
left: 0px;
z-index: 1040;
}
And
...this is a conflict between bootstrap and .modal button.
You can fix by overwrite a.modal { .... } in custom.css
It took some digging, but I was able to fix the problem with custom CSS.
Please Log in or Create an account to join the conversation.
- Elric
-
- Offline
- New Member
- Posts: 3
Could you please be more specific about the solution you found ?
I'm not very familiar with the use of the custom.css file, and I'm currently discovering the T3 power, but slowly :whistle:
Please Log in or Create an account to join the conversation.
- Muggsy Lauer
-
Topic Author
- Offline
- New Member
- Posts: 5
Please Log in or Create an account to join the conversation.
- Elric
-
- Offline
- New Member
- Posts: 3
I was digging in the custom.css from T3, not from K2.
I'll try with K2 now with a display not set to none...
Many thanks again for you time !
Please Log in or Create an account to join the conversation.
- Filip
-
- Offline
- New Member
span.itemImage a.modal {display: inherit; overflow: hidden; position: relative;}
It'll redefine bootstrap's modal class properties which makes img "dissapear".
never walk alone
Please Log in or Create an account to join the conversation.
- Ahynte
-
- Offline
- New Member
- Posts: 1
Pithecanthropus wrote: I got this answer from the T3 Discussions section:
In bootstrap.less you have class .modal display: none Line: 5347 That is the problem.
modal {
display: none;
overflow-x: auto;
overflow-y: scroll;
position: fixed;
top: 0px;
right: 0px;
bottom: 0px;
left: 0px;
z-index: 1040;
}
And
...this is a conflict between bootstrap and .modal button.
You can fix by overwrite a.modal { .... } in custom.css
It took some digging, but I was able to fix the problem with custom CSS.
Please Log in or Create an account to join the conversation.