Tagged: 

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

    Hi,

    We’re nearing the completion of this website, but we need to know how to convert the current share buttons on product pages into one “Share” button, that then allows users to choose which platform to share on.

    If not possible, it’s fine, but either way, we also would like to know how move the share button(s) to be directly next to, or under the wishlist button?

    Thanks!

    #955691

    Hey Chiuhn,

    Here is the code you can put in Enfold > General Styling > Quick Css,  if it does not work, put into themes/enfold/css/custom.css

    
     .av-share-box {
    	font-size: 13px;
    	margin-top: 0px;
     }
    

    Here is the code you can put in your funtions.php

    
    function av_move_share_box(){
    
    ?>
    	<script>
    	jQuery(window).load(function(){
    	     jQuery('.product-template-default.single.single-product .av-share-box').insertBefore(jQuery('.product-template-default.single.single-product .product_meta'));
    	});
    	</script>
    <?php
    }
    add_action('wp_footer', 'av_move_share_box'); 
    

    If you need further assistance please let us know.

    Best regards,
    Victoria

    #955796

    Hi Victoria,

    Thank you so much for your help!
    There were a couple of problems when I tried the code:

    1. The share box didn’t turn into a single button, that when clicked displays the different social share options. Is this possible?
    2. The functions.php code moved the social share icons up, but the social share boxes overlapped all of the product meta data containing SKU#, etc., and but big gap between product details and meta data/social share boxes, I’m not quite sure what to change in the code to make it not overlap, but I’m deactivating that code for now. Any other solution to this?

    Thank you in advance!

    #955800

    Also, to clarify, the share button I’m referring to is probably recognized as a link to you guys. It should simply say “Share” and have no borders around it. Then once clicked, a box appears with all the social share options. This was once visible, but I can’t seem to find the proper code that belongs to this property.

    #956996

    Hi,

    The code above will only adjust the location of the social share button. It’s not going to create a button or a toggle for the icons. Unfortunately, what you’re after requires modifications that are outside the scope of support. Please hire a freelance developer or contact our partner, Codeable.

    // https://kriesi.at/contact/customization

    Best regards,
    Ismael

    #962916

    Got it.

    Thanks Ismael!

    #963766

    Hi,

    Thanks for the feedback. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

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