WordPress.org

Ready to get started?Download WordPress

Forums

Sharedaddy
Sharedaddy shows an item list of two entries when a single line is sufficient (4 posts)

  1. urseetaeler
    Member
    Posted 3 years ago #

    Hi,
    I have selected but facebook on my blog http://www.urseetal.net; however, I get two lines with list dots, the first one with the facebook share icon, the second one only the list dot and nothing else. Should only be a single line if I select but one service, or do I miss something?

    Greetings from the Black Forest

    Bernhard

  2. urseetaeler
    Member
    Posted 3 years ago #

    Basically the problem is in the code:

    line 241 to line 247 in sharing.php reads (white space partially removed):

    if ( ( $count % 2 ) == 0 )
                   echo '<li class="share-end">';
    			$count++;
    		}
    	?>
    	<li class="share-end">

    I think this is not at all needed! empty list items are IMHO a mess.

    I changed these lines and analog lines in sharing-service.php and got rid of the empty item.

    May be this helps others.

    Bernhard

  3. Meredith
    Member
    Posted 2 years ago #

    I think I am also having this issue. Could you please copy the code exactly as you changed it so I could try that as well?

    I do gather that the 'li' with the class "share-end" is the empty item, so I should just remove that?

    My apologies if this seems a silly question, but I am not familiar with PHP syntax.

  4. urseetaeler
    Member
    Posted 2 years ago #


    if ( ( $count % 2 ) == 0 )
    /*echo '<li class="share-end">';*/
    echo ' ';
    $count++;
    }
    ?>
    <!--<li class="share-end">-->

    </div>
    </div>

    <?php endif; ?>

    Compare the line
    <!--<li class="share-end">-->
    to the original line
    <li class="share-end">

    Sorry to be late. BTW This is html and not PHP code.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic