Hi
I am trying to add meta tags into a website that is using couchcms but when I added them, it messed up the layout, it was like it could not get the css styling from the stylesheet, can anyone post the correct way to add meta tags to a web page using couchcms please so they can added, edited from the couchcms admin side
the pages are using clonable template pages
below is what I had in my header.php file
below is what I had in my index.php file
Thank you in advance
Ian
I am trying to add meta tags into a website that is using couchcms but when I added them, it messed up the layout, it was like it could not get the css styling from the stylesheet, can anyone post the correct way to add meta tags to a web page using couchcms please so they can added, edited from the couchcms admin side
the pages are using clonable template pages
below is what I had in my header.php file
- Code: Select all
<title><cms:get_custom_field 'page_title' masterpage=k_template_name /></title>
<meta name="description" content=<cms:get_custom_field 'page_desc' masterpage=k_template_name />
<meta name="keywords" content=<cms:get_custom_field 'page_keywords' masterpage=k_template_name />
below is what I had in my index.php file
- Code: Select all
<cms:editable name='page_section_header' label='Homepage Meta/Head Details' type='group' />
<cms:editable name='page_title' type='text' label='Page Title' group='page_section_header' maxlength="180" desc='For SEO Please keep it 180 or less Characters'>Please enter the page title here</cms:editable>
<cms:editable name='page_desc' type='text' label='Page Description' group='page_section_header' maxlength="180" desc='For SEO Please keep it 180 or less Characters'>Please enter a short page description here</cms:editable>
<cms:editable name='page_keywords' type='text' label='Page Keywords' desc='Seperate key words with a comma' group='page_section_header' desc='For SEO Please keep it 10 keyword Phrases Seperated by Commas'>Please, enter, keywords, here, with, commas, separating, them</cms:editable>
<title><cms:if k_is_list ><cms:get_custom_field 'page_title' masterpage=k_template_name />
<cms:else />
<cms:if k_is_page ><cms:show page_title /></cms:if>
<cms:if k_is_folder ><cms:show page_title />
</cms:if><cms:if k_is_archive >
<cms:show page_title /></cms:if>
<cms:if k_is_home ><cms:show page_title /></cms:if></cms:if></title>
<meta name="description" content="<cms:if k_is_list ><cms:get_custom_field 'page_desc' masterpage=k_template_name /><cms:else /><cms:if k_is_page ><cms:show page_desc /></cms:if><cms:if k_is_folder ><cms:show page_desc /></cms:if><cms:if k_is_archive ><cms:show page_desc /></cms:if><cms:if k_is_home ><cms:show page_title /></cms:if></cms:if>" />
<meta name="keywords" content="<cms:if k_is_list ><cms:get_custom_field 'page_keywords' masterpage=k_template_name /><cms:else /><cms:if k_is_page ><cms:show page_keywords /></cms:if><cms:if k_is_folder ><cms:show page_keywords /></cms:if><cms:if k_is_archive ><cms:show page_desc /></cms:if><cms:if k_is_home ><cms:show page_title /></cms:if></cms:if>" />
Thank you in advance
Ian