Minor Template changes
- Posted by Lynette Stein (18) Offline
I need to make some layout changes to Deals Plazza, but can't find the file to edit.
1. Refer attached image 'Splazz'. I need the black panel reduced in height to allow for the product photo to not be cropped so heavily.
2. Refer attached image 'Splazz Index Page' - On the read more page, I need the black panel under the 'Buy Panel' removed so the 'Buy Panel' can drop down to show a larger product image.
11 years 1 month ago #1
by Lynette Stein
1. Refer attached image 'Splazz'. I need the black panel reduced in height to allow for the product photo to not be cropped so heavily.
2. Refer attached image 'Splazz Index Page' - On the read more page, I need the black panel under the 'Buy Panel' removed so the 'Buy Panel' can drop down to show a larger product image.
Please Log in or Create an account to join the conversation.
- Posted by andy (759) Offline
Hi dalt, You can edit these files :
[root]/templates/deals_plazza/html/com_k2/dealplazza/category_item.php
[root]/templates/deals_plazza/html/com_k2/dealplazza/item.php
11 years 1 month ago #2
by andy
[root]/templates/deals_plazza/html/com_k2/dealplazza/category_item.php
[root]/templates/deals_plazza/html/com_k2/dealplazza/item.php
Please Log in or Create an account to join the conversation.
- Posted by Lynette Stein (18) Offline
Thanks for the fast response. I opened both files and made changes where I thought necessary. When it didn't work, I reset the code to default.
The following code in both files must be what I have to change. I changed the below iframe size to x:990,y:990, but it didn't work for me:
<div class="catItemBody">
<!--
<?php if($this->item->params->get('catItemAuthor')): ?>
<span class="catItemAuthor">
<?php echo K2HelperUtilities::writtenBy($this->item->author->profile->gender); ?> <a href="<?php echo $this->item->author->link; ?>"><?php echo $this->item->author->name; ?></a>
<?php if($this->item->params->get('catItemDateCreated')): ?>
/ <?php echo JHTML::_('date', $this->item->created , JText::_('DATE_FORMAT_LC4')); ?>
<?php endif; ?>
</span>
<?php endif; ?>
-->
<div class="catItemImageBlock" <?php if($this->item->params->get('catItemImage') && !empty($this->item->image)): ?>style="background: url(<?php echo $this->item->image; ?>) no-repeat; "<?php endif; ?>>
</div>
<?php if(isset($this->item->editLink)): ?>
<!-- Item edit link -->
<span class="catItemEditLink">
<a class="modal" rel="{handler:'iframe',size:{x:990,y:650}}" href="<?php echo $this->item->editLink; ?>">
<?php echo JText::_('TPL_DEALPLAZZA_EDIT'); ?>
</a>
</span>
<?php endif; ?>
11 years 1 month ago #3
by Lynette Stein
The following code in both files must be what I have to change. I changed the below iframe size to x:990,y:990, but it didn't work for me:
<div class="catItemBody">
<!--
<?php if($this->item->params->get('catItemAuthor')): ?>
<span class="catItemAuthor">
<?php echo K2HelperUtilities::writtenBy($this->item->author->profile->gender); ?> <a href="<?php echo $this->item->author->link; ?>"><?php echo $this->item->author->name; ?></a>
<?php if($this->item->params->get('catItemDateCreated')): ?>
/ <?php echo JHTML::_('date', $this->item->created , JText::_('DATE_FORMAT_LC4')); ?>
<?php endif; ?>
</span>
<?php endif; ?>
-->
<div class="catItemImageBlock" <?php if($this->item->params->get('catItemImage') && !empty($this->item->image)): ?>style="background: url(<?php echo $this->item->image; ?>) no-repeat; "<?php endif; ?>>
</div>
<?php if(isset($this->item->editLink)): ?>
<!-- Item edit link -->
<span class="catItemEditLink">
<a class="modal" rel="{handler:'iframe',size:{x:990,y:650}}" href="<?php echo $this->item->editLink; ?>">
<?php echo JText::_('TPL_DEALPLAZZA_EDIT'); ?>
</a>
</span>
<?php endif; ?>
Please Log in or Create an account to join the conversation.
- Posted by andy (759) Offline
hmm, please open file com_k2.css then find this line :
put a higher value for height:190!important;
11 years 1 month ago #4
by andy
div.catItemImageBlock {background-size:100%!important; height:190px!important;margin: 0;
}
put a higher value for height:190!important;
Please Log in or Create an account to join the conversation.
- Posted by Lynette Stein (18) Offline