Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #355907

    How can I put a Paypal button for clients to make deposits in the social icon bar in the header? See http://www.banffyhaus.com .

    My head menu is already crowded. If I have to I will put it there. So if I can’t put it in the social media Icon bar to the left of the facebook icon, please tell me how to put the button on the header bar.

    Please make the instructions easy to implement. I am not a coder nor extremely well versed in website design.

    thank you

    #356148

    Hey Banfe!

    Thank you for using Enfold.

    Please edit functions.php, find this code on line 16:

    if(isset($avia_config['use_child_theme_functions_only'])) return;
    

    Below, add this code:

    add_filter('avf_default_icons','avia_add_custom_icon', 10, 1);
    function avia_add_custom_icon($icons)
    {
    $icons['paypal']	 = array( 'font' =>'fontello', 'icon' => 'ue800');
    return $icons;
    }
    
    add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
    function avia_add_custom_social_icon($icons)
    {
    $icons['Paypal'] = 'paypal';
    return $icons;
    }

    Locate the paypal icon on fontello.com then upload it using the Iconfont Manager on Enfold > Import/Export panel. Change the icon code (ue800) on this line:

    $icons['paypal']	 = array( 'font' =>'fontello', 'icon' => 'ue800');
    

    You can find the character codes by hovering over the icons when you create elements line icon, iconbox etc:

    Regards,
    Ismael

    #356499

    Hello Ismael
    Thank you for your answer. I copied and pasted the code about to functions.php. I uploaded the zip for the Paypal icon from fontello. I need to embed the html code for the paypal to my account in the icon. Now, I can see a box on the left of the header, but there is no icon there, just a box. So
    1. How do I make the icon show on the header
    2. How do I embed the Paypal HTML code in the icon/button?
    Thank you so much.

    Peter.

    • This reply was modified 10 years ago by Banfe.
    #357302

    Hello Ismael
    Thank you for your answer. I got the icon on the social bar. But one problem; But when you click on the logo it goes to paypal.com and not my account to make a payment.

    1. How do I embed the Paypal HTML code in the icon/button?

    Thank you so much.

    Peter.

    • This reply was modified 10 years ago by Banfe.
    #358414

    Hey!

    Please add following code to Functions.php file and change the link as needed

    function add_custom_pp_target(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery('.social_bookmarks_paypal a').attr('href','http://kriesi.at');
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_pp_target');

    Cheers!
    Yigit

    #1051926

    I added it to my site as instructed, The link is there when i hover but the icon is not showing next to the rest of them (paypal is at the far right next to email icon) lakeworthplayhouse.org

    #1052118

    Hi,


    @jbub561
    Please forget about this thread and refer to this post – https://kriesi.at/documentation/enfold/social-share-buttons/#how-to-add-custom-social-icons-to-enfold-options. If that does not help, please start a new thread under Enfold sub forum :)

    Best regards,
    Yigit

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.