Keyword

Adding Head Tags in item.php

More
12 years 2 months ago #110939 by Greg
Adding Head Tags in item.php was created by Greg
Hi there,

I'm fairly new to K2 but very new to the forums here. Firstly can I say what a great component!

Secondly I'm having a bit of trouble adding a <head> tag into item.php

You might wonder why I'm adding it to item.php and not the template. Well I'm trying to add all of the Facebook and Meta tags into item. This might also help those who are trying to do this as I've done most of the hard work getting the parameters from K2.
Log in  or Create an account to join the conversation.

More
12 years 2 months ago #110940 by Greg
Replied by Greg on topic Re: Adding Head Tags in item.php
I think I've fixed this issue.

Quite obviously I can't add the <head> tags into item.php. I don't even know what I was thinking.

They must be added to the template wherever it pulls its <head> from.

This has created a further issue for me that any 'echo $item->' of K2 fields does not work in the template.

I think this is a separate issue so I'll post a new topic.

Hope this can help others.

Please Log in or Create an account to join the conversation.