Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
 All Forums
 General
 Suggestions - NOT QUESTIONS
 print $metaogimage to work without socialmedia
Author « Topic »  

ITZAP
Ecommerce Template Guru

Australia
1022 Posts

Pre-sales questions only
(More Details...)

Posted - 12/01/2020 :  19:47:23  
Following on from [url="https://www.ecommercetemplates.com/support/topic.asp?TOPIC_ID=113369"][blue]this topic here[/blue][/url] discussing Facebook Images, currently for this line of PHP code to work:

[font=Courier New][red][size=3]<?php print $metaogimage; ?>[/size=3][/red][/font=Courier New]

you must have "[red]socialmedia[/red]" in the [purple]$detailpagelayout[/purple] parameter, like this [maroon]includes.php[/maroon] entry:

[font=Courier New][purple]$detailpagelayout[/purple]="productname, navigation, productimage, dateadded, sku, reviewstarslarge, socialmedia, description, manufacturerlink, options, listprice, discounts, price, quantitypricing, quantity, addtocart, checkoutbutton, [red]socialmedia[/red], reviews, previousnext";[/font=Courier New]

The suggestion is that the code for [red]$metaogimage[/red] be altered so that it works regardless whether the "[red]socialmedia[/red]" element is included in [purple]$detailpagelayout[/purple] or not.

Even if your business does not have any Social Media pages, it is still an advantage to include og open graph meta code in your website pages. That way, if somebody else Shares any of your webpages to Facebook or Twitter, then that post will display your feature image and content in the best, most attractive, attention grabbing manner.

Gary
[img]https://itzap.com.au/pics/logo/itzap-website-design-works-mini-logo.png[/img]

Edited by - ITZAP on 12/01/2020 20:25:16

Vince
Administrator

43206 Posts

Posted - 09/09/2021 :  03:02:14  
I've made the change now so that the OG Image tag is created regardless of whether "socialmedia" is in the detail page layout.

Thanks Gary for pointing this out as always.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

ITZAP
Ecommerce Template Guru

Australia
1022 Posts

Pre-sales questions only
(More Details...)

Posted - 09/09/2021 :  04:00:50  
Thanks Vince

Gary
[img]https://itzap.com.au/pics/logo/itzap-website-design-works-mini-logo.png[/img]
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.01 seconds. Snitz Forums 2000