Join the Soledad Facebook Users Group here
for Share, assistance, discussion, and Updates related to Soledad WordPress Theme.

If you can't create a new ticket - you can send us an email via our contact form and we will get back to you.

Okay
  Public Ticket #2905335
Pin button
Closed

Comments

  •  1
    tim-nieuwpoort started the conversation

    Hi,

    I've checked the: 'show Pin' option in customizer, but don't see it in my post.

    Kind regards,

    Tim 

  •  2,610
    PenciDesign replied

    Hi,

    In this case, please send me the related URL to this issue. I need to check on the live page.

    Regards,
    PenciDesign.


  •  1
  •  2,610
    PenciDesign replied

    Hi,

    Please go to Appearance → Theme Editor → Select theme to edit: Soledad, select the functions.php file,

    Find line 3761:

    case 'pinterest':
        if( 'single' == $pos ){
            $output .=  '<a class="post-share-item post-share-pinterest" aria-label="Pin to Pinterest" data-pin-do="none" '. penci_reltag_social_icons() .' onclick="var e=document.createElement(\'script\');';
            $output .=  'e.setAttribute(\'type\',\'text/javascript\');';
            $output .=  'e.setAttribute(\'charset\',\'UTF-8\');';
            $output .=  'e.setAttribute(\'src\',\'//assets.pinterest.com/js/pinmarklet.js?r=\'+Math.random()*99999999);';
            $output .=  'document.body.appendChild(e);';
            $output .=  '">';
            $output .= penci_icon_by_ver('fab fa-pinterest', '', true) . '<span class="dt-share">' . esc_html__( 'Pinterest', 'soledad' ) . '</span></a>';
        } else {
            $output .= '<a class="post-share-item post-share-pinterest" aria-label="Pin to Pinterest" data-pin-do="none" '. penci_reltag_social_icons() .' target="_blank" href="';
            $output .= 'https://www.pinterest.com/pin/create/button/?url=' . urlencode( $link );
            if( has_post_thumbnail() ){
                $output .= '&media=' . urlencode( $img_link );
            }
            if( $text ){ $output .= '&description=' . urlencode( $text ); }
            $output .= '">'. penci_icon_by_ver('fab fa-pinterest', '', true) .'<span class="dt-share">' . esc_html__( 'Pinterest', 'soledad' ) . '</span></a>';
        } break;

    Replace with:

    case 'pinterest':
        $output .= '<a class="post-share-item post-share-pinterest" aria-label="Pin to Pinterest" data-pin-do="none" '. penci_reltag_social_icons() .' target="_blank" href="';
            $output .= 'https://www.pinterest.com/pin/create/button/?url=' . urlencode( $link );
            if( has_post_thumbnail() ){
                $output .= '&media=' . urlencode( $img_link );
            }
            if( $text ){ $output .= '&description=' . urlencode( $text ); }
            $output .= '">'. penci_icon_by_ver('fab fa-pinterest', '', true) .'<span class="dt-share">' . esc_html__( 'Pinterest', 'soledad' ) . '</span></a>';
        
    break;
    image.png

    Then clear all site caches then check again.

    Regards,
    PenciDesign.



  •  1
    tim-nieuwpoort replied

    Hi,

    Thanks, but I'd rather not mess with the php. Is it possible to fix it in the next update?

  •  2,610
    PenciDesign replied

    Hi,

    Yes. We'll update this function in a future update.

    In case you can't modify this file by yourself, please send me your site login information in a private reply. I'll help you edit.

    Regards,
    PenciDesign.


  •  1
    tim-nieuwpoort replied

    Thanks, you can close this ticket. I'll wait for the update :)

  •  1
    tim-nieuwpoort replied

    Hi,

    After the latest updates, I still don't see the Pin it button. I use 'recipe card layout 1'

    Kind regards,

    Tim

  •  2,610
    PenciDesign replied

    Hi,

    This featured still in the development list and is not available in this update.

    Regards,
    PenciDesign.