I want to change the location of the photo and the title

February 2014 Joomla Template
Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Fri Mar 20, 2015 10:26 am
Reply with quote
Report this post
Hi. Please tell me...

Articles tile in the TOP screen , I want to change the location of the photo and the title.

Now...
1.Photo
2.title
↓Change the display
1.title
2.Photo

Please tell me how to change the template.

Best regards.
User avatar
Fresh Boarder

GK User
Sun Mar 22, 2015 11:02 am
Reply with quote
Report this post
Could you please create a screenshot and mark the changes on it?
User avatar
Moderator

GK User
Wed Mar 25, 2015 6:45 am
Reply with quote
Report this post
Can I change the position picture and title?
User avatar
Fresh Boarder

GK User
Thu Mar 26, 2015 12:59 pm
Reply with quote
Report this post
Could you please post an url to your site?
User avatar
Moderator

GK User
Fri Mar 27, 2015 4:33 am
Reply with quote
Report this post
User avatar
Fresh Boarder

GK User
Sun Mar 29, 2015 3:06 pm
Reply with quote
Report this post
There is a difference between your homepage and screen taken from our demo site. You homepage uses blog posts, and our demo uses News Show Pro.
Which view exactly would you like to modify?
User avatar
Moderator

GK User
Mon Mar 30, 2015 10:15 am
Reply with quote
Report this post
I want to modify my homepage used blog posts.
Please tell me how to modify.
User avatar
Fresh Boarder

GK User
Mon Apr 06, 2015 9:23 am
Reply with quote
Report this post
I'm not sure which view exactly was used on homepage, but I assume it is category view, so please edit file:
templates/gk_news2/html/com_k2/templates/default/category_item.php
and change this section:
Code: Select all
            <?php if($this->item->params->get('catItemImage') && !empty($this->item->image)): ?>
            <div class="itemImageBlock"> <a class="itemImage" href="<?php echo $this->item->link; ?>" title="<?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>"> <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> </div>
            <?php endif; ?>
            
            <header>
                  <?php if(isset($this->item->editLink)): ?>
                  <a class="catItemEditLink modal" rel="{handler:'iframe',size:{x:990,y:550}}" href="<?php echo $this->item->editLink; ?>">
                     <?php echo JText::_('K2_EDIT_ITEM'); ?>
                  </a>
                  <?php endif; ?>
            
                  <?php if($this->item->params->get('catItemTitle')): ?>
                  <h2>
                        <?php if ($this->item->params->get('catItemTitleLinked')): ?>
                        <a href="<?php echo $this->item->link; ?>"><?php echo $this->item->title; ?></a>
                        <?php else: ?>
                        <?php echo $this->item->title; ?>
                        <?php endif; ?>
                        <?php if($this->item->params->get('catItemFeaturedNotice') && $this->item->featured): ?>
                        <sup><?php echo JText::_('K2_FEATURED'); ?></sup>
                        <?php endif; ?>
                  </h2>
                  <?php endif; ?>
            </header>

to this version:
Code: Select all
            <header>
                  <?php if(isset($this->item->editLink)): ?>
                  <a class="catItemEditLink modal" rel="{handler:'iframe',size:{x:990,y:550}}" href="<?php echo $this->item->editLink; ?>">
                     <?php echo JText::_('K2_EDIT_ITEM'); ?>
                  </a>
                  <?php endif; ?>
            
                  <?php if($this->item->params->get('catItemTitle')): ?>
                  <h2>
                        <?php if ($this->item->params->get('catItemTitleLinked')): ?>
                        <a href="<?php echo $this->item->link; ?>"><?php echo $this->item->title; ?></a>
                        <?php else: ?>
                        <?php echo $this->item->title; ?>
                        <?php endif; ?>
                        <?php if($this->item->params->get('catItemFeaturedNotice') && $this->item->featured): ?>
                        <sup><?php echo JText::_('K2_FEATURED'); ?></sup>
                        <?php endif; ?>
                  </h2>
                  <?php endif; ?>
            </header>

            <?php if($this->item->params->get('catItemImage') && !empty($this->item->image)): ?>
            <div class="itemImageBlock"> <a class="itemImage" href="<?php echo $this->item->link; ?>" title="<?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>"> <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> </div>
            <?php endif; ?>
User avatar
Moderator


cron