Results 1 to 10 of 10
  1. #1
    Join Date
    Apr 2013
    Posts
    22
    Plugin Contributions
    0

    Default Facebook Like Button Description Problem

    Hi,

    I was wondering how I can change this code <meta property="og:description" content="<?php echo $meta_products_description; ?>" /> to target the product description shown in the meta of the product that is changed in zencart. Right now the product description doesn't seem tohttp://seoulto.com/couples_rings/me_...couples_rings1

    In the view source of say the product link above I get this stuff:

    <meta property="og:description" content="p {font-size: 12px;} #heading1 {margin:0px; padding: 0px;} Me Love You Couples Rings are designed to be comfortable and light . The rings can be a good gift for your lover at any point in your relationship. A pair of rings like this one is a very good way to keep your lover" />

    I don't know why the html/css portion is also shown.

    Thanks!

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Facebook Like Button Description Problem

    ****************************** DUPLICATE POSTING **********************************
    Please only post ONCE a particular issue according to forum rules

    Other posting
    http://www.zen-cart.com/showthread.p...mbnail-Problem

  3. #3
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Facebook Like Button Description Problem

    Quote Originally Posted by ilovekr View Post
    Hi,

    I was wondering how I can change this code <meta property="og:description" content="<?php echo $meta_products_description; ?>" /> to target the product description shown in the meta of the product that is changed in zencart. Right now the product description doesn't seem tohttp://seoulto.com/couples_rings/me_...couples_rings1

    In the view source of say the product link above I get this stuff:

    <meta property="og:description" content="p {font-size: 12px;} #heading1 {margin:0px; padding: 0px;} Me Love You Couples Rings are designed to be comfortable and light . The rings can be a good gift for your lover at any point in your relationship. A pair of rings like this one is a very good way to keep your lover" />

    I don't know why the html/css portion is also shown.

    Thanks!
    Probably because it appears that this code is being pulled in by your Facebook like button from your product's meta description... Viewing your product page source and this is what I see.. Notice anything off?? (hint: I highlighted in the issue in red) Check your product's meta descriptions to fix this..

    Code:
    <meta name="keywords" content="Me Love You Couples Rings Earrings Couples Rings Necklaces korean jewelry, seoul to, cute jewelry shop, online korean jewelry shop" /> 
    <meta name="description" content="Seoul To Me Love You Couples Rings - p {font-size: 12px;} #heading1 {margin:0px; padding: 0px;} Me Love You Couples Rings are designed to be comfortable and light . The rings can be a good gift for your lover at any point in your relationship. A pair of rings like this one is a very good way to keep your lover " />
    The question is why do you have style declarations inside you products meta description to begin with??
    Last edited by DivaVocals; 11 May 2013 at 11:33 PM.
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  4. #4
    Join Date
    Apr 2013
    Posts
    22
    Plugin Contributions
    0

    Default Re: Facebook Like Button Description Problem

    Quote Originally Posted by DivaVocals View Post
    Probably because it appears that this code is being pulled in by your Facebook like button from your product's meta description... Viewing your product page source and this is what I see.. Notice anything off?? (hint: I highlighted in the issue in red) Check your product's meta descriptions to fix this..

    Code:
    <meta name="keywords" content="Me Love You Couples Rings Earrings Couples Rings Necklaces korean jewelry, seoul to, cute jewelry shop, online korean jewelry shop" /> 
    <meta name="description" content="Seoul To Me Love You Couples Rings - p {font-size: 12px;} #heading1 {margin:0px; padding: 0px;} Me Love You Couples Rings are designed to be comfortable and light . The rings can be a good gift for your lover at any point in your relationship. A pair of rings like this one is a very good way to keep your lover " />
    The question is why do you have style declarations inside you products meta description to begin with??
    The style isn`t in the meta, I put styles in the html box of the product but the code calls for the styles and what not too. Is there a way to make it call for the products meta that you can put for each product in zencart instead of the html box of the product?

    Thanks.

  5. #5
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Facebook Like Button Description Problem

    Quote Originally Posted by ilovekr View Post
    The style isn`t in the meta, I put styles in the html box of the product but the code calls for the styles and what not too. Is there a way to make it call for the products meta that you can put for each product in zencart instead of the html box of the product?

    Thanks.
    Why not move the inline styles to your stylesheet where they belong..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  6. #6
    Join Date
    Apr 2013
    Posts
    22
    Plugin Contributions
    0

    Default Re: Facebook Like Button Description Problem

    Quote Originally Posted by DivaVocals View Post
    Why not move the inline styles to your stylesheet where they belong..
    Can I call stuff from the general style sheet in the custom templates folder?

    Thanks.

  7. #7
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Facebook Like Button Description Problem

    Is there a way to make it call for the products meta that you can put for each product in zencart instead of the html box of the product?
    There is builtin - product meta data

    See this tutorial
    http://www.zen-cart.com/content.php?...ngines-to-find

  8. #8
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Facebook Like Button Description Problem

    Quote Originally Posted by ilovekr View Post
    The style isn`t in the meta, I put styles in the html box of the product but the code calls for the styles and what not too. Is there a way to make it call for the products meta that you can put for each product in zencart instead of the html box of the product?

    Thanks.
    This is a question you need to ask on the support thread for your Facebook add-on..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  9. #9
    Join Date
    Apr 2013
    Posts
    22
    Plugin Contributions
    0

    Default Re: Facebook Like Button Description Problem

    Quote Originally Posted by kobra View Post
    There is builtin - product meta data

    See this tutorial
    http://www.zen-cart.com/content.php?...ngines-to-find
    I was trying to refer to this custom product meta if I can get the og portion to target this.

    Also can I call stuff from the general style sheet in the custom templates folder for the html box for the products?

  10. #10
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Facebook Like Button Description Problem

    Quote Originally Posted by ilovekr View Post
    I was trying to refer to this custom product meta if I can get the og portion to target this.
    Again... Ask this in the SUPPORT thread for the Facebook module you are using..

    Quote Originally Posted by ilovekr View Post
    Also can I call stuff from the general style sheet in the custom templates folder for the html box for the products?
    Yes..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

 

 

Similar Threads

  1. Facebook Like Button
    By delia in forum All Other Contributions/Addons
    Replies: 346
    Last Post: 11 Feb 2016, 09:01 PM
  2. Facebook like button
    By petestownrich in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 18 Feb 2015, 07:02 PM
  3. Facebook like button
    By bocahydro in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 5 Mar 2014, 01:48 PM
  4. facebook like button and google + button in Header.
    By Horrific_ending in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 4 Jan 2012, 04:46 PM
  5. Facebook like button
    By rdsbaker in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 25 Mar 2011, 07:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg