No og:image tag

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Fri Mar 21, 2014 8:38 pm
Reply with quote
Report this post
So... everything would be perfect with that theme - as it was with World News II that I had before but after changing it to RockWall theres issue with link sharing in some social media and services. F.eg. now if i'm trying to share link on G+ - it gives me my page logo. When I'm looking in source code of my page there's no og:image tag so ... maby that is the reason of that (before everything it was ok).
The only thing that i've changed in last 2 weeks was your theme.
If you wanna check what is wrong my page is http://motionfreaks.pl/ and I'm using K2 for articles. I've read on this forum that it can be issue with K2- maby but as i've said - the only thing that was changed was template, and besides that RockWall is in section of themes that should be compatible with K2.
User avatar
Fresh Boarder

teitbite
Fri Mar 21, 2014 10:06 pm
Reply with quote
Report this post
Hi

To og:image the article image, which has a separated place in K2, is used. If there is no such image first image of page is used, in this case Your logo. Please change Your logo to CSS type in temlate settings or use K2 images.
User avatar
Moderator

GK User
Fri Mar 21, 2014 10:56 pm
Reply with quote
Report this post
Ok. Unfortunatelly using separate illustration for K2 doesn't help in my case (in some cases no change, and in some cases thumbnail was really small - doesn't matter what was size setting for that in K2 settings.But think that thumbnail size issue is K2 problem no Gavicks) , but when i've changed my logo to CSS everything worked ok. Fb, and G+ chose correct thumbnail - first graphic in article.
User avatar
Fresh Boarder

teitbite
Sun Mar 23, 2014 5:48 pm
Reply with quote
Report this post
Hi

One of the solution can be to add to /html/com_k2/template/default/item.php this code:

Code: Select all
$doc = JFactory::getDocument();
$doc->setMetaData( 'og:image', $this->item->image );


so an image added in K2 image section will work.
User avatar
Moderator

GK User
Mon Mar 24, 2014 11:42 am
Reply with quote
Report this post
Hi

So what exactly do I type before and/or after the code to make it work.

when i add

$doc = JFactory::getDocument();
$doc->setMetaData( 'og:image', $this->item->image );

it just shows up on the page instead of in the code.. I know I'm supposed to add something, could you please help me out.
User avatar
Senior Boarder

teitbite
Mon Mar 24, 2014 7:55 pm
Reply with quote
Report this post
Hi

This means that code is placed in html and not php area. Please send me an access to ftp. I'll check and move it to right position.
User avatar
Moderator

GK User
Fri Mar 28, 2014 7:04 am
Reply with quote
Report this post
sent you ftp acecss, it works this time
User avatar
Senior Boarder

teitbite
Sat Mar 29, 2014 5:25 pm
Reply with quote
Report this post
Hi

Sorry, but still cannot connect, but this time I have a different message:

Timed out waiting for initial connect reply.
User avatar
Moderator

GK User
Sun Mar 30, 2014 9:23 am
Reply with quote
Report this post
what are you using to access FTP? I use WinSCP and it works fine. :(
User avatar
Senior Boarder

teitbite
Sun Mar 30, 2014 8:54 pm
Reply with quote
Report this post
Hi

I'm using Cyberduck. Never had problems to access before. Unfortunately can't use WinSCP to check, because do not have Windows anymore. But I have also checked in Firezilla just now and it's still not working :(
User avatar
Moderator

GK User
Fri Apr 04, 2014 9:57 am
Reply with quote
Report this post
can I send you the required file and you can send it back with changes?
User avatar
Senior Boarder

teitbite
Sun Apr 06, 2014 11:17 am
Reply with quote
Report this post
Hi

Yes I think it would be the best option. Please attache it to thread here.
User avatar
Moderator

GK User
Fri Apr 11, 2014 5:41 pm
Reply with quote
Report this post
It does not let me upload the file saying 'The extension php is not allowed'

May I send it via a file sharing service or personal email?
User avatar
Senior Boarder

teitbite
Sat Apr 12, 2014 5:35 pm
Reply with quote
Report this post
Hi

Please use my mail from a footer of every post or pack the file to zip and attach to post than.
User avatar
Moderator


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.