Hallo,
ich habe mich endlich dafür entscheiden, einen Like-Button für meinen Blog zu installieren. Leider habe ich ein paar Probleme mit der Anpassung. Der Button ist zwar gut positioniert unter den jeweiligen Posts auch auf der Hauptseite...Allerdings stört mich, dass der Button einen zu großen Abstand zu den Tags erzeugt...Vorher war der Abstand nicht so groß..
Hier ist der Link (achtet auf den Abstand zwischen Like-Button und den Tags)
Kann mir jemand helfen, an welcher Stelle des HTML-COdes ich das Pugin anpassen kann? Oder wird das Plugin auch in Hauptcode abgelegt irgendwo? Ich habe unten den Code des Plugins eingefügt...
Vielen Dank schonmal
Phire
ZitatAlles anzeigen<fieldset>
<form name="wp_fb_option_form" method="post">
<h2>Select button placement</h2>
<select name="wp_fb_like_align" id="wp_fb_like_align">
<option value="nb" <?php if ((get_option("wp_fb_like_align") == "nb") || (!get_option("wp_fb_like_align"))) echo ' selected'; ?>>None (Bottom)</option>
<option value="nt" <?php if (get_option("wp_fb_like_align") == "nt") echo 'selected'; ?>>None (Top)</option>
<option value="tl" <?php if (get_option("wp_fb_like_align") == "tl") echo 'selected'; ?>>Top Left</option>
<option value="tr" <?php if (get_option("wp_fb_like_align") == "tr") echo 'selected'; ?>>Top Right</option>
<option value="bl" <?php if (get_option("wp_fb_like_align") == "bl") echo 'selected'; ?>>Bottom Left</option>
<option value="br" <?php if (get_option("wp_fb_like_align") == "br") echo 'selected'; ?>>Bottom Right</option>
</select>
<h2>Layout Style</h2>
<div class="description">Determines the size and amount of social context next to the button</div>
<select name="wp_fb_like_layout" id="wp_fb_like_layout">
<option value="standard" <?php if (get_option("wp_fb_like_layout") == "standard") echo 'selected'; ?>>standard</option>
<option value="button_count" <?php if (get_option("wp_fb_like_layout") == "button_count") echo 'selected'; ?>>button_count</option>
<option value="box_count" <?php if (get_option("wp_fb_like_layout") == "box_count") echo 'selected'; ?>>box_count</option>
</select>
<h2>Show Faces?</h2>
<div class="description">Show profile pictures below the button</div>
<select name="wp_fb_like_show_faces" id="wp_fb_like_show_faces">
<option value="true" <?php if (get_option("wp_fb_like_show_faces") == "true") echo 'selected'; ?>>Yes</option>
<option value="false" <?php if (get_option("wp_fb_like_show_faces") == "false") echo 'selected'; ?>>No</option>
</select>
<h2>Verb to display</h2>
<div class="description">The verb to display in the button. Currently only 'like' and 'recommend' are supported.</div>
<select name="wp_fb_like_action" id="wp_fb_like_action">
<option value="like" <?php if (get_option("wp_fb_like_action") == "like") echo 'selected'; ?>>like</option>
<option value="recommend" <?php if (get_option("wp_fb_like_action") == "recommend") echo 'selected'; ?>>recommend</option>
</select>
<h2>Font</h2>
<div class="description">The font of the plugin</div>
<select name="wp_fb_like_font" id="wp_fb_like_font">
<option value="arial" <?php if (get_option("wp_fb_like_font") == "arial") echo 'selected'; ?>>Arial</option>
<option value="lucida+grande" <?php if (get_option("wp_fb_like_font") == "lucida+grande") echo 'selected'; ?>>Lucida Grande</option>
<option value="segoe+ui" <?php if (get_option("wp_fb_like_font") == "segoe+ui") echo 'selected'; ?>>Segoe UI</option>
<option value="tahoma" <?php if (get_option("wp_fb_like_font") == "tahoma") echo 'selected'; ?>>Tahoma</option>
<option value="trebuchet+ms" <?php if (get_option("wp_fb_like_font") == "trebuchet+ms") echo 'selected'; ?>>Trebuchet MS</option>
<option value="verdana" <?php if (get_option("wp_fb_like_font") == "verdana") echo 'selected'; ?>>Verdana</option>
</select>
<h2>Color Scheme</h2>
<div class="description">The color scheme of the plugin (Default: light)</div>
<select name="wp_fb_like_colorscheme" id="wp_fb_like_colorscheme">
<option value="light" <?php if (get_option("wp_fb_like_colorscheme") == "light") echo 'selected'; ?>>light</option>
<option value="dark" <?php if (get_option("wp_fb_like_colorscheme") == "dark") echo 'selected'; ?>>dark</option>
</select>
<?php
$wp_fb_like_width = get_option("wp_fb_like_width");
if($wp_fb_like_width == '') { $wp_fb_like_width = '450'; }
$wp_fb_like_height = get_option("wp_fb_like_height");
if($wp_fb_like_height == '') { $wp_fb_like_height = '100'; }
?>
<h2>Width</h2>
<div class="description">Width of the Facebook Like (Default: 400)</div>
<input maxlength="4" size="1" type="text" name="wp_fb_like_width" id="wp_fb_like_width" value="<?= $wp_fb_like_width ?>">
<h2>Height</h2>
<div class="description">Height of the Facebook Like (Default: 100)</div>
<input maxlength="4" size="1" type="text" name="wp_fb_like_height" id="wp_fb_like_height" value="<?= $wp_fb_like_height ?>">
<h2>Add the Facebook Send button?</h2>
<div class="description">The Send Button allows your users to easily send your content to their friends.</div>
<select name="wp_fb_like_send" id="wp_fb_like_send">
<?php
if ( !get_option("wp_fb_like_send") )
{
?>
<option value="">Select...</option>
<?php
}
?>
<option value="true" <?php if (get_option("wp_fb_like_send") == "true") echo 'selected'; ?>>Yes</option>
<option value="false" <?php if (get_option("wp_fb_like_send") == "false") echo 'selected'; ?>>No</option>
</select>
<br />
<br />
<div class="description">Finally, save it and enjoy your Facebook "Like" button!</div>
<br />
<input type="submit" value="Save Facebook Like Button" class="button-primary">
<input type="hidden" name="wp_fb_form_submit" value="true" />
</form>
<br />
<br />
</fieldset>
</div>
<hr>
<strong>Did this plugin help? If you like it and it is/was useful, please consider donating (Buy me a cup of coffee?) :smile: Many thanks!</strong></p>
<p>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="LP7GD3EXU4Q9Q">
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
</p>
<br />
<p>
<a href="http://www.twitter.com/ajbatac"><img src="http://twitter-badges.s3.amazonaws.com/follow_me-c.png" alt="Follow ajbatac on Twitter"/></a>
</p>
<br />
<?php
}
}if( !function_exists('wp_fb_like_format') )
{
function wp_fb_like_format( $align )
{
if($align == 'left') { $margin = '5px 5px 5px 0'; }
if($align == 'none') { $margin = '5px 0'; }
if($align == 'right') { $margin = '5px 0 5px 5px'; }
$layout = get_option("wp_fb_like_layout");
if($layout == '') { $layout = 'standard'; }
$show_faces = get_option("wp_fb_like_show_faces");
if($show_faces == '') { $show_faces = 'true'; }
$action = get_option("wp_fb_like_action");
if($action == '') { $layout = 'like'; }
$font = get_option("wp_fb_like_font");
if($font == '') { $font = 'arial'; }
$colorscheme = get_option("wp_fb_like_colorscheme");
if($colorscheme == '') { $colorscheme = 'light'; }
$width = get_option("wp_fb_like_width");
if($width == '') { $width = '450'; }
$height = get_option("wp_fb_like_height");
if($height == '') { $height = '100'; }
$fbsend = get_option("wp_fb_like_send");
if($fbsend == '') { $fbsend = 'false'; }
return $output;
}
}if ( !function_exists('wp_fb_like') )
{
function wp_fb_like( $content )
{
if( !is_feed() && !is_page() && !is_archive() && !is_search() && !is_404() )
{
switch( get_option("wp_fb_like_align") )
{
case 'tl': // Top Left
return wp_fb_like_format('left') . $content;
break;
case 'tr':
return wp_fb_like_format('right') . $content;
break;
case 'bl':
return $content . wp_fb_like_format('left');
break;
case 'br':
return $content . wp_fb_like_format('right');
break;
case 'nt': // None (Top)
return wp_fb_like_format('none') . $content;
break;