📉
egovt
  • Install Egovt Theme
  • Update Them/Plugins
    • Automatic Update
    • Manual Update
  • Support Theme
  • Basic
    • Header Settings
    • Footer Settings
    • Create a Page
    • Typography
    • Find Icon
    • Translation
  • Additional CSS
  • Blog
  • Language Countdown
  • Search Popup
  • Header footer Elements
  • Ovatheme Elements in Elementor
  • Main Features
    • Manage Events
    • Manage Departments
    • Manage Document
    • Manage Portfolios
    • Manage Service
    • Manage Team
    • Manage Directory
  • Give Donation
  • FAQs
    • Customize Share Socials
Powered by GitBook
On this page

Was this helpful?

  1. FAQs

Customize Share Socials

You can add bellow code to functions.php file in child theme

add_filter('ova_share_social_html', 'ova_share_social_html_customize', 10, 2);

function ova_share_social_html_customize($link, $title) {
    $link = esc_url($link);
    $title = esc_html($title);
    $html = '<ul class="share-social-icons">
            <li><a class="share-ico ico-facebook" target="_blank" href="https://www.facebook.com/sharer.php?u='.$link.'" title="Facebook"><i class="fab fa-facebook-square"></i></a></li>
			<li><a class="share-ico ico-twitter" target="_blank" href="https://twitter.com/share?url='.$link.'&amp;text='.urlencode($title).'" title="Twitter"><i class="fab fa-twitter"></i></a></li>
			<li><a class="share-ico ico-pinterest" target="_blank" href="https://www.pinterest.com/pin/create/button/?url='.$link.'" title="Pinterest"><i class="fab fa-pinterest"></i></a></li>
			<li><a class="share-ico ico-linkedin" target="_blank" href="https://www.linkedin.com/shareArticle?mini=true&url='.$link.'" title="Linkedin"><i class="fab fa-linkedin-in"></i></a></li>			
        </ul>';
    return $html;
}
PreviousGive Donation

Last updated 9 months ago

Was this helpful?