WordPress.org

Forums

Frontier
[resolved] Social share buttons - hard coding (3 posts)

  1. Matilda F
    Member
    Posted 1 year ago #

    To display the buttons in a horizontal tile, I placed the following in Frontier Options > Custom CSS tab:

    #share-buttons img {
    width: 35px;
    padding: 5px;
    border: 0;
    box-shadow: 0;
    display: inline;
    }

    My question is, to make them appear on every page (right sidebar), can I place the following code in the sidebar-right.php file??:

    <div id="share-buttons">
    
    <!-- Facebook -->
    
    <a href=”http://www.facebook.com/share.php?u=<a href="http://codex.wordpress.org/URL">URL</a>&t=<a href="http://codex.wordpress.org/TITLE">TITLE</a>” title=”Post to Facebook”>
    <img src=”<a href="http://codex.wordpress.org/PATH_TO_IMAGE">PATH TO IMAGE</a>/facebook-icon.png” alt=””/>
    </a>
    
    …then the next button code….
    
    </div>

    Since you can have a single counter after the array of buttons (see 2nd/3rd example at http://www.addthis.com/), would I be able to add that functionality next?

  2. ronangelo
    Member
    Theme Author

    Posted 1 year ago #

    http://wordpress.org/support/topic/social-media-share-buttons

    As I said on your original topic above, put the code on a text widget then you can put that widget on the sidebars or anywhere a widget area is available.

    For questions regarding AddThis functionality, you should ask on their site or on their plugin's support page.

    http://wordpress.org/plugins/addthis/
    http://wordpress.org/plugins/addthis-follow/

  3. Matilda F
    Member
    Posted 1 year ago #

    Thanks for the reminder.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic