Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Bill Rastello

    (@billpinterest)

    Sorry about this! Could you send over a link to your site if you still have the button enabled? I’ll take a look to see what’s going on.

    Thanks!
    Bill

    Thread Starter scrappy123

    (@scrappy123)

    https://www.miniyummers.com is my website. I still have the button enabled.

    Many thanks,
    Wendy

    Unnecessary default options (shape or language, not sure which, could be both) the plugin currently passes to the Pinterest JavaScript API as data attributes are inexplicably forcing it to the small gray one.

    If you change Lines 67 – 78 to:

    // add the shape if not default
    if(isset($shape_op) && $shape_op != "rectangle") {
      $return_string = "$return_string' data-pin-shape='$shape_op";
    }
    // if shape is not round, add the color and language
    if(isset($shape_op) && $shape_op != "round") {
      // add the color if not default
      if(isset($color_op) && $color_op != "gray") {
        $return_string = "$return_string' data-pin-color='$color_op";
      }
      // add the language if not default
      if(isset($lang_op) && $lang_op != "eng") {
        $return_string = "$return_string' data-pin-lang='$lang_op";
      }
    }

    Size and color options work.

    Bill is there anywhere I can submit a patch, if you want one?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Colour and Size Options Not Working’ is closed to new replies.