Timpet Posted April 29, 2010 Share Posted April 29, 2010 Dublicate content is a bitch, it gives your page bad points at google, so i have cut down some of it in the categories.In each categori there is a decription, when this decription keeps comeing up on page 1, page 2, page 3 and so on of the same categori this creates dublicate content.The tekst is though good the SEO so removing it completly is no good, there for i modified my themes category.tpl and category.php to cut down on the reaccuring content.at category.tpl find: {if $category->description} {$category->description} {/if} Replace with: {if $category->description} {if !$page_} {$category->description} {/if} {/if} At at category.php find: $smarty->assign(array( 'allow_oosp' => intval(Configuration::get('PS_ORDER_OUT_OF_STOCK')), 'suppliers' => Supplier::getSuppliers(), 'errors' => $errors )); Replace with: $smarty->assign(array( 'allow_oosp' => intval(Configuration::get('PS_ORDER_OUT_OF_STOCK')), 'suppliers' => Supplier::getSuppliers(), 'errors' => $errors, 'page_' => $_GET['p'] )); Link to comment Share on other sites More sharing options...
rocky Posted April 30, 2010 Share Posted April 30, 2010 You don't need to modify category.php to do this, you can simply use the following code in category.tpl: {if $category->description} {if !$smarty.get.p} {$category->description} {/if} {/if} Link to comment Share on other sites More sharing options...
Timpet Posted April 30, 2010 Author Share Posted April 30, 2010 Nice, i dint know smarty had that function as well Link to comment Share on other sites More sharing options...
nuttis Posted September 8, 2010 Share Posted September 8, 2010 HiI have no idea if this is the same as i am not so good at seo. I have search in the forum and could'nt find anything. What i wounder is if its bad to have same name on several subcategories?For exempleCategori1: WomanSubcategori1: PantsCategori2: ManSubcategori2: Pantsand so on. Is that bad in any point? Link to comment Share on other sites More sharing options...
Timpet Posted September 8, 2010 Author Share Posted September 8, 2010 It isnt bad if you make sure the content, title and meta description is different. Link to comment Share on other sites More sharing options...
nuttis Posted September 8, 2010 Share Posted September 8, 2010 Ok, then its ok for me. Thanks.About this Meta i understand its for SEO improvment. Where can i find info on the difference for those Meta Title, Meta Description and Meta Keywords?Do they show up on search engines? And what is shown if i dont fill in them? Link to comment Share on other sites More sharing options...
Timpet Posted September 8, 2010 Author Share Posted September 8, 2010 First off all it is'nt called meta title Only title.The keywords are not used much in seach engines these days, but i would recommend filling them out, perhaps one day search eniges will again look at them Title and meta description does show on google etc. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now