Put titles before article image
Rate this topic: 1.00 out of 6 based on 1 vote(s)
- GK User
- Mon Jan 18, 2016 10:35 am
- Reply with quote
- Report this post
Hi, is it possible to put titles before article image and not under with an override?
-
- Senior Boarder
- teitbite
- Thu Jan 21, 2016 4:23 pm
- Reply with quote
- Report this post
Hi
Please tell me the url to the exact page with example of an article You wish to do this.
Please tell me the url to the exact page with example of an article You wish to do this.
-
- Moderator
- GK User
- Fri Jan 22, 2016 10:04 am
- Reply with quote
- Report this post
Hi, i'd like to put it in an entire k2 category items, the url of the site is www.yoga.istitutodibellezzaeddy.it.
The items will be displayed clicking on the module on the bottom "10 ragioni per cominciare a fare yoga".
Thank you
The items will be displayed clicking on the module on the bottom "10 ragioni per cominciare a fare yoga".
Thank you
-
- Senior Boarder
- GK User
- Fri Jan 22, 2016 10:05 am
- Reply with quote
- Report this post
Sorry, i did a mistake, is not k2, but joomla native category and articles
-
- Senior Boarder
- teitbite
- Wed Jan 27, 2016 3:16 pm
- Reply with quote
- Report this post
Hi
I cannot tell for sure which layout it is exactly, but please try edit file /html/com_content/featured/default_item.php and look for a code:
move it under this code:
I cannot tell for sure which layout it is exactly, but please try edit file /html/com_content/featured/default_item.php and look for a code:
- Code: Select all
<?php if (isset($images->image_intro) and !empty($images->image_intro)) : ?>
<div class="img-intro-<?php echo $images->float_intro ? $images->float_intro : $params->get('float_intro'); ?>">
<img
<?php if ($images->image_intro_caption):
echo 'class="caption"'.' title="' .$images->image_intro_caption .'"';
endif; ?>
<?php if (empty($images->float_intro)):?>
style="float:<?php echo $params->get('float_intro') ?>"
<?php else: ?>
style="float:<?php echo $images->float_intro ?>"
<?php endif; ?>
src="<?php echo $images->image_intro; ?>" alt="<?php echo $images->image_intro_alt; ?>"/>
</div>
<?php endif; ?>
move it under this code:
- Code: Select all
<?php if ($params->get('show_title')) : ?>
<header>
<h1 itemprop="name">
<?php if ($params->get('link_titles') && $params->get('access-view')) : ?>
<a href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid)); ?>" itemprop="url"><?php echo $this->escape($this->item->title); ?></a>
<?php else : ?>
<?php echo $this->escape($this->item->title); ?>
<?php endif; ?>
</h1>
<?php if (!$params->get('show_intro')) : ?>
<?php echo $this->item->event->afterDisplayTitle; ?>
<?php endif; ?>
<?php echo $this->item->event->beforeDisplayContent; ?>
</header>
<?php endif; ?>
-
- Moderator
- GK User
- Sun Jan 31, 2016 4:06 pm
- Reply with quote
- Report this post
thank you, i'll save it for another one,because right now client seems like this layout
Thanx again
Thanx again
-
- Senior Boarder
- teitbite
- Thu Feb 04, 2016 12:08 pm
- Reply with quote
- Report this post
Hi
Ok. Great to hear it. I'm leaving this thread open in case You will try it and have some additional questions regarding that.
Ok. Great to hear it. I'm leaving this thread open in case You will try it and have some additional questions regarding that.
-
- Moderator
7 posts
• Page 1 of 1