End of Support for Joomla 3 - Forum closed

image article position

  • Paky50
  • Paky50's Avatar Offline Topic Author
  • Junior Boarder
  • Junior Boarder
  • Posts: 36
  • Thank you received: 0

image article position was created by Paky50

Posted 6 years 9 months ago #17777
Hi,

i want in my article the full article image above the text at the center and the text below the image for default
Can you help me?

Thanks

URL: 77.104.189.229/~pasqua31/lucmagazine.com...jato-fast-essentials
by Paky50

Please Log in or Create an account to join the conversation.

Replied by joomlaplates on topic image article position

Posted 6 years 9 months ago #17792
If you want to change the image order in article view you have to create a template override:
yootheme.com/themes/documentation/developers/customization

Attachment override-2-3.jpg not found

Last Edit:6 years 9 months ago by joomlaplates
Attachments:
Last edit: 6 years 9 months ago by joomlaplates.

Please Log in or Create an account to join the conversation.

  • Paky50
  • Paky50's Avatar Offline Topic Author
  • Junior Boarder
  • Junior Boarder
  • Posts: 36
  • Thank you received: 0

Replied by Paky50 on topic image article position

Posted 6 years 9 months ago #17793
This is not a good reply...
This is the default.php code:

Code:
<?php /** * @package Warp Theme Framework * @author YOOtheme http://www.yootheme.com * @copyright Copyright (C) YOOtheme GmbH * @license http://www.gnu.org/licenses/gpl.html GNU/GPL */ // no direct access defined('_JEXEC') or die; // Create a shortcut for params. $item = $this->item; $params = $item->params; $urls = json_decode($item->urls); $canEdit = $params->get('access-edit'); $user = JFactory::getUser(); $args = include(__DIR__.'/../article_defaults.php'); // get view $menu = JFactory::getApplication()->getMenu()->getActive(); $view = is_object($menu) && isset($menu->query['view']) ? $menu->query['view'] : null; if ($view == 'article') $args['permalink'] = ''; JHtml::addIncludePath(JPATH_COMPONENT . '/helpers'); if ($this->params->get('show_page_heading')) { echo '<h1>'.$this->escape($this->params->get('page_heading')).'</h1>'; } // set author_url if (!empty($this->item->contactid) && $params->get('link_author') == true) { $needle = 'index.php?option=com_contact&view=contact&id=' . $this->item->contactid; $menu = JFactory::getApplication()->getMenu(); $item = $menu->getItems('link', $needle, true); $args['author_url'] = !empty($item) ? $needle . '&Itemid=' . $item->id : $needle; } // set article $article = ""; if ($params->get('access-view')) { if (isset($urls) AND ((!empty($urls->urls_position) AND ($urls->urls_position=='0')) OR ($params->get('urls_position')=='0' AND empty($urls->urls_position) )) OR (empty($urls->urls_position) AND (!$params->get('urls_position')))) { $article .= $this->loadTemplate('links'); } $article .= $this->item->text; if (isset($urls) AND ((!empty($urls->urls_position) AND ($urls->urls_position=='1')) OR ( $params->get('urls_position')=='1') )) { $article .= $this->loadTemplate('links'); } // optional teaser intro text for guests } elseif ($params->get('show_noauth') == true AND $user->get('guest')) { $article .= $this->item->introtext; // optional link to let them register to see the whole article. if ($params->get('show_readmore') && $this->item->fulltext != null) { $link1 = JRoute::_('index.php?option=com_users&view=login'); $link = new JURI($link1); $article .= '<p class="links">'; $article .= '<a href="'.$link.'">'; $attribs = json_decode($this->item->attribs); if ($attribs->alternative_readmore == null) { $article .= JText::_('COM_CONTENT_REGISTER_TO_READ_MORE'); } elseif ($readmore = $this->item->alternative_readmore) { $article .= $readmore; if ($params->get('show_readmore_title', 0) != 0) { $article .= JHtml::_('string.truncate', ($this->item->title), $params->get('readmore_limit')); } } elseif ($params->get('show_readmore_title', 0) == 0) { $article .= JText::sprintf('COM_CONTENT_READ_MORE_TITLE'); } else { $article .= JText::_('COM_CONTENT_READ_MORE'); $article .= JHtml::_('string.truncate', ($this->item->title), $params->get('readmore_limit')); } $article .= '</a></p>'; } } $args['article'] = $article; // set tags $tags = ''; if ($params->get('show_tags', 1) && !empty($this->item->tags->itemTags)) { JLoader::register('TagsHelperRoute', JPATH_BASE . '/components/com_tags/helpers/route.php'); foreach ($this->item->tags->itemTags as $i => $tag) { if (in_array($tag->access, JAccess::getAuthorisedViewLevels(JFactory::getUser()->get('id')))) { if($i > 0) $tags .= ', '; $tags .= '<a href="'.JRoute::_(TagsHelperRoute::getTagRoute($tag->tag_id . ':' . $tag->alias)).'">'.$this->escape($tag->title).'</a>'; } } } $args['tags'] = $tags; // set edit if (!$this->print) { $attrs = array('class' => 'uk-margin-right'); $args['edit'] = $canEdit ? JHtml::_('icon.edit', $this->item, $params, $attrs) : ''; $args['edit'] .= $params->get('show_print_icon') ? JHtml::_('icon.print_popup', $this->item, $params, $attrs) : ''; $args['edit'] .= $params->get('show_email_icon') ? JHtml::_('icon.email', $this->item, $params, $attrs) : ''; } else { $args['edit'] = JHtml::_('icon.print_screen', $this->item, $params); } // set previous and next if (!empty($this->item->pagination)) { $args['previous'] = ($prev = $this->item->prev) ? $prev : ''; $args['next'] = ($next = $this->item->next) ? $next : ''; } // render template echo $warp['template']->render('article', $args);

What i must modify to center the image..."support" dont mean copy/past the text.

Thanks
Last Edit:6 years 9 months ago by Paky50
Last edit: 6 years 9 months ago by Paky50.

Please Log in or Create an account to join the conversation.

Replied by joomlaplates on topic image article position

Posted 6 years 9 months ago #17798
Hi there,
if you want to have an image above your content, please add an image into your content like shown below.

Attachment article-2.jpg not found



If you want to use the Joomla image function for articles, use these settings.
And please make sure that your images have a big size:

Attachment image-function.jpg not found



We are committed to help you with any type of support query, however we can't provide extensive help in terms of customizations. In general customizations may look simple but you will require solid knowledge of web technologies and programming skills to do them or hire a professional who can do it for you.
Attachments:

Please Log in or Create an account to join the conversation.

Moderators: joomlaplates

Installations-Service

Don´t waste your time, we install your purchased Template
with the "Demo Content" within the next 24 hours.

Buy Now - 59€

Joomlaplates/Theme-Point is not affiliated with or endorsed by Open Source Matters or the Joomla! Project

Copyright © 2022 JoomlaPlates | Professional Joomla Templates with Uikit 3

Disclaimer & Privacy | License