End of Support for Joomla 3 - Forum closed
Titre des articles d'un blog en h1
- joomlaplates
- Offline
- Moderator
- Posts: 8807
- Thank you received: 1732
Replied by joomlaplates on topic Titre des articles d'un blog en h1
Posted 9 years 7 months ago #7761
1.) Please add the file which you have modified
2.) Please add a screenshot which "h1" do you mean.
> blog > articles > h1
2.) Please add a screenshot which "h1" do you mean.
> blog > articles > h1
Dokumentation:
www.joomlaplates.de/dokumentation.html
www.joomlaplates.de/dokumentation.html
by joomlaplates
Please Log in or Create an account to join the conversation.
So I used the red style
I enclose the modified files
blog.php is in styles/layouts/com_content/blog
default.php is in styles/layouts/com_content/item
The title of the article "Résultats de la ligue IDF" remains h1 after the changes
The site is visble at: www.gctest.net/rko .
The file blog.php
The file default.php
I enclose the modified files
blog.php is in styles/layouts/com_content/blog
default.php is in styles/layouts/com_content/item
The title of the article "Résultats de la ligue IDF" remains h1 after the changes
The site is visble at: www.gctest.net/rko .
The file blog.php
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;
JHtml::addIncludePath(JPATH_COMPONENT.'/helpers');
?>
<?php
$app = JFactory::getApplication();
$app->input->set('layout', 'blog');
?>
<?php if ($this->params->get('show_page_heading') || $this->params->get('page_subheading') || $this->params->get('show_description', 1) || $this->params->def('show_description_image', 1)) : ?>
<div class="uk-grid">
<div class="uk-width-1-1">
<div class="uk-panel uk-panel-header">
<?php if ($this->params->get('show_page_heading')) : ?>
<h2 class="tm-title"><?php echo $this->escape($this->params->get('page_heading')); ?></h2>
<?php endif; ?>
<?php if ($this->params->get('page_subheading')) : ?>
<h2><?php echo $this->escape($this->params->get('page_subheading')); ?></h2>
<?php endif; ?>
<?php if ($this->params->get('show_category_title', 1)) : ?>
<h3 class="uk-h3"><?php echo $this->category->title;?></h3>
<?php endif; ?>
<?php if ($this->params->get('show_description', 1) || $this->params->def('show_description_image', 1)) :?>
<div class="uk-clearfix">
<?php if ($this->params->get('show_description_image') && $this->category->getParams()->get('image')) : ?>
<img src="<?php echo $this->category->getParams()->get('image'); ?>" alt="<?php echo $this->category->getParams()->get('image'); ?>" class="uk-align-right">
<?php endif; ?>
<?php if ($this->params->get('show_description') && $this->category->description) echo JHtml::_('content.prepare', $this->category->description, '', 'com_content.category'); ?>
<?php
if ($this->params->get('show_tags', 1) && !empty($this->category->tags->itemTags)) {
JLoader::register('TagsHelperRoute', JPATH_BASE . '/components/com_tags/helpers/route.php');
echo '<p>'.JText::_('TPL_WARP_TAGS').': ';
foreach ($this->category->tags->itemTags as $i => $tag) {
if (in_array($tag->access, JAccess::getAuthorisedViewLevels(JFactory::getUser()->get('id')))) {
if($i > 0) echo ', ';
echo '<a href="'.JRoute::_(TagsHelperRoute::getTagRoute($tag->tag_id . ':' . $tag->alias)).'">'.$this->escape($tag->title).'</a>';
}
}
echo '</p>';
}
?>
</div>
<?php endif; ?>
</div>
</div>
</div>
<?php endif; ?>
<?php if (empty($this->lead_items) && empty($this->link_items) && empty($this->intro_items)) : ?>
<?php if ($this->params->get('show_no_articles', 1)) : ?>
<div class="uk-alert"><?php echo JText::_('COM_CONTENT_NO_ARTICLES'); ?></div>
<?php endif; ?>
<?php endif; ?>
<?php
// init vars
$articles = '';
// leading articles
if (!empty($this->lead_items)) {
$articles .= '<div class="uk-grid tm-leading-article"><div class="uk-width-1-1">';
foreach ($this->lead_items as $item) {
$this->item = $item;
$articles .= $this->loadTemplate('item');
}
$articles .= '</div></div>';
}
// intro articles
$columns = array();
$i = 0;
foreach ($this->intro_items as $item) {
$column = $i++ % $this->params->get('num_columns', 2);
if (!isset($columns[$column])) {
$columns[$column] = '';
}
$this->item = $item;
$columns[$column] .= $this->loadTemplate('item');
}
// render intro columns
if ($count = count($columns)) {
$articles .= '<div class="uk-grid" data-uk-grid-match data-uk-grid-margin>';
for ($i = 0; $i < $count; $i++) {
$articles .= '<div class="uk-width-medium-1-'.$count.'">'.$columns[$i].'</div>';
}
$articles .= '</div>';
}
if ($articles) echo $articles;
?>
<?php if (!empty($this->link_items)) : ?>
<div class="uk-grid">
<div class="uk-width-1-1">
<div class="uk-panel uk-panel-header">
<h3 class="uk-panel-title"><?php echo JText::_('COM_CONTENT_MORE_ARTICLES'); ?></h3>
<ul class="uk-list">
<?php foreach ($this->link_items as &$item) : ?>
<li><a href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($item->slug, $item->catid)); ?>"><?php echo $item->title; ?></a></li>
<?php endforeach; ?>
</ul>
</div>
</div>
</div>
<?php endif; ?>
<?php if (($this->params->def('show_pagination', 1) == 1 || ($this->params->get('show_pagination') == 2)) && ($this->pagination->get('pages.total') > 1)) : ?>
<?php echo $this->pagination->getPagesLinks(); ?>
<?php endif; ?>
The file default.php
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;
JHtml::addIncludePath(JPATH_COMPONENT.'/helpers');
?>
<?php
$app = JFactory::getApplication();
$app->input->set('layout', 'blog');
?>
<?php if ($this->params->get('show_page_heading') || $this->params->get('page_subheading') || $this->params->get('show_description', 1) || $this->params->def('show_description_image', 1)) : ?>
<div class="uk-grid">
<div class="uk-width-1-1">
<div class="uk-panel uk-panel-header">
<?php if ($this->params->get('show_page_heading')) : ?>
<h2 class="tm-title"><?php echo $this->escape($this->params->get('page_heading')); ?></h2>
<?php endif; ?>
<?php if ($this->params->get('page_subheading')) : ?>
<h2><?php echo $this->escape($this->params->get('page_subheading')); ?></h2>
<?php endif; ?>
<?php if ($this->params->get('show_category_title', 1)) : ?>
<h3 class="uk-h3"><?php echo $this->category->title;?></h3>
<?php endif; ?>
<?php if ($this->params->get('show_description', 1) || $this->params->def('show_description_image', 1)) :?>
<div class="uk-clearfix">
<?php if ($this->params->get('show_description_image') && $this->category->getParams()->get('image')) : ?>
<img src="<?php echo $this->category->getParams()->get('image'); ?>" alt="<?php echo $this->category->getParams()->get('image'); ?>" class="uk-align-right">
<?php endif; ?>
<?php if ($this->params->get('show_description') && $this->category->description) echo JHtml::_('content.prepare', $this->category->description, '', 'com_content.category'); ?>
<?php
if ($this->params->get('show_tags', 1) && !empty($this->category->tags->itemTags)) {
JLoader::register('TagsHelperRoute', JPATH_BASE . '/components/com_tags/helpers/route.php');
echo '<p>'.JText::_('TPL_WARP_TAGS').': ';
foreach ($this->category->tags->itemTags as $i => $tag) {
if (in_array($tag->access, JAccess::getAuthorisedViewLevels(JFactory::getUser()->get('id')))) {
if($i > 0) echo ', ';
echo '<a href="'.JRoute::_(TagsHelperRoute::getTagRoute($tag->tag_id . ':' . $tag->alias)).'">'.$this->escape($tag->title).'</a>';
}
}
echo '</p>';
}
?>
</div>
<?php endif; ?>
</div>
</div>
</div>
<?php endif; ?>
<?php if (empty($this->lead_items) && empty($this->link_items) && empty($this->intro_items)) : ?>
<?php if ($this->params->get('show_no_articles', 1)) : ?>
<div class="uk-alert"><?php echo JText::_('COM_CONTENT_NO_ARTICLES'); ?></div>
<?php endif; ?>
<?php endif; ?>
<?php
// init vars
$articles = '';
// leading articles
if (!empty($this->lead_items)) {
$articles .= '<div class="uk-grid tm-leading-article"><div class="uk-width-1-1">';
foreach ($this->lead_items as $item) {
$this->item = $item;
$articles .= $this->loadTemplate('item');
}
$articles .= '</div></div>';
}
// intro articles
$columns = array();
$i = 0;
foreach ($this->intro_items as $item) {
$column = $i++ % $this->params->get('num_columns', 2);
if (!isset($columns[$column])) {
$columns[$column] = '';
}
$this->item = $item;
$columns[$column] .= $this->loadTemplate('item');
}
// render intro columns
if ($count = count($columns)) {
$articles .= '<div class="uk-grid" data-uk-grid-match data-uk-grid-margin>';
for ($i = 0; $i < $count; $i++) {
$articles .= '<div class="uk-width-medium-1-'.$count.'">'.$columns[$i].'</div>';
}
$articles .= '</div>';
}
if ($articles) echo $articles;
?>
<?php if (!empty($this->link_items)) : ?>
<div class="uk-grid">
<div class="uk-width-1-1">
<div class="uk-panel uk-panel-header">
<h3 class="uk-panel-title"><?php echo JText::_('COM_CONTENT_MORE_ARTICLES'); ?></h3>
<ul class="uk-list">
<?php foreach ($this->link_items as &$item) : ?>
<li><a href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($item->slug, $item->catid)); ?>"><?php echo $item->title; ?></a></li>
<?php endforeach; ?>
</ul>
</div>
</div>
</div>
<?php endif; ?>
<?php if (($this->params->def('show_pagination', 1) == 1 || ($this->params->get('show_pagination') == 2)) && ($this->pagination->get('pages.total') > 1)) : ?>
<?php echo $this->pagination->getPagesLinks(); ?>
<?php endif; ?>
Last Edit:9 years 7 months ago
by chlyroju
Last edit: 9 years 7 months ago by chlyroju.
Please Log in or Create an account to join the conversation.
- joomlaplates
- Offline
- Moderator
- Posts: 8807
- Thank you received: 1732
Replied by joomlaplates on topic Titre des articles d'un blog en h1
Posted 9 years 7 months ago #7764
You are wrong.
You should copy this file:
../templates/your-template/warp/systems/joomla/layouts/com_content/category/blog.php
and copy it to your style folder
../templates/your-template/layouts/com_content/category/blog.php
See image attached, source code from "blog.php"
And please take in your mind that you have to change the class at the css too.
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.
You should copy this file:
../templates/your-template/warp/systems/joomla/layouts/com_content/category/blog.php
and copy it to your style folder
../templates/your-template/layouts/com_content/category/blog.php
See image attached, source code from "blog.php"
Attachment headlines.jpg not found
And please take in your mind that you have to change the class at the css too.
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.
Dokumentation:
www.joomlaplates.de/dokumentation.html
www.joomlaplates.de/dokumentation.html
Last Edit:9 years 7 months ago
by joomlaplates
Attachments:
Last edit: 9 years 7 months ago by joomlaplates.
Please Log in or Create an account to join the conversation.
Bonjour,
That's what I did
And replace h1 by h2
This is not the first time I do this kind of change and I've never encountered this problem.
Well, I think I'll leave it
Anyway, thank you for your help
Cordially
Christian
Code:
You should copy this file:
../templates/your-template/warp/systems/joomla/layouts/com_content/category/blog.php
and copy it to your style folder
../templates/your-template/layouts/com_content/category/blog.php
And replace h1 by h2
This is not the first time I do this kind of change and I've never encountered this problem.
Well, I think I'll leave it
Anyway, thank you for your help
Cordially
Christian
by chlyroju
Please Log in or Create an account to join the conversation.
Moderators: joomlaplates