Customize share-button.js

  • Posted in : Readme
  • perchenet
    Participant

    Hi

    I’d like to customize share-button.js as it says here
    https://github.com/carrot/share-button/wiki/Configuration-Options

    But i can’t find where to do it…
    in main.js ?

    Thank you so much!

    ahmetsali
    Keymaster

    Hİ, you can see the share function call in js/main.js at line: 131

    			//Share Button
    			if($('.share').length) {	
    				new Share('.share', {
    					ui: { flyout: "bottom left" } 
    				  });
    			}
    
    perchenet
    Participant

    I would like to change the settings of share-buttons itself…
    Where can I do it ?

    For exemple, I’d like to withdraw Pinterest, and change «Share» by my own language.

    Thank you!
    David

    ahmetsali
    Keymaster

    Hi,

    – try this custom css code to hide pinterest;

    .share.sharer-0 .social li[class*=pinterest] {
        display: none;
    }
    

    – check out Documentation > Localization section to change the “Share” keyword.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register