-
AuthorPosts
-
March 4, 2011 at 12:45 am #161004
Hi
I’d like use in the articles extensions like japopup, Simple Image Gallery PRO, or joomslide to manage images, videos and galleries
But in the frontpage fail, you can see in the images attached. In case of japopup when you clic on the image nothing happens. With SIGP all the images of gallery appear on the right and none in the right place.
If I go to read the whole article both extensions work fine.
How can I avoid this?
thanks in advance-
Saguaros Moderator
Saguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
March 4, 2011 at 4:36 am #379573Because the layout extract the image and display it on the right side, so you have to customize this:
1) you open the file: templatesja_ravehtmlcom_contentfrontpagedefault_item.php
and remove the following code:
[PHP]
if (preg_match_all ($regex, $this->item->text, $matches)) {
$this->item->text = preg_replace ($regex, ”, $this->item->text);
$images = implode (“n”, $matches[0]);
}
[/PHP]
2) you find:
[PHP]
<div class=”contentpaneopen<?php echo $this->escape($this->item->params->get( ‘pageclass_sfx’ )); ?> <?php if ($images): ?>haveimage<?php endif; ?> clearfix”>
[/PHP]
replace:
[PHP]
<div class=”myfrontpage contentpaneopen<?php echo $this->escape($this->item->params->get( ‘pageclass_sfx’ )); ?> <?php if ($images): ?>haveimage<?php endif; ?> clearfix”>
[/PHP]
2) add the following code into the template.css file.myfrontpage img {
float: left!important;
margin-right: 8px;
}1 user says Thank You to Saguaros for this useful post
-
AuthorPosts
Viewing 3 posts - 1 through 3 (of 3 total)This topic contains 3 replies, has 2 voices, and was last updated by joralles 13 years, 8 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum
-