For the complete documentation index, see llms.txt. This page is also available as Markdown.

Share Social

You can add bellow PHP code to functions.php file in child theme and change code for updating social

add_filter( 'ova_share_social_html', 'ova_share_social_html_custom', 10, 2 );
function ova_share_social_html_custom( $link, $title ){
    $html = '<ul class="share-social-icons clearfix">
                <li class="share">'.esc_html__( 'Share: ', 'ova-framework' ).'</li>
                <li>
                    <a class="share-ico ico-twitter" target="_blank" href="https://twitter.com/share?url='.esc_url( $link ).'&amp;text='.urlencode( esc_attr( $title ) ).'&amp;hashtags=simplesharebuttons" title="'.esc_attr( $title ).'">
                        <i class="ovaicon-twitter"></i>
                    </a>
                </li>
                <li>
                    <a class="share-ico ico-facebook" target="_blank" href="http://www.facebook.com/sharer.php?u='.esc_url( $link ).'" title="'.esc_attr( $title ).'">
                        <i class="ovaicon-facebook-logo-1"></i>
                    </a>
                </li>
              
            </ul>';
            return $html;
}

Last updated