• Resolved guyadams

    (@guyadams)


    I’m using WP 2.3 and Paalm 1.2 theme. I have added the rather brillient ‘Share This’ plugin created by Alex King. All it working well but I would like to align the share this icon to the right of my posts, not to the left.

    Is this possible and if so how?

Viewing 15 replies - 1 through 15 (of 18 total)
  • whats the url of your blog?

    Thread Starter guyadams

    (@guyadams)

    Apologies forgot to post it:

    https://www.guyontechnology.co.uk

    Thread Starter guyadams

    (@guyadams)

    Can anyone help me with this?

    Many thanks

    Did you take a look at your source code? The Share this link is inside of a paragraph that has class=”akst_link”…
    Can’t you style it to be have text-align: right?

    Thread Starter guyadams

    (@guyadams)

    Many thanks for the reply Moshu, im not entirely sure where I need to look, when and where does the share this icon get placed on the posts?

    Thanks

    On my page, https://www.interaction.org/difference
    the Icon is overlapping the text ‘Share this’. I tried to locate the code for it placement, but changes I made to what I thought was the right part of the .php made no difference.

    Any help would be appreciated.

    Thanks!

    Thread Starter guyadams

    (@guyadams)

    Where abouts is the code for the addition of the share this icon and what changes did you try?

    Thanks

    In the share-this.php file, I changed the padding in this:

    <?php
    if (AKST_SHOWICON) {
    ?>
    .akst_share_link {
    background: 1px 0 url(share-icon-16×16.gif) no-repeat;
    padding: 1px 0px 13px 22px;
    }
    <?php

    but it didn’t appear to make a difference so I just changed it back.

    Any suggestions where else I should try?

    Thread Starter guyadams

    (@guyadams)

    Unfortunately not. Like you I have played with parts of the share-this.php file but to no avail.

    Thread Starter guyadams

    (@guyadams)

    Right I have managed today with a bit of time to resolve the issue and get the icon where I wanted it. I’ve laid it out here step by step and hope it helps you.

    1) Disable the automatic addition of the share this icon.

    To do this go to PLUGINS > PLUGIN EDITOR > Share-this.php, then simply change this:

    @define('AKST_ADDTOCONTENT', true);
    @define('AKST_ADDTOFOOTER', true);

    to this:

    @define('AKST_ADDTOCONTENT', false);
    @define('AKST_ADDTOFOOTER', false);

    2) Manual insert the call to add the Share This icon to all your posts.

    Go to PRESENTATION > THEME EDITOR > Select the ‘Main Index Template’ (aka index.php from your theme’s folder)

    Add this line to where you want the Share This to be:

    <?php akst_share_link(); ?>

    I have added the Share This icon next to the number of comments, below each post (see here)

    This will add the Share This icon on the front page only, you will also need to add it to the ‘Single Post’ (aka single.php) for when people click through into each individual post, you can do this by the same method as above.

    I have actually added it to the ‘Comments’ (aka comments.php) so that it appears next to the comments RSS and trackback URI links (see here)

    I’m very new to PHP and this has taken a fair amount of time to get right and to ensure my site still validates but if anyone wants a hand, let me know.

    Thanks

    I do not see the lines you stated in Step 1 anywhere in the sharethis.php file. Will you please be more specific as to where these lines are located?

    I also just noticed my file is named sharethis.php, while the one you are talking about is share-this.php. Why would mine be different? I even downloaded the plugin from both here and the ShareThis site and they are the same. Please help me out to fix this.

    Thread Starter guyadams

    (@guyadams)

    Hi scuba.

    The file I mean is in the wp-content/plugins/share-this/ directory and for some reason on my site called share-this.php

    The lines that need editing in this file are number 28 and 32 but may differ slightly if we are using different versions.

    Thanks

    Guy,

    Thanks for the reply. I still do not see the lines you mentioned, and have looked closely thru the whole file. I am running version 2.0 of the plugin. Are you running a different version? I would be fine with showing you my sharethis.php file, but don’t really want to put the whole lengthy thing on here. Any ideas? Thanks.

    Thread Starter guyadams

    (@guyadams)

    Right I see what has happened here:

    I have version 1.4 which according to my plugins control panel is the most upto date version. It however is not.

    Alex King is the original author and where I got the plugin from https://www.alexking.org, however it appears he has passed share this on to Nextumi, Inc.

    Since this they have release a new version which has obviously changed things around a little.

    All the instructions I wrote are for the 1.4 and below and I have not yet looked at version 2.0

    Thanks

    Guy,

    Thanks for all your help. I decided to go with the previous version (1.5.1) instead of 2.0 and everything came out good. Your instructions were very helpful. Thanks again.

    Steve

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘‘Share This’ Icon Alignment’ is closed to new replies.