Can I make titles into H2 for better seo

GK User
Sat Dec 03, 2011 1:34 pm
Hi my website http://www.in2town.co.uk/Health%20Magazine which i am working on at the moment is a lifestyle magazine and i would like to have the titles of the sections made into h2 to be better for seo.

Can anyone please look at my page and let me know if i can get the titles which include healthy living made into h2 title tags please
User avatar
Platinum Boarder

teitbite
Sun Dec 04, 2011 12:03 am
Hi

Where is this text ? I cannot find it. But most probably this would require to add this small thing to template's /html/com_content files.
User avatar
Moderator

GK User
Sun Dec 04, 2011 9:56 pm
teitbite wrote:Hi

Where is this text ? I cannot find it. But most probably this would require to add this small thing to template's /html/com_content files.


The titles are the titles that are diving the sections so for example in top1 the title is Health Magazine and then i have in top 6 weight loss health as a title and i would like these titles as h2. any ideas how i can do this please
User avatar
Platinum Boarder

teitbite
Tue Dec 06, 2011 1:27 am
Hi

Thoose are module titles. You will have to change it directly at /html/modules.php file. Simply wherever You will find <h[code] replace it with <h2> (do not forget about closing tag also)
User avatar
Moderator

GK User
Wed Dec 07, 2011 2:21 am
teitbite wrote:Hi

Thoose are module titles. You will have to change it directly at /html/modules.php file. Simply wherever You will find <h[code] replace it with <h2> (do not forget about closing tag also)


hi this is the modules php file for the module of mod news pro that i am using for each news section but i cannot find anywhere to change it to have the title become a h2.

<?php

/**
* Main file
* @package News Show Pro GK4
* @Copyright (C) 2009-2011 Gavick.com
* @ All rights reserved
* @ Joomla! is Free Software
* @ Released under GNU/GPL License : http://www.gnu.org/copyleft/gpl.html
* @version $Revision: 4.3.0.0 $
**/

/** access restriction **/
defined('_JEXEC') or die('Restricted access');
/** Loading helper class **/
require_once (dirname(__FILE__).DS.'helper.php');
//
if(!class_exists('NSP_GK4_Joomla_Source')) require_once (dirname(__FILE__).DS.'gk_classes'.DS.'gk.source.joomla.php');
if(!class_exists('NSP_GK4_K2_Source')) require_once (dirname(__FILE__).DS.'gk_classes'.DS.'gk.source.k2.php');
if(!class_exists('NSP_GK4_VM_Source')) require_once (dirname(__FILE__).DS.'gk_classes'.DS.'gk.source.vm.php');
if(!class_exists('NSP_GK4_Thumbs')) require_once (dirname(__FILE__).DS.'gk_classes'.DS.'gk.thumbs.php');
if(!class_exists('NSP_GK4_Utils')) require_once (dirname(__FILE__).DS.'gk_classes'.DS.'gk.utils.php');
if(!class_exists('NSP_GK4_Layout_Parts')) require_once(JModuleHelper::getLayoutPath('mod_news_pro_gk4','layout.parts'));
//
$helper = new NSP_GK4_Helper();
$helper->init($module, $params);
$helper->getDatas();
$helper->renderLayout();
User avatar
Platinum Boarder

teitbite
Wed Dec 07, 2011 7:59 pm
Hi

No no. This is somethng different. The only place You can modificate the code of module header is at /html/modules.php.

If You have a problem with changing it by Yourself, please send me FTP access and I'll make it for You.
User avatar
Moderator

GK User
Wed Dec 07, 2011 11:52 pm
teitbite wrote:Hi

No no. This is somethng different. The only place You can modificate the code of module header is at /html/modules.php.

If You have a problem with changing it by Yourself, please send me FTP access and I'll make it for You.


Hi i have found it

so for example the following line, how would i change it to have it as a h2 tag

<h<?php echo $headerLevel; ?>><span><?php echo $part_one; ?> <?php echo $part_two; ?></span></h<?php echo $headerLevel; ?>>

also how can i have h1 on my site as well for my articles, here is an example

http://www.in2town.co.uk/news/diets/obesity-health-risks-can-be-reduced-with-a-low-carb-diet

I would like the big title on this page to be h1

any help would be great
User avatar
Platinum Boarder

GK User
Thu Dec 08, 2011 12:45 am
I believe you are trying to convert current H4 tags into H2 tags in News Show Pro latest version for Joomla 1.5 .
If this is correct see below required changes. Backup your files and change all h4 to h2
modules\mod_news_pro_gk4\interface\css\style.css
Code: Select all
   Line 42:    .nsp_main .nsp_art h4.nsp_header{}
   Line 43:       .nsp_main .nsp_art h4.nsp_header a{}
   Line 44:       .nsp_main .nsp_art h4.nsp_header a:hover{}
   Line 76:    .nsp_main .nsp_links ul li h4{}
   Line 77:    .nsp_main .nsp_links ul li h4 a{}
   Line 78:    .nsp_main .nsp_links ul li h4 a:hover{}

modules\mod_news_pro_gk4\interface\css\style.portal.mode.1.css
Code: Select all
   Line 11: .nsp_main_portal_mode1 .nsp_art h4.nsp_header{}
   Line 12:    .nsp_main_portal_mode1 .nsp_art h4.nsp_header a{}
   Line 13:    .nsp_main_portal_mode1 .nsp_art h4.nsp_header a:hover{}

modules\mod_news_pro_gk4\interface\css\style.portal.mode.2.css
Code: Select all
   Line 22: .nsp_main_portal_mode2 .nsp_bottom_interface .nsp_art_headline .nsp_headline h4 { font-weight:bold; font-size: 12px; }
   Line 23: .nsp_main_portal_mode2 .nsp_bottom_interface .nsp_art_headline .nsp_headline h4 a { color: #1a1a1a; }
   Line 24: .nsp_main_portal_mode2 .nsp_bottom_interface .nsp_art_headline .nsp_headline h4 a:hover { color: #3477bb; }

modules\\mod_news_pro_gk4\tmpl\layout.parts.php
Code: Select all
   Line 25:             return '<h4 class="nsp_header'.$class.'"><a href="'.$link.'" title="'.str_replace('"', '', $news_title).'">'.$title.'</a></h4>';   
   Line 25:             return '<h4 class="nsp_header'.$class.'"><a href="'.$link.'" title="'.str_replace('"', '', $news_title).'">'.$title.'</a></h4>';   
   Line 27:             return '<h4 class="nsp_header'.$class.'" title="'.str_replace('"', '', $news_title).'">'.$title.'</h4>';
   Line 27:             return '<h4 class="nsp_header'.$class.'" title="'.str_replace('"', '', $news_title).'">'.$title.'</h4>';
   Line 182:          if(JString::strlen($title) > 0) $title = '<h4><a href="'.JRoute::_(ContentHelperRoute::getArticleRoute($news_id, $news_cid, $news_sid)).'" title="'.str_replace('"', '', $news_title).'">'.$title.'</a></h4>';
   Line 182:          if(JString::strlen($title) > 0) $title = '<h4><a href="'.JRoute::_(ContentHelperRoute::getArticleRoute($news_id, $news_cid, $news_sid)).'" title="'.str_replace('"', '', $news_title).'">'.$title.'</a></h4>';
   Line 201:             return '<h4 class="nsp_header'.$class.'"><a href="'.$link.'" title="'.str_replace('"', '', $news_title).'">'.$title.'</a></h4>';   
   Line 201:             return '<h4 class="nsp_header'.$class.'"><a href="'.$link.'" title="'.str_replace('"', '', $news_title).'">'.$title.'</a></h4>';   
   Line 203:             return '<h4 class="nsp_header'.$class.'" title="'.str_replace('"', '', $news_title).'">'.$title.'</h4>';
   Line 203:             return '<h4 class="nsp_header'.$class.'" title="'.str_replace('"', '', $news_title).'">'.$title.'</h4>';
   Line 525:          if(JString::strlen($title) > 0) $title = '<h4><a href="'.urldecode(JRoute::_(K2HelperRoute::getItemRoute($news_id.':'.urlencode($news_alias), $news_cid.':'.urlencode($news_cat_alias)))).'" title="'.str_replace('"', '', $news_title).'">'.$title.'</a></h4>';
   Line 525:          if(JString::strlen($title) > 0) $title = '<h4><a href="'.urldecode(JRoute::_(K2HelperRoute::getItemRoute($news_id.':'.urlencode($news_alias), $news_cid.':'.urlencode($news_cat_alias)))).'" title="'.str_replace('"', '', $news_title).'">'.$title.'</a></h4>';
   Line 541:             return '<h4 class="nsp_header'.$class.'"><a href="'.$link.'" title="'.str_replace('"', '', $news_title).'">'.$title.'</a></h4>';   
   Line 541:             return '<h4 class="nsp_header'.$class.'"><a href="'.$link.'" title="'.str_replace('"', '', $news_title).'">'.$title.'</a></h4>';   
   Line 543:             return '<h4 class="nsp_header'.$class.'" title="'.str_replace('"', '', $news_title).'">'.$title.'</h4>';
   Line 543:             return '<h4 class="nsp_header'.$class.'" title="'.str_replace('"', '', $news_title).'">'.$title.'</h4>';
   Line 662:          if(JString::strlen($title) > 0) $title = '<h4><a href="index.php?page=shop.product_details&amp;category_id='.$news_cid.'&amp;flypage=flypage.tpl&amp;product_id='.$news_id.'&amp;option=com_virtuemart&amp;Itemid='.$config['vm_itemid'].'" title="'.str_replace('"', '',$news_title).'">'.$title.'</a></h4>';
   Line 662:          if(JString::strlen($title) > 0) $title = '<h4><a href="index.php?page=shop.product_details&amp;category_id='.$news_cid.'&amp;flypage=flypage.tpl&amp;product_id='.$news_id.'&amp;option=com_virtuemart&amp;Itemid='.$config['vm_itemid'].'" title="'.str_replace('"', '',$news_title).'">'.$title.'</a></h4>';

\templates\gk_twn2\css\gk_stuff.css
Code: Select all
   Line 216: .nsp_art h4.nsp_header,
   Line 217: .nsp_art h4.nsp_header a { font-size:18px; }
   Line 218: .nsp_art h4.nsp_header { line-height:16px; margin-bottom: 6px; margin-top: 5px }
   Line 220: .nsp_links h4 a { }
   Line 221: .nsp_links h4 a:hover,
   Line 222: .nsp_art h4.nsp_header a:hover { }
   Line 241: .nsp_links ul li h4 { font-size:12px; line-height:1.2!important; font-weight: bold; font-family: Arial, Verdana, sans-serif; margin-bottom: 4px; }
   Line 257: .big_title .nsp_art h4.nsp_header,
   Line 258: .big_title .nsp_art h4.nsp_header a { font-size:28px; line-height: 32px; }
   Line 261: .big_title .nsp_links ul li h4 { font-size:10px; line-height:160%; font-weight: bold; font-family: Arial, Verdana, sans-serif; margin-bottom: 4px; text-transform: uppercase; }
   Line 267: .color_title .nsp_art h4.nsp_header { margin-bottom: 18px!important; margin-top: 0!important; padding-top: 18px!important; }
   Line 268: .color_title .nsp_art h4.nsp_header,
   Line 269: .color_title .nsp_art h4.nsp_header a { color: #a5240e; }
   Line 270: .color_title .nsp_art h4.nsp_header:hover,
   Line 271: .color_title .nsp_art h4.nsp_header a:hover { color: #333; }
   Line 274: .color_title .nsp_links ul li h4 { font-size:10px; line-height:160%; font-weight: bold; font-family: Arial, Verdana, sans-serif; margin-bottom: 4px; text-transform: uppercase; }
   Line 298: div.header .nsp_links ul li h4 { line-height: 1.2!important; font-weight:normal; font-size: 16px; }
   Line 323: .gkmenu .module .nsp_art h4.nsp_header,
   Line 324: .gkmenu .module .nsp_art h4.nsp_header a,
   Line 325: .gkmenu .group-content .nsp_art h4.nsp_header,
   Line 326: .gkmenu .group-content .nsp_art h4.nsp_header a { font-size: 14px!important; }

\templates\gk_twn2\css\styleX.css X replaced with your style number.
Code: Select all
Line 113: .color_title .nsp_art h4.nsp_header,
Line 114: .color_title .nsp_art h4.nsp_header a { color: #a5240e; }


Changing article title H2 tags to H1 tags in articles. Backup your files and change all occurrences of h2 to h1
\templates\gk_twn2\html\com_content\article\default.php

Code: Select all
   Line 34: <h2 class="contentheading<?php echo $this->escape($this->params->get( 'pageclass_sfx' )); ?> clearfix">
   Line 42: </h2>

\templates\gk_twn2\html\com_content\category\blog_item.php
Code: Select all
Line 37:    <h2 class="contentheading<?php echo $this->escape($this->item->params->get( 'pageclass_sfx' )); ?>"><span><?php if ($this->item->params->get('link_titles') && $this->item->readmore_link != '') : ?><a href="<?php echo $this->item->readmore_link; ?>" class="contentpagetitle<?php echo $this->escape($this->item->params->get( 'pageclass_sfx' )); ?>"><?php echo $this->escape($this->item->title); ?></a><?php else : ?><?php echo $this->escape($this->item->title); ?><?php endif; ?></span></h2>

\templates\gk_twn2\html\com_content\frontpage\default_item.php
Code: Select all
   Line 37: <h2 class="contentheading<?php echo $this->escape($this->item->params->get( 'pageclass_sfx' )); ?>">
   Line 45: </h2>

\templates\gk_twn2\html\com_content\section\blog_item.php
Code: Select all
   Line 86: <h2 class="contentheading<?php echo $this->escape($this->item->params->get( 'pageclass_sfx' )); ?>"><span><?php if ($this->item->params->get('link_titles') && $this->item->readmore_link != '') : ?><a href="<?php echo $this->item->readmore_link; ?>" class="contentpagetitle<?php echo $this->escape($this->item->params->get( 'pageclass_sfx' )); ?>"><?php echo $this->escape($this->item->title); ?></a><?php else : ?><?php echo $this->escape($this->item->title); ?><?php endif; ?></span></h2>


See you around...
User avatar
Platinum Boarder

GK User
Thu Dec 08, 2011 1:40 am
normanUK wrote:I believe you are trying to convert current H4 tags into H2 tags in News Show Pro latest version for Joomla 1.5 .
If this is correct see below required changes. Backup your files and change all h4 to h2
modules\mod_news_pro_gk4\interface\css\style.css
Code: Select all
   Line 42:    .nsp_main .nsp_art h4.nsp_header{}
   Line 43:       .nsp_main .nsp_art h4.nsp_header a{}
   Line 44:       .nsp_main .nsp_art h4.nsp_header a:hover{}
   Line 76:    .nsp_main .nsp_links ul li h4{}
   Line 77:    .nsp_main .nsp_links ul li h4 a{}
   Line 78:    .nsp_main .nsp_links ul li h4 a:hover{}

modules\mod_news_pro_gk4\interface\css\style.portal.mode.1.css
Code: Select all
   Line 11: .nsp_main_portal_mode1 .nsp_art h4.nsp_header{}
   Line 12:    .nsp_main_portal_mode1 .nsp_art h4.nsp_header a{}
   Line 13:    .nsp_main_portal_mode1 .nsp_art h4.nsp_header a:hover{}

modules\mod_news_pro_gk4\interface\css\style.portal.mode.2.css
Code: Select all
   Line 22: .nsp_main_portal_mode2 .nsp_bottom_interface .nsp_art_headline .nsp_headline h4 { font-weight:bold; font-size: 12px; }
   Line 23: .nsp_main_portal_mode2 .nsp_bottom_interface .nsp_art_headline .nsp_headline h4 a { color: #1a1a1a; }
   Line 24: .nsp_main_portal_mode2 .nsp_bottom_interface .nsp_art_headline .nsp_headline h4 a:hover { color: #3477bb; }

modules\\mod_news_pro_gk4\tmpl\layout.parts.php
Code: Select all
   Line 25:             return '<h4 class="nsp_header'.$class.'"><a href="'.$link.'" title="'.str_replace('"', '', $news_title).'">'.$title.'</a></h4>';   
   Line 25:             return '<h4 class="nsp_header'.$class.'"><a href="'.$link.'" title="'.str_replace('"', '', $news_title).'">'.$title.'</a></h4>';   
   Line 27:             return '<h4 class="nsp_header'.$class.'" title="'.str_replace('"', '', $news_title).'">'.$title.'</h4>';
   Line 27:             return '<h4 class="nsp_header'.$class.'" title="'.str_replace('"', '', $news_title).'">'.$title.'</h4>';
   Line 182:          if(JString::strlen($title) > 0) $title = '<h4><a href="'.JRoute::_(ContentHelperRoute::getArticleRoute($news_id, $news_cid, $news_sid)).'" title="'.str_replace('"', '', $news_title).'">'.$title.'</a></h4>';
   Line 182:          if(JString::strlen($title) > 0) $title = '<h4><a href="'.JRoute::_(ContentHelperRoute::getArticleRoute($news_id, $news_cid, $news_sid)).'" title="'.str_replace('"', '', $news_title).'">'.$title.'</a></h4>';
   Line 201:             return '<h4 class="nsp_header'.$class.'"><a href="'.$link.'" title="'.str_replace('"', '', $news_title).'">'.$title.'</a></h4>';   
   Line 201:             return '<h4 class="nsp_header'.$class.'"><a href="'.$link.'" title="'.str_replace('"', '', $news_title).'">'.$title.'</a></h4>';   
   Line 203:             return '<h4 class="nsp_header'.$class.'" title="'.str_replace('"', '', $news_title).'">'.$title.'</h4>';
   Line 203:             return '<h4 class="nsp_header'.$class.'" title="'.str_replace('"', '', $news_title).'">'.$title.'</h4>';
   Line 525:          if(JString::strlen($title) > 0) $title = '<h4><a href="'.urldecode(JRoute::_(K2HelperRoute::getItemRoute($news_id.':'.urlencode($news_alias), $news_cid.':'.urlencode($news_cat_alias)))).'" title="'.str_replace('"', '', $news_title).'">'.$title.'</a></h4>';
   Line 525:          if(JString::strlen($title) > 0) $title = '<h4><a href="'.urldecode(JRoute::_(K2HelperRoute::getItemRoute($news_id.':'.urlencode($news_alias), $news_cid.':'.urlencode($news_cat_alias)))).'" title="'.str_replace('"', '', $news_title).'">'.$title.'</a></h4>';
   Line 541:             return '<h4 class="nsp_header'.$class.'"><a href="'.$link.'" title="'.str_replace('"', '', $news_title).'">'.$title.'</a></h4>';   
   Line 541:             return '<h4 class="nsp_header'.$class.'"><a href="'.$link.'" title="'.str_replace('"', '', $news_title).'">'.$title.'</a></h4>';   
   Line 543:             return '<h4 class="nsp_header'.$class.'" title="'.str_replace('"', '', $news_title).'">'.$title.'</h4>';
   Line 543:             return '<h4 class="nsp_header'.$class.'" title="'.str_replace('"', '', $news_title).'">'.$title.'</h4>';
   Line 662:          if(JString::strlen($title) > 0) $title = '<h4><a href="index.php?page=shop.product_details&amp;category_id='.$news_cid.'&amp;flypage=flypage.tpl&amp;product_id='.$news_id.'&amp;option=com_virtuemart&amp;Itemid='.$config['vm_itemid'].'" title="'.str_replace('"', '',$news_title).'">'.$title.'</a></h4>';
   Line 662:          if(JString::strlen($title) > 0) $title = '<h4><a href="index.php?page=shop.product_details&amp;category_id='.$news_cid.'&amp;flypage=flypage.tpl&amp;product_id='.$news_id.'&amp;option=com_virtuemart&amp;Itemid='.$config['vm_itemid'].'" title="'.str_replace('"', '',$news_title).'">'.$title.'</a></h4>';

\templates\gk_twn2\css\gk_stuff.css
Code: Select all
   Line 216: .nsp_art h4.nsp_header,
   Line 217: .nsp_art h4.nsp_header a { font-size:18px; }
   Line 218: .nsp_art h4.nsp_header { line-height:16px; margin-bottom: 6px; margin-top: 5px }
   Line 220: .nsp_links h4 a { }
   Line 221: .nsp_links h4 a:hover,
   Line 222: .nsp_art h4.nsp_header a:hover { }
   Line 241: .nsp_links ul li h4 { font-size:12px; line-height:1.2!important; font-weight: bold; font-family: Arial, Verdana, sans-serif; margin-bottom: 4px; }
   Line 257: .big_title .nsp_art h4.nsp_header,
   Line 258: .big_title .nsp_art h4.nsp_header a { font-size:28px; line-height: 32px; }
   Line 261: .big_title .nsp_links ul li h4 { font-size:10px; line-height:160%; font-weight: bold; font-family: Arial, Verdana, sans-serif; margin-bottom: 4px; text-transform: uppercase; }
   Line 267: .color_title .nsp_art h4.nsp_header { margin-bottom: 18px!important; margin-top: 0!important; padding-top: 18px!important; }
   Line 268: .color_title .nsp_art h4.nsp_header,
   Line 269: .color_title .nsp_art h4.nsp_header a { color: #a5240e; }
   Line 270: .color_title .nsp_art h4.nsp_header:hover,
   Line 271: .color_title .nsp_art h4.nsp_header a:hover { color: #333; }
   Line 274: .color_title .nsp_links ul li h4 { font-size:10px; line-height:160%; font-weight: bold; font-family: Arial, Verdana, sans-serif; margin-bottom: 4px; text-transform: uppercase; }
   Line 298: div.header .nsp_links ul li h4 { line-height: 1.2!important; font-weight:normal; font-size: 16px; }
   Line 323: .gkmenu .module .nsp_art h4.nsp_header,
   Line 324: .gkmenu .module .nsp_art h4.nsp_header a,
   Line 325: .gkmenu .group-content .nsp_art h4.nsp_header,
   Line 326: .gkmenu .group-content .nsp_art h4.nsp_header a { font-size: 14px!important; }

\templates\gk_twn2\css\styleX.css X replaced with your style number.
Code: Select all
Line 113: .color_title .nsp_art h4.nsp_header,
Line 114: .color_title .nsp_art h4.nsp_header a { color: #a5240e; }


Changing article title H2 tags to H1 tags in articles. Backup your files and change all occurrences of h2 to h1
\templates\gk_twn2\html\com_content\article\default.php
Code: Select all
<?php if ($this->params->get('show_title',1)) : ?>
<h2 class="contentheading<?php echo $this->escape($this->params->get( 'pageclass_sfx' )); ?> clearfix">
   <?php if ($this->params->get('link_titles') && $this->article->readmore_link != '') : ?>
   <span>
      <a href="<?php echo $this->article->readmore_link; ?>" class="contentpagetitle<?php echo $this->escape($this->params->get( 'pageclass_sfx' )); ?>"><?php echo $this->escape(isset($this->article->page_title)?$this->article->page_title:$this->article->title); ?></a>
   </span>
   <?php else : ?>
   <span><?php echo $this->escape(isset($this->article->page_title)?$this->article->page_title:$this->article->title); ?></span>
   <?php endif; ?>
</h2>
<?php endif; ?>

\templates\gk_twn2\html\com_content\category\blog_item.php
Code: Select all
   <?php if ($this->item->params->get('show_title')) : ?>

   <h2 class="contentheading<?php echo $this->escape($this->item->params->get( 'pageclass_sfx' )); ?>"><span><?php if ($this->item->params->get('link_titles') && $this->item->readmore_link != '') : ?><a href="<?php echo $this->item->readmore_link; ?>" class="contentpagetitle<?php echo $this->escape($this->item->params->get( 'pageclass_sfx' )); ?>"><?php echo $this->escape($this->item->title); ?></a><?php else : ?><?php echo $this->escape($this->item->title); ?><?php endif; ?></span></h2>

   <?php endif; ?>

\templates\gk_twn2\html\com_content\frontpage\default_item.php
Code: Select all
<?php if ($this->item->params->get('show_title')) : ?>
<h2 class="contentheading<?php echo $this->escape($this->item->params->get( 'pageclass_sfx' )); ?>">
   <?php if ($this->item->params->get('link_titles') && $this->item->readmore_link != '') : ?>
   <span>
      <a href="<?php echo $this->item->readmore_link; ?>" class="contentpagetitle<?php echo $this->escape($this->item->params->get( 'pageclass_sfx' )); ?>"><?php echo $this->escape($this->item->title); ?></a>
   </span>
   <?php else : ?>
   <span><?php echo $this->escape($this->item->title); ?></span>
   <?php endif; ?>
</h2>
<?php endif; ?>

\templates\gk_twn2\html\com_content\section\blog_item.php
Code: Select all
<div class="itemToolbar">
<?php if ($this->item->params->get('show_title')) : ?>
<h2 class="contentheading<?php echo $this->escape($this->item->params->get( 'pageclass_sfx' )); ?>"><span><?php if ($this->item->params->get('link_titles') && $this->item->readmore_link != '') : ?><a href="<?php echo $this->item->readmore_link; ?>" class="contentpagetitle<?php echo $this->escape($this->item->params->get( 'pageclass_sfx' )); ?>"><?php echo $this->escape($this->item->title); ?></a><?php else : ?><?php echo $this->escape($this->item->title); ?><?php endif; ?></span></h2>
<?php endif; ?>


See you around...


hi just tried this and it has made the titles huge. how can i keep it but have the titles smaller
User avatar
Platinum Boarder

GK User
Thu Dec 08, 2011 1:51 am
You are missing css for titles. Double check you have edited below line correctly.
\templates\gk_twn2\css\gk_stuff.css
Code: Select all
   Line 216: .nsp_art h4.nsp_header,
   Line 217: .nsp_art h4.nsp_header a { font-size:18px; }
   Line 218: .nsp_art h4.nsp_header { line-height:16px; margin-bottom: 6px; margin-top: 5px }

And disable cache when you are building your website... Enable it when you are happy with design/layout changes etc.
User avatar
Platinum Boarder

GK User
Thu Dec 08, 2011 2:02 am
normanUK wrote:You are missing css for titles. Double check you have edited below line correctly.
\templates\gk_twn2\css\gk_stuff.css
Code: Select all
   Line 216: .nsp_art h4.nsp_header,
   Line 217: .nsp_art h4.nsp_header a { font-size:18px; }
   Line 218: .nsp_art h4.nsp_header { line-height:16px; margin-bottom: 6px; margin-top: 5px }

And disable cache when you are building your website... Enable it when you are happy with design/layout changes etc.


i have changed the h4 to h2 and changed the font size to 14px on 217
User avatar
Platinum Boarder

GK User
Thu Dec 08, 2011 2:08 am
Can you disable css cache pls....

Edit... I can see it is working now.
User avatar
Platinum Boarder

GK User
Thu Dec 08, 2011 2:17 am
normanUK wrote:Can you disable css cache pls....

Edit... I can see it is working now.


hi. just disabled it, sorry i got confused and thought i just need to clear cache.
User avatar
Platinum Boarder

GK User
Thu Dec 08, 2011 2:19 am
in2town wrote:
normanUK wrote:Can you disable css cache pls....

Edit... I can see it is working now.


hi. just disabled it, sorry i got confused and thought i just need to clear cache.

now i have disabled it in global configuation, what shall i do now. just went to check it again and it is still big
User avatar
Platinum Boarder

GK User
Thu Dec 08, 2011 2:25 am
I can see it is working fine they are font size :14px
User avatar
Platinum Boarder

GK User
Thu Dec 08, 2011 2:27 am
normanUK wrote:I can see it is working fine they are font size :14px


ok at my end they are huge. for example on the home page where it says coronation street, this looks like it is a sixe 24px

i will try and upload an image.
User avatar
Platinum Boarder

GK User
Thu Dec 08, 2011 2:30 am
normanUK wrote:I can see it is working fine they are font size :14px


hi i have just seen it working, my internet must be really slow here. Many thanks for your help. What size do you think i should set it for, as i have looked and it seems a bit small in places like the title Kris Humphries and Kim Kardashian Are At War is to small
User avatar
Platinum Boarder

GK User
Thu Dec 08, 2011 2:50 am
I think 16px would be better. Also why are you stretching your images. You should try to stick with original ratio ( height to width ) as otherwise it doesn't look professional.

See you around...
User avatar
Platinum Boarder

GK User
Thu Dec 08, 2011 3:25 am
normanUK wrote:I think 16px would be better. Also why are you stretching your images. You should try to stick with original ratio ( height to width ) as otherwise it doesn't look professional.

See you around...


hi norman many thanks for this, just one last quick question. the stretched images, i have taken them off but now on the home page i am finding something very strange. for example Katie Price Has Been Blamed For The Rise in Breast Implants, the picture has now gone very small and there is black covering the picture. can you let me know what setting the thumbnail section should be set at please.

this is what i have

Create thumbnails on
Use K2 images on
Image auto-scale on
Keep aspect ratio on
Thumbnail width 194px
Thumbnail height 283px

but even though this image is big enough, there is still black showing.
User avatar
Platinum Boarder

GK User
Fri Dec 30, 2011 9:05 am
hi i have done this with both of my site http://www.cheapflightsgatwick.com and http://www.in2town.co.uk but i cannot see the h1 tags. i can see the h2 tags but not h1 tags, please can you let me know what i am doing wrong so i can solve this and make it better for search engines, many thanks
User avatar
Platinum Boarder

GK User
Fri Dec 30, 2011 9:15 am
Changes posted in this topic are for H2 tags NOT H1 tags.
User avatar
Platinum Boarder

GK User
Fri Dec 30, 2011 9:21 am
normanUK wrote:Changes posted in this topic are for H2 tags NOT H1 tags.


hi norman did not expect you to be around so early but glad you are. how do i solve this problem. how can i get h1 tags showing for content pages for example http://www.cheapflightsgatwick.com/news/package-holiday-news/benidorm-has-become-a-hot-spot-for-cheap-flights

I would like the pages to have a h1 tag to get better seo. i have tried a plug in called header tags http://www.conflate.nl/joomla-extensies.html but that has not helped either.

any help would be great
User avatar
Platinum Boarder

GK User
Fri Dec 30, 2011 11:38 am
For your example link you need to do below changes. I am assuming you want to change title only.

Find File: \templates\gk_twn2\html\com_k2\templates\default\item.php
Find Lines: 75 to 93
Which is below
Code: Select all
               <div class="itemToolbar">
                     <?php if($this->item->params->get('itemTitle')): ?>
                    
                     <!-- Item title -->
                    
                     <h2 class="itemTitle">
                           <?php echo $this->item->title; ?>
                           <?php if($this->item->params->get('itemFeaturedNotice') && $this->item->featured): ?>
                          
                           <!-- Featured flag -->
                          
                           <span>
                           <sup>
                           <?php echo JText::_('K2_FEATURED'); ?>
                           </sup>
                           </span>
                           <?php endif; ?>
                     </h2>
                     <?php endif; ?>

Change it to below
Code: Select all
               <div class="itemToolbar">
                     <?php if($this->item->params->get('itemTitle')): ?>
                    
                     <!-- Item title -->
                    
                     <h1 class="itemTitle">
                           <?php echo $this->item->title; ?>
                           <?php if($this->item->params->get('itemFeaturedNotice') && $this->item->featured): ?>
                          
                           <!-- Featured flag -->
                          
                           <span>
                           <sup>
                           <?php echo JText::_('K2_FEATURED'); ?>
                           </sup>
                           </span>
                           <?php endif; ?>
                     </h1>
                     <?php endif; ?>


See you around...
User avatar
Platinum Boarder

GK User
Fri Dec 30, 2011 2:08 pm
normanUK wrote:For your example link you need to do below changes. I am assuming you want to change title only.

Find File: \templates\gk_twn2\html\com_k2\templates\default\item.php
Find Lines: 75 to 93
Which is below
Code: Select all
               <div class="itemToolbar">
                     <?php if($this->item->params->get('itemTitle')): ?>
                    
                     <!-- Item title -->
                    
                     <h2 class="itemTitle">
                           <?php echo $this->item->title; ?>
                           <?php if($this->item->params->get('itemFeaturedNotice') && $this->item->featured): ?>
                          
                           <!-- Featured flag -->
                          
                           <span>
                           <sup>
                           <?php echo JText::_('K2_FEATURED'); ?>
                           </sup>
                           </span>
                           <?php endif; ?>
                     </h2>
                     <?php endif; ?>

Change it to below
Code: Select all
               <div class="itemToolbar">
                     <?php if($this->item->params->get('itemTitle')): ?>
                    
                     <!-- Item title -->
                    
                     <h1 class="itemTitle">
                           <?php echo $this->item->title; ?>
                           <?php if($this->item->params->get('itemFeaturedNotice') && $this->item->featured): ?>
                          
                           <!-- Featured flag -->
                          
                           <span>
                           <sup>
                           <?php echo JText::_('K2_FEATURED'); ?>
                           </sup>
                           </span>
                           <?php endif; ?>
                     </h1>
                     <?php endif; ?>


See you around...


Thanks norman, as normal you are spot on and great with your advice.
User avatar
Platinum Boarder

teitbite
Fri Dec 30, 2011 6:18 pm
Hi

If I'm not wrong You need to eliminate any other h1 elements with this solution. I mean the site name or logo title. Have we worked on this already ?
User avatar
Moderator

GK User
Sat Dec 31, 2011 12:28 am
teitbite wrote:Hi

If I'm not wrong You need to eliminate any other h1 elements with this solution. I mean the site name or logo title. Have we worked on this already ?


I am trying to look at the coding on my site to see if the following website http://www.in2town.co.uk is showing on the main page lifestyle magazine as the h1 title and then on http://www.cheapflightsgatwick.com to see if the title for that site is showing cheap flights gatwick.

The trouble i am having which i am about to post is, on the cheap flights gatwick site, google is not visiting it and has not done so for four days and is not showing my main page in google but i am about to explain this in a new post as this may get a bit confusing.
User avatar
Platinum Boarder

teitbite
Mon Jan 02, 2012 7:54 am
Hi

Ok. Let me know the link to the new post as well. I still can see H1 at logo witch can be confusing after the change for google. Also Your logo is covering search field on in2towns.
User avatar
Moderator

GK User
Mon Jan 02, 2012 2:51 pm
teitbite wrote:Hi

Ok. Let me know the link to the new post as well. I still can see H1 at logo witch can be confusing after the change for google. Also Your logo is covering search field on in2towns.


what i am trying to do is to have each page as a h1 for the title which includes the homes page of http://www.in2town.co.uk which i want it as lifestyle magazine and also for http://www.cheapflightsgatwick.com which i want as cheap flights gatwick

I have seen the h1 showing for the logo which is confusing and i just need to learn how to sort this out for seo reasons.

One thing i have noticed is, i was doing great for my site www.cheapflightsgatwick in the search engines espeically for the search term cheap flights gatwick and now after changing the template i am doing really bad.
User avatar
Platinum Boarder

teitbite
Mon Jan 02, 2012 4:42 pm
Hi

Templates are prepared for SEO already, but every change means robots do not find the usual settings that's why it can take a while to get back. Anyway I think You should change the logo's H1 to div and show me the site than. I'll tell You what css to fix.
User avatar
Moderator

GK User
Thu Jan 05, 2012 2:14 am
teitbite wrote:Hi

Templates are prepared for SEO already, but every change means robots do not find the usual settings that's why it can take a while to get back. Anyway I think You should change the logo's H1 to div and show me the site than. I'll tell You what css to fix.


Hi just noticed my reply on here to you is not showing. Can you please let me know how to change the logo h1 to div, not sure where to do this. many thanks
User avatar
Platinum Boarder

teitbite
Sat Jan 07, 2012 2:57 am
Hi

Please simply edit file /layouts/blocks/top.php and change H1 to DIV in code:

Code: Select all
   <h1 class="logo">
         <a href="index.php" title="<?php echo $this->sitename(); ?>"><?php echo $this->sitename(); ?></a>
   </h1>


Than show me the site and I'll tell You what to do next.
User avatar
Moderator

GK User
Sat Jan 07, 2012 3:53 am
teitbite wrote:Hi

Please simply edit file /layouts/blocks/top.php and change H1 to DIV in code:

Code: Select all
   <h1 class="logo">
         <a href="index.php" title="<?php echo $this->sitename(); ?>"><?php echo $this->sitename(); ?></a>
   </h1>


Than show me the site and I'll tell You what to do next.

hi i have done that
User avatar
Platinum Boarder

teitbite
Sat Jan 07, 2012 6:49 pm
Hi

I've added this to override.css:

Code: Select all
div.logo {
    height: 170px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    top: 44px;
    width: 990px;
}

div.logo a {
    background: url("/templates/gk_twn2/images/style1/logo.png") no-repeat scroll 0 0 transparent;
    display: block;
    height: 170px;
    margin: 0;
    text-indent: -999em;
    width: 990px;
}


and enabled using of this file in template settings.

Anyway I do not see that the H1 was replaced. Can You please check it ?
User avatar
Moderator

GK User
Sun Jan 08, 2012 2:49 am
teitbite wrote:Hi

I've added this to override.css:

Code: Select all
div.logo {
    height: 170px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    top: 44px;
    width: 990px;
}

div.logo a {
    background: url("/templates/gk_twn2/images/style1/logo.png") no-repeat scroll 0 0 transparent;
    display: block;
    height: 170px;
    margin: 0;
    text-indent: -999em;
    width: 990px;
}


and enabled using of this file in template settings.

Anyway I do not see that the H1 was replaced. Can You please check it ?

hi i am a bit confused on this post as this is for image, have you done this on your site, is this is what you are saying
User avatar
Platinum Boarder

teitbite
Mon Jan 09, 2012 7:22 pm
Hi

Sorry I do not understand. This is a solution to remove H1 from logo area so SEO will focus on a content part.
User avatar
Moderator


cron