Moving the title from the header

Support desk for Multipurpose Quark Theme
GK User
Tue Feb 28, 2017 8:36 pm
Hi, I am using Joomla 3.6 and the latest version of Gk_Quark Restaurant variation. I am trying to move the blog title and created date from the header section and place it directly on top of the article. How do I do it? Any help will be gladly appreciated
User avatar
Fresh Boarder

teitbite
Thu Mar 02, 2017 1:39 pm
Hi

Please tell me which content component are You using ? I mean if it's K2 or default joomla article component.
User avatar
Moderator

GK User
Fri Mar 03, 2017 4:19 pm
teitbite wrote:Hi

Please tell me which content component are You using ? I mean if it's K2 or default joomla article component.


I am using K2 the latest version
User avatar
Fresh Boarder

GK User
Tue Mar 07, 2017 1:19 pm
Hi, The challenge i am having is that when i open a blog post, i want to be able to see the title, then the date and other item info then the content of the post. In quart_restaurant, the title is embedded in the header meaning if i get rid of the header image then the title for the post cannot display. Is their a way i can be able to do it.

i.e A blog setup as in gk_Hotel...

I am using joomla 3.6.5 and K2 2.7.1
User avatar
Fresh Boarder

GK User
Tue Mar 07, 2017 1:28 pm
Attached are the screenshots. Any help will be appreciated
User avatar
Fresh Boarder

teitbite
Tue Mar 07, 2017 7:00 pm
Hi

Please edit file /html/com_k2/templates/default/item.php. Cut code:

Code: Select all
          <?php if($params->get('itemTitle')): ?>
          <div class="item-title-wrap">
               <h1 class="item-title" data-sr="enter bottom and move 50px">
                  <?php echo $this->item->title; ?>
                  <?php if($params->get('itemFeaturedNotice') && $this->item->featured): ?>
                  <sup><i class="gkicon-star"></i></sup>
                  <?php endif; ?>
               </h1>
               
               <?php if($this->item->params->get('itemDateCreated')): ?>
               <span class="item-category" data-sr="enter bottom and move 50px and wait .2s">
                     <time datetime="<?php echo JHtml::_('date', $this->item->created, JText::_(DATE_W3C)); ?>"> <?php echo JHTML::_('date', $this->item->created, 'l, j F Y'); ?> </time>
               </span>
               <?php endif; ?>
          </div>
          <?php endif; ?>


and paste it right after this line:

Code: Select all
<div class="item-body"> <?php echo $this->item->event->BeforeDisplayContent; ?> <?php echo $this->item->event->K2BeforeDisplayContent; ?>
User avatar
Moderator

GK User
Tue Mar 07, 2017 7:08 pm
Thanks, it worked perfectly. You a life saver. Everything is perfect now.
User avatar
Fresh Boarder

teitbite
Wed Mar 08, 2017 11:17 am
Hi
Glad I could help.
---
If You were satisfied with our support please let other users know on Twitter: http://twitter.com/gavickpro or Facebook: http://www.facebook.com/gavickpro
User avatar
Moderator


cron