felixpixel Posted February 25, 2014 Share Posted February 25, 2014 Dear all Prestashop Master.I've been update my site using prestashop 1.5. everything looks fine until i try to put my homepage url inside the facebook comment.Somehow the link refer to my facebook page rather than my site URL. Could you please suggest me how to fix this issue ? For example you can try to put http://ngedolapa.com or www.ngedolapa.com on your facebook status, and you can see that the link refer to my facebook page.Thanks in advance for your help and support. Regards, Acep J NGEDOLAPA.com Link to comment Share on other sites More sharing options...
vekia Posted February 25, 2014 Share Posted February 25, 2014 are you sure? Link to comment Share on other sites More sharing options...
felixpixel Posted February 25, 2014 Author Share Posted February 25, 2014 are you sure? Sure, please put your cursor on the link. And you'll see that the page link to https://www.facebook.com/warungngedolapa# (not to my http://ngedolapa.com) Link to comment Share on other sites More sharing options...
vekia Posted February 26, 2014 Share Posted February 26, 2014 are you 100% sure ? take a look Link to comment Share on other sites More sharing options...
felixpixel Posted February 26, 2014 Author Share Posted February 26, 2014 are you 100% sure ? take a look Thanks in advance, i already check. Suddenly it was fixed by it self. Any suggestion, why the image thumb show on the link not use website logo. How to set it. Link to comment Share on other sites More sharing options...
vekia Posted February 26, 2014 Share Posted February 26, 2014 hello it's because of open graph tags, you have to define them, otherwise you will see random pictures Link to comment Share on other sites More sharing options...
felixpixel Posted February 26, 2014 Author Share Posted February 26, 2014 hello it's because of open graph tags, you have to define them, otherwise you will see random pictures Hi vexia, could you please show me how to do it the proper way. I've been trying to follow some tutor about setting OG tags, but it's not work. i put og code before </head> tag of my folder themes header.tpl. And the site cannot open at all. Link to comment Share on other sites More sharing options...
vekia Posted February 26, 2014 Share Posted February 26, 2014 i don't know any working tutorial related to 1.5 version, but i know addon: http://addons.prestashop.com/en/seo-prestashop-modules/3877-facebook-open-graph-tags.html unfortunately, not free. or this one: facebook open graph tags Link to comment Share on other sites More sharing options...
felixpixel Posted February 27, 2014 Author Share Posted February 27, 2014 thanks anyway, any other module that would be free? Link to comment Share on other sites More sharing options...
jordiob Posted March 8, 2014 Share Posted March 8, 2014 if you manage wih code, put this on your header.tpl <meta property="og:title" content="{$meta_title|escape:'htmlall':'UTF-8'}" /> <meta property="og:description" content="{$meta_description|escape:html:'UTF-8'}" /> <meta property="og:image" content="http://url-to-the-image-you-want-to-show.jpg" /> Link to comment Share on other sites More sharing options...
vekia Posted March 8, 2014 Share Posted March 8, 2014 remember that if you use this code, all of your product pages will have the same image, description and image, the other pages aswell Link to comment Share on other sites More sharing options...
felixpixel Posted March 9, 2014 Author Share Posted March 9, 2014 remember that if you use this code, all of your product pages will have the same image, description and image, the other pages aswell Are there any possibilities to avoid the same image for every product? Link to comment Share on other sites More sharing options...
jordiob Posted March 10, 2014 Share Posted March 10, 2014 Are there any possibilities to avoid the same image for every product? There are, as long as you define it on the code. You can use the same code for the product pages and obtain the product image for every product (categories pages as well) but, in the case of non-image related pages (cms, new-products, best-sellers) you have to write the conditions on the code: if page is new-products, fill the image with this particular URL if page is bestsellers, fill the image with this particular URL and so on Link to comment Share on other sites More sharing options...
felixpixel Posted March 10, 2014 Author Share Posted March 10, 2014 There are, as long as you define it on the code. You can use the same code for the product pages and obtain the product image for every product (categories pages as well) but, in the case of non-image related pages (cms, new-products, best-sellers) you have to write the conditions on the code: if page is new-products, fill the image with this particular URL if page is bestsellers, fill the image with this particular URL and so on Thanks job, I really appreciate your reply. i am totally newbie in seo, could u please give me an example code for those. Thanks in advance Link to comment Share on other sites More sharing options...
jordiob Posted March 10, 2014 Share Posted March 10, 2014 Hi! the code is on the ebook: http://www.prestashop.com/forums/topic/256896-free-ebook-10-tips-to-improve-your-prestashop%E2%80%99s-seo/ Link to comment Share on other sites More sharing options...
vekia Posted March 10, 2014 Share Posted March 10, 2014 Hi! the code is on the ebook: XXX really? where!? i checked it and i can't see it there Link to comment Share on other sites More sharing options...
jordiob Posted March 10, 2014 Share Posted March 10, 2014 (edited) Sorry, my mistake, I thought it was there. There's a link on the ebook to the post that explains the how-to: 1- how to integrate Open Graph in Prestashop: http://bit.ly/17VfQSr what I do is put this on the product page <meta property="og:title" content="{$meta_title}" /> <meta property="og:description" content="{$meta_description}" /> {if $have_image}<meta property="og:image" content="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'large_default')}" />{/if} So "if" product has an image, the og:image tag is filled with the image URL (the default image, of course) Edited March 10, 2014 by jordiob (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted March 10, 2014 Share Posted March 10, 2014 ok and what about other page like categories, cms, homepage? it's not as easy as it seems ;p it's necessary to create several if conditions etc. btw. if variable $product will not exist, it will spawn an error probably ($product variable is not defined for example on cms pages) Link to comment Share on other sites More sharing options...
jordiob Posted March 12, 2014 Share Posted March 12, 2014 Yup, it's no easy indeed. I'm sure someone build an addon for that, somewhere Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now