|
|
Forum moderator: bigblog |
uCoz Community » General Information » First Steps with uCoz » Why can't you have more than 20 personalized pages ? SEO (uniques meta tags for each page) |
Why can't you have more than 20 personalized pages ? SEO |
Vorpal, use conditional operators, and you will be able to specify different meta tags for different pages within one template. E.g.:
Code <?if($URI_ID$='page1')?> <meta name="description" content="description" /> <meta name="keywords" content="keywords" /> <?endif?> Code <?if($URI_ID$='page2')?> <meta name="description" content="description2" /> <meta name="keywords" content="keywords2" /> <?endif?> and so on. I'm not active on the forum anymore. Please contact other forum staff.
|
Vorpal, yes, you insert it into the Site Pages template as many times as you have pages.
It is more convenient to add meta tags to other modules, e.g. Site News. In this case you can use one of additional fields to enter keywords and description, and then use something like this in the template: Code <meta name="description" content="$OTHER1$" /> <meta name="keywords" content="$OTHER2$" /> I'm not active on the forum anymore. Please contact other forum staff.
|
Does each sub-domain benefit from another 20 personalized pages ?
If domain is example.com ? Thassos Island Portal :
https://thassos.one |
Does each sub-domain get it's own 20 personalized pages on top of the domain that also gets 20 ?
Thassos Island Portal :
https://thassos.one |
I tried myself the code but it does not work.
I used it in the <head> region and deleted the original title / meta description: Code <title>my site</title> <meta name="description" content="about my site"> <meta name="keywords" content="my, site, my site"> I replaces that with : Code <?if($URI_ID$='page1')?> <meta name="description" content="description" /> <meta name="keywords" content="keywords" /> <?endif?> Code <?if($URI_ID$='page2')?> <meta name="description" content="description2" /> <meta name="keywords" content="keywords2" /> <?endif?> etc. With and without / at the end. And for URL ID i used the ID provided in page editor. Example : <?if($URI_ID$='200')?> <?if($URI_ID$='123')?> Even if i use : <?if($URI_ID$='page200')?> <?if($URI_ID$='page123')?> it does not work. Thassos Island Portal :
https://thassos.one |
Urs, $URI_ID$ is not page ID, displayed in Page Editor. To get the $URI_ID$ of a page, go to the Design tab of the Admin Bar:
If it still does not work, provide the links to the pages where you tried it. I'm not active on the forum anymore. Please contact other forum staff.
|
I had to remove from Site Pages :
<title>name</title> <meta name="description" content="about name"> <meta name="keywords" content="name, about, about name"> And added : (i had to add title also and the following code seems to be the correct one that works) Code <?if($URI_ID$='page200')?> <title>name</title> <meta name="description" content="about name" /> <meta name="keywords" content="name, about, about name" /> <?endif?> Is the correct form : <meta name="keywords" content="keyword"> OR <meta name="keywords" content="keyword" /> (with / ) ? Now i have to add this for every single page in site pages right ? Otherwise the remaining pages will have the URL as title ? Using this conditional operator basically means i no longer need to use personalized pages right ? Can i use conditional operators for example to change the template design ? (for example removing global blocks left and right and extending the central text page to 80% or 100% of the width of the screen (what i did with the other personalized pages). What were the personalized pages intended for ? Must the conditional operators be used in the <head> section or can they be used anywhere else ? Where should they be put normally ? Thassos Island Portal :
https://thassos.one Post edited by Urs - Thursday, 2014-08-07, 11:24 PM
|
Is the correct form : <meta name="keywords" content="keyword"> OR <meta name="keywords" content="keyword" /> (with / ) ? Without / Yeah, for each page where you need unique meta tags. Using this conditional operator basically means i no longer need to use personalized pages right ? Yes. Can i use conditional operators for example to change the template design ? (for example removing global blocks left and right and extending the central text page to 80% or 100% of the width of the screen (what i did with the other personalized pages). Sure, you can use conditional operators to change design for specific pages as well. If you need several pages with completely different design, personalized pages would be more convenient. Must the conditional operators be used in the <head> section or can they be used anywhere else ? Where should they be put normally ? They can be used anywhere in a template. If you have additional questions about the conditional operators, please ask them in the following thread: http://forum.ucoz.com/forum/37-471-1 I'm not active on the forum anymore. Please contact other forum staff.
|
| |||
| |||