go41

removing the Social Bookmark Icons in Arthemia

von Joern am 28. Dez. 2011 | Keine Kommentare

If you use a plugin to display social bookmarks and also use the Arthemia free theme, you might get some icons displayed twice.

Here I explain how to remove the social icons which are hardcoded into single.php of Arthemia theme.
Open up single.php with any text editor and find a line with <div id="tools">

In this DIV are some lines loading the icons and also one line, which loads ‚the_ratings‘ if you use the plugin WP-PostRatings. (we delete this line too..)
So delete this:

<div id="tools">
<div style="float:left;"><a href=" http://digg.com/submit?phase=2&url= <?php the_permalink();?>&title=<?php the_title();?>" target="_blank"><img src="<?php echo get_option(‚home‘); ?>/wp-content/themes/arthemia/images/sociable/digg.png" title="Digg this!"></a><a href=" http://del.icio.us/post?v=4&noui&jump=close
&url=<?php the_permalink();?>
&title=<?php the_title();?>" target="_blank"><img src="<?php echo get_option(‚home‘); ?>/wp-content/themes/arthemia/images/sociable/delicious.png" title="Add to del.icio.us!"></a><a href="http://www.stumbleupon.com/submit?url=<?php the_permalink(); ?>&title=<?php the_title(); ?>" target="_blank"><img src="<?php echo get_option(‚home‘); ?>/wp-content/themes/arthemia/images/sociable/stumbleupon.png" title="Stumble this!"></a><a href=" http://technorati.com/faves?add=<?php echo get_option(‚home‘); ?>" target="_blank"><img src="<?php echo get_option(‚home‘); ?>/wp-content/themes/arthemia/images/sociable/technorati.png" title="Add to Techorati!"></a><a href="http://www.facebook.com/sharer.php?u=<?php the_permalink();?>&t=<?php the_title();?>" target="_blank"><img src="<?php echo get_option(‚home‘); ?>/wp-content/themes/arthemia/images/sociable/facebook.png" title="Share on Facebook!"></a><a href=" http://www.newsvine.com/_tools/seed&save? u=<?php the_permalink();?>&h=<?php the_title();?>" target="_blank"><img src="<?php echo get_option(‚home‘); ?>/wp-content/themes/arthemia/images/sociable/newsvine.png" title="Seed Newsvine!"></a><a href=" http://reddit.com/submit?url=
<?php the_permalink();?>&title=<?php the_title();?>" target="_blank"><img src="<?php echo get_option(‚home‘); ?>/wp-content/themes/arthemia/images/sociable/reddit.png" title="Reddit!"></a><a href=" http://myweb.yahoo.com/myresults/bookmarklet? t=<?php the_title();?>&u=<?php the_permalink();?>&ei=UTF" target="_blank"><img src="<?php echo get_option(‚home‘); ?>/wp-content/themes/arthemia/images/sociable/yahoomyweb.png" title="Add to Yahoo!"></a>
</div>

<div style="float:right;display:block;"><?php if(function_exists(‚the_ratings‘)) { the_ratings(); } ?></div>
</div>
the following stuff (below the lines deleted) will have to stay in place!!

</div>

<div id="comments">
<?php comments_template(); ?>
</div>
…….
Now the hardcoded icons should be gone, not more and not less.
ABOUT THE OLD ‚RO Social Bookmarks‘ Plugin: I do NOT recommend to use this as it inserts also a hidden link to the developers website into your site! Google doesn’t like hidden links! This link you might find in your sites sourcecode:

<div id="dwcredit"><a id="dwlogo" href="…….
Talking about single.php we could add the standard previous/next post link to your single posts here!
Details how to add previous_post_link and next_post_link you find in this topic:

topic/add-the-previous-next-post-link-to-single-post-template
____________________
you find me on Google+, Twitter and Facebook

(von: Joern)

Sorry, no posts matched your criteria.

Autor:

Du findest mich auch auf Twitter und Facebook!

Schreibe einen Kommentar

Pflichtfelder sind mit * markiert.


Diese Website verwendet Akismet, um Spam zu reduzieren. Erfahre mehr darüber, wie deine Kommentardaten verarbeitet werden.

weitere forum Beiträge: