problem with h1

Start-up Joomla template with amazing CSS3 animated icons, price tables and parallax effect background.
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 Jan 24, 2014 8:57 pm
Reply with quote
Report this post
Hi, while checking h1,h2,h3 etc on my website at page http://e-hardware.it/preventivo-illuminazione-led i saw that there are an extra h1 tag
<header>
<h1></h1>


</header>
this is a paste and copy of wrong html
can you say how to eliminate it?
best regards
User avatar
Fresh Boarder

GK User
Sat Jan 25, 2014 7:31 pm
Reply with quote
Report this post
Hello,

In this case I recommend to open file html/com_content/article/default.php and change fragment:

Code: Select all
 <header>
                <?php if ($params->get('show_page_heading', 1)) : ?>
                <h1><?php echo $this->escape($params->get('page_heading')); ?></h1>
                <?php endif; ?>

                <?php if (
                        $params->get('show_create_date') ||
                        $params->get('show_publish_date') ||
                        $params->get('show_modify_date') || 
                        ($params->get('show_parent_category') && $this->item->parent_slug != '1:root')
                ) : ?>
                <ul>       
                        <?php if ($params->get('show_publish_date')) : ?>
                        <li class="published">
                                <time datetime="<?php echo JHtml::_('date', $this->item->publish_up, JText::_(DATE_W3C)); ?>">
                                        <?php echo JHtml::_('date', $this->item->publish_up, JText::_('F j, Y')); ?>
                                </time>
                        </li>                       
                        <?php elseif ($params->get('show_modify_date')) : ?>
                        <li class="modified">
                                <time datetime="<?php echo JHtml::_('date', $this->item->modified, JText::_(DATE_W3C)); ?>">
                                        <?php echo JHtml::_('date', $this->item->modified, JText::_('F j, Y')); ?>
                                </time>
                        </li>
                        <?php elseif ($params->get('show_create_date')) : ?>
                        <li class="created">
                                <time datetime="<?php echo JHtml::_('date', $this->item->created, JText::_(DATE_W3C)); ?>">
                                        <?php echo JHtml::_('date', $this->item->created, JText::_('F j, Y')); ?>
                                </time>
                        </li>
                        <?php endif; ?>
                       
                        <?php if ($params->get('show_parent_category') && $this->item->parent_slug != '1:root') : ?>
                        <li class="parent-category-name">
                                <?php        $title = $this->escape($this->item->parent_title);
                                $url = '<a href="'.JRoute::_(ContentHelperRoute::getCategoryRoute($this->item->parent_slug)).'">'.$title.'</a>';?>
       
                                <?php if ($params->get('link_parent_category') and $this->item->parent_slug) : ?>
                                        <?php echo JText::sprintf('COM_CONTENT_PARENT', $url); ?>
                                <?php else : ?>
                                        <?php echo JText::sprintf('COM_CONTENT_PARENT', $title); ?>
                                <?php endif; ?>
                        </li>
                        <?php endif; ?>

                        <?php if ($params->get('show_author') && !empty($this->item->author )) : ?>
                        <li class="createdby">                               
                                <?php $author = $this->item->created_by_alias ? $this->item->created_by_alias : $this->item->author; ?>
                               
                                <?php if (!empty($this->item->contactid) && $params->get('link_author') == true): ?>
                                <?php
                                        $needle = 'index.php?option=com_contact&view=contact&id=' . $this->item->contactid;
                                        $menu = JFactory::getApplication()->getMenu();
                                        $item = $menu->getItems('link', $needle, true);
                                        $cntlink = !empty($item) ? $needle . '&Itemid=' . $item->id : $needle;
                                ?>
                                        <?php echo JText::sprintf('COM_CONTENT_WRITTEN_BY', JHtml::_('link', JRoute::_($cntlink), $author)); ?>
                                <?php else: ?>
                                        <?php echo JText::sprintf('COM_CONTENT_WRITTEN_BY', $author); ?>
                                <?php endif; ?>
                        </li>
                        <?php endif; ?>
                </ul>
                <?php endif; ?>
               
                <?php if ($params->get('show_title')) : ?>
                <h1>
                        <?php if ($params->get('link_titles') && !empty($this->item->readmore_link)) : ?>
                                <a href="<?php echo $this->item->readmore_link; ?>">
                                        <?php echo $this->escape($this->item->title); ?>
                                </a>
                        <?php else : ?>
                                <?php echo $this->escape($this->item->title); ?>
                        <?php endif; ?>
                </h1>
                <?php endif; ?>
        </header>


to:

Code: Select all
 
<?php if ($params->get('show_title')) : ?>
<header>
                <?php if ($params->get('show_page_heading', 1)) : ?>
                <h1><?php echo $this->escape($params->get('page_heading')); ?></h1>
                <?php endif; ?>

                <?php if (
                        $params->get('show_create_date') ||
                        $params->get('show_publish_date') ||
                        $params->get('show_modify_date') || 
                        ($params->get('show_parent_category') && $this->item->parent_slug != '1:root')
                ) : ?>
                <ul>       
                        <?php if ($params->get('show_publish_date')) : ?>
                        <li class="published">
                                <time datetime="<?php echo JHtml::_('date', $this->item->publish_up, JText::_(DATE_W3C)); ?>">
                                        <?php echo JHtml::_('date', $this->item->publish_up, JText::_('F j, Y')); ?>
                                </time>
                        </li>                       
                        <?php elseif ($params->get('show_modify_date')) : ?>
                        <li class="modified">
                                <time datetime="<?php echo JHtml::_('date', $this->item->modified, JText::_(DATE_W3C)); ?>">
                                        <?php echo JHtml::_('date', $this->item->modified, JText::_('F j, Y')); ?>
                                </time>
                        </li>
                        <?php elseif ($params->get('show_create_date')) : ?>
                        <li class="created">
                                <time datetime="<?php echo JHtml::_('date', $this->item->created, JText::_(DATE_W3C)); ?>">
                                        <?php echo JHtml::_('date', $this->item->created, JText::_('F j, Y')); ?>
                                </time>
                        </li>
                        <?php endif; ?>
                       
                        <?php if ($params->get('show_parent_category') && $this->item->parent_slug != '1:root') : ?>
                        <li class="parent-category-name">
                                <?php        $title = $this->escape($this->item->parent_title);
                                $url = '<a href="'.JRoute::_(ContentHelperRoute::getCategoryRoute($this->item->parent_slug)).'">'.$title.'</a>';?>
       
                                <?php if ($params->get('link_parent_category') and $this->item->parent_slug) : ?>
                                        <?php echo JText::sprintf('COM_CONTENT_PARENT', $url); ?>
                                <?php else : ?>
                                        <?php echo JText::sprintf('COM_CONTENT_PARENT', $title); ?>
                                <?php endif; ?>
                        </li>
                        <?php endif; ?>

                        <?php if ($params->get('show_author') && !empty($this->item->author )) : ?>
                        <li class="createdby">                               
                                <?php $author = $this->item->created_by_alias ? $this->item->created_by_alias : $this->item->author; ?>
                               
                                <?php if (!empty($this->item->contactid) && $params->get('link_author') == true): ?>
                                <?php
                                        $needle = 'index.php?option=com_contact&view=contact&id=' . $this->item->contactid;
                                        $menu = JFactory::getApplication()->getMenu();
                                        $item = $menu->getItems('link', $needle, true);
                                        $cntlink = !empty($item) ? $needle . '&Itemid=' . $item->id : $needle;
                                ?>
                                        <?php echo JText::sprintf('COM_CONTENT_WRITTEN_BY', JHtml::_('link', JRoute::_($cntlink), $author)); ?>
                                <?php else: ?>
                                        <?php echo JText::sprintf('COM_CONTENT_WRITTEN_BY', $author); ?>
                                <?php endif; ?>
                        </li>
                        <?php endif; ?>
                </ul>
                <?php endif; ?>
               
                <?php if ($params->get('show_title')) : ?>
                <h1>
                        <?php if ($params->get('link_titles') && !empty($this->item->readmore_link)) : ?>
                                <a href="<?php echo $this->item->readmore_link; ?>">
                                        <?php echo $this->escape($this->item->title); ?>
                                </a>
                        <?php else : ?>
                                <?php echo $this->escape($this->item->title); ?>
                        <?php endif; ?>
                </h1>
                <?php endif; ?>
        </header>
<?php endif; ?>


and then disable option "Show title" for this article.
User avatar
Administrator

GK User
Sat Jan 25, 2014 11:11 pm
Reply with quote
Report this post
THANK YOU VERY MUCH IT WORK
User avatar
Fresh Boarder


cron