Hi Giovanni,
I understand that you are using PokaTheme v3.
The correct way to overwrite a function is to add it again inside the child theme’s functions.php. So go to your child theme’s functions.php and add this code:
function poka_social_links() {
?>
<ul class="top-bar-socials">
<?php if(get_field('youtube_link','options')): ?><li><a href="<?php the_field('youtube_link','options'); ?>" target="_blank" rel="nofollow"><i class="icon-poka icon-poka-youtube"></i></a></li><?php endif; ?>
<?php if(get_field('facebook_link','options')): ?><li><a href="<?php the_field('facebook_link','options'); ?>" target="_blank" rel="nofollow"><i class="icon-poka icon-poka-facebook"></i></a></li><?php endif; ?>
<?php if(get_field('twitter_link','options')): ?><li><a href="<?php the_field('twitter_link','options'); ?>" target="_blank" rel="nofollow"><i class="icon-poka icon-poka-twitter"></i></a></li><?php endif; ?>
<?php if(get_field('instagram_link','options')): ?><li><a href="<?php the_field('instagram_link','options'); ?>" target="_blank" rel="nofollow"><i class="icon-poka icon-poka-instagram"></i></a></li><?php endif; ?>
<li><a href="https://pinterest.com/YOUR-PINTEREST-ID" target="_blank" rel="nofollow"><i class="icon-poka icon-poka-pinterest"></i></a></li>
</ul>
<!-- /.top-bar-socials -->
<?php
}
1. Replace
https://pinterest.com/YOUR-PINTEREST-ID
with your link.
2. PokaTheme doesn’t have an icon for Pinterest, so you (or your programmer) have to find an icon somewhere online and use some CSS to make it work with .icon-poka-pinterest class (or you can use your on HTML code if you prefer something different).
Finally keep in mind that you can always reach to support@pokatheme.com if you are interested in custom development features like the above. Thank you!
-
This reply was modified 1 year, 6 months ago by admin.