Forum Open Notice
Forum Open Notice
  1. Forum
  2. Profile for

Mark Fallon

Offline @Faldinio
Posts
9
Rank
New Member
Register Date
05 Oct 2014

Posts

I wanted to use template overrides to change the correct file and in the correct LOGICAL place. Placing this code into a random place in a file that doesn't deal with the generation of the og meta tags, IS a hacky way of doing it. It...

English K2 Community Mark Fallon, 12 years 1 month ago 15 replies

OK. I could have just done that anyway. I wanted to to keep my code clean by just editing it where K2 sets the meta tag but it seems we don't know where that is. I have done it the way you suggested instead and although being quite a hacky way, it does work.

English K2 Community Mark Fallon, 12 years 1 month ago 15 replies

I can't find any reference to any of the Opengraph meta tags in item.php... can you be more specific?

English K2 Community Mark Fallon, 12 years 1 month ago 15 replies

Yes. I know about template overrides. But I do not know which file to override, hence my question.

English K2 Community Mark Fallon, 12 years 1 month ago 15 replies

But what am I testing for? I can't run an if/else on the existence of an og:image tag, because wouldn't the template be loaded BEFORE K2? so there will never be an og:image tag at the time the if/else is executed. I need to find the K2...

English K2 Community Mark Fallon, 12 years 1 month ago 15 replies

For some reason it only seems to affect the site on my localhost. The live site works OK... strange. Another related question: If there is no image in the article, how can I set a default og:image src?

English K2 Community Mark Fallon, 12 years 1 month ago 15 replies

Yes. Tried changing the size as well. No joy.

English K2 Community Mark Fallon, 12 years 1 month ago 15 replies

Hi, I am using K2 Version 2.6.8. The other Opengraph tags are rendered fine (url, title, description & type) but there is no og:image tag, even though the K2 item has an image set. Any ideas? Thanks Mark

English K2 Community Mark Fallon, 12 years 1 month ago 15 replies

[corrected by moderator] Use template overrides... Copy the files: /components/com_k2/css/k2.css /components/com_k2/css/k2.print.css into: /templates/YOUR_TEMPLATE/css/ (create that folder if it doesn't exist) Then edit the 2 files there to override default...

English K2 Community Mark Fallon, 12 years 1 month ago 4 replies

More