• Resolved matudelatower

    (@matudelatower)


    Facebook sharer is broken, code must be

    php
         if( $facebook_visibility ){
                        if( $featured_image ) {
                            $html .= '<li class="facebook"><a href="https://www.facebook.com/sharer/sharer.php?u='. esc_url( get_the_permalink() ) .'" title="'. __( 'Share on Facebook', 'regina-lite' ) .'" onclick="return !window.open(this.href, \'Facebook\', \'width=500, height=500\')" target="_blank"><span class="nc-icon-glyph socials-1_logo-facebook"></span></a></li>';
                        } else {
                            $html .= '<li class="facebook"><a href="https://www.facebook.com/sharer/sharer.php?u='. esc_url( get_the_permalink() ) .'" title="'. __( 'Share on Facebook', 'regina-lite' ) .'" onclick="return !window.open(this.href, \'Facebook\', \'width=500, height=500\')" target="_blank"><span class="nc-icon-glyph socials-1_logo-facebook"></span></a></li>';
                        }
                    }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Facebook sharer’ is closed to new replies.