Adding Google Meta tag

Permalink
With out modifing the template header.php, is there a place in C5 interface to add these tags to the <head></head> area. Most site users will find these tools and want to add the tags with out having to call a programmer.

wizardontherun
 
Remo replied on at Permalink Reply
Remo
edit a page and click on properties
wizardontherun replied on at Permalink Reply
wizardontherun
I believe i tryed that but it only had 3 entries i could use, no custom entries.
frz replied on at Permalink Reply
frz
you can add custom attributes through the page types in dashboard and they will show up here - they can be used for all sorts of good stuff, including populating meta tags...

depending on the theme you end up using (particularly if it's been highly customized) some of these might not work.. on our default plain yogurt theme however meta description, keywords, and i think even a title overwrite field should be applied in the header area if they are set in properties for a page.
Paulpaints replied on at Permalink Reply
This is the first site I have created and I am not a developer...C5 has been very easy to use. Thank you for creating it!

I'm having a problem with Google verification. I think this is the same issue as this string. I added a new page attribute in the dashboard and added the attribute in the custom field (properties area of my home page). I cannot get anything to show up in the area requested by Google to verify my site. (sample below...


html>
Place meta tag after the <head> tag and before the </head> tag

<head>
<meta name="verify-v1" content="4IrA+N0iHsnTvdsEeXdXIcM8rW0oMyqkstiS6jki7hM=" />
<title> My title </title>
</head>

<body>
page contents
</body>
</html>

To be honest, I don't even know how to get to the html code area to copy the meta name into it. I was hoping it would show up when I added the custom attribute.

Any help for a rookie?

Thanks!

http://www.bicstic.com
andywharfe replied on at Permalink Reply
Hmm... I've looked through the code for this because I had the same issue with the Google verification.

The only place I've found, so far, is in 'header_required.php' - which is hard coded for the following:

meta_title
meta_description
meta_keywords
generator

If this is the case then we have to include this in the header template - if you have one.

Wouldn't it be better to walk through the attributes and outputting the information for Meta data?

Andy W
Paulpaints replied on at Permalink Reply
I realized that what I was looking for wasn't in C5 (I don't think) but in my cPanel on Blue Host.

In public_html/concrete/themes/elements/header.php...I was able to edit from there and copy in the google verification tag. Not sure is this was the right place but it worked. Here it is for reference:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd">
<html lang="en">
<head>

<meta name="verify-v1" content="4IrA+N0iHsnTvdsEeXdXIcM8rW0oMyqkstiS6jki7hM=" >

<!-- Site Header Content //-->
<style type="text/css">@import "<?php echo $this->getStyleSheet('main.css')?>";</style>

The web site seems to be working this time after I made the change...FYI, I think it changes the check box to 'Pretty URL's' when I did this which caused some pages to disappear until I checked off the box again.

On a related note, I would like to know where to copy the code provided when I choose the 'Pretty URL' option...I have no idea where to copy it to.

Thanks for the reply...BTW, I'm not sure what you're last sentence is referring to.


I still haven't figured out how to include my logo up in my header:

http://www.eco-pens.com/

Thanks

Paul
andywharfe replied on at Permalink Reply
The last sentence was directed at the developers... Just seems to me that if you are able to add additional 'meta' tags to the header part of the page C5 should do it for you instead of hard coding it into your template.

Putting in header.php should work with pretty URL enabled.

As for the logo - I'll have a play to see how simple it is...

Try changing every occurrence of

<h1 id="logo"><a href="<?php echo DIR_REL?>/"><?php echo SITE?></a></h1>


with

<h1 id="logo"><a href="<?php echo DIR_REL?>/"><img alt="<?php echo SITE?>" src="/files/logo.png" /></a></h1>


Not very elegant but it works...

Andy W
frz replied on at Permalink Reply
frz
yeah but custom attributes are used for so much more than meta tags.. we use them for all sorts of data model stuff.. excluding things from navs, defining details we might use in page list blocks... meta tags is just an incidental benefit so spitting them all out up top wouldn't be healthy..


we are adding a general meta tag area where you can put a big chunk of code that will appear in header tho.