WordPress.org

Ready to get started?Download WordPress

Forums

Social Linkz
[resolved] How do you add this manually? (11 posts)

  1. mcmenace
    Member
    Posted 2 years ago #

    Love the plugin however I'm unable to find the code to add this to your template manually via php. Thank you.

    http://wordpress.org/extend/plugins/social-linkz/

  2. Sed Lex
    Member
    Plugin Author

    Posted 1 year ago #

    With the current version you can by using shortcode and a buton in visual editor

  3. peteremil
    Member
    Posted 1 year ago #

    I need a different way to put the code in manually; because my clients don't need/want to put shortcode in the visual editor. Can you give me instructions aon how to put it in a widget so I can place this widget anywhere in the html?

  4. Sed Lex
    Member
    Plugin Author

    Posted 1 year ago #

    You mean outside the page ?
    Coudl you give me a specific example ?

  5. peteremil
    Member
    Posted 1 year ago #

    The link to the page is http://dev.fdc.pixelliquid.com/een-mooie-nieuwe-productie/

    The html structure is like this:

    <div class="post-inner-single">
    <div class="aligner"><div class="post-meta"></div><img></div>
    <div><h2 class="post-header"></h2>
    <div class="the-post-content">
    <div class="social_linkz">@ top of post</div>
    <p></p>
    <div class="social_linkz">@ end of post</div>
    </div>
    </div>

    The general idea is to put the social_linkz code next to the post-meta instead of in the content-div.

    [Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your code may now have been permanently damaged/corrupted by the forum's parser.]

  6. Sed Lex
    Member
    Plugin Author

    Posted 1 year ago #

    if you add the following php code ?
    <div class="post-meta"><?php $sociallinkz->print_buttons($post); ?></div>
    Does it work ?

  7. peteremil
    Member
    Posted 1 year ago #

    When I put that code in a text-widget WP strips the php so it doesn't work... see the same link as last post.

  8. Sed Lex
    Member
    Plugin Author

    Posted 1 year ago #

    Not in a text widget ! Indeed, if you do so, it won't work. You told me that you want to add the button in the post-meta so I assume that you could edit your theme files to add the php code to the single.php file, no ?

  9. peteremil
    Member
    Posted 1 year ago #

    I work with the drag&drop-theme Ultimatum so I don't fiddle in the php-files themselves ... But is it possible for you to insert the code on more places via the preferences, instead of just "top" & "bottom" of post / page?

  10. lemongris
    Member
    Posted 1 year ago #

    Any solution for this?

    <div class="post-meta"><?php $sociallinkz->print_buttons($post); ?></div>

    Doesn't seem to be working.

  11. dmitri@stooch.net
    Member
    Posted 1 year ago #

    add echo:

    <div class="post-meta"><?php echo $sociallinkz->print_buttons($post); ?></div>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic