Customize your SexyBookmarks WordPress plugin
| SHARE: | Share |
|
Today, I was fighting with the SexyBookmarks wordpress plugin. I installed it on one of my sites but faced some issues.
My first problem was that my icons list did not want to expand. Something blocked the animate-expand multi-lined bookmarks function. After a few minutes of checking and testing I have found out that my WordPress theme (Styleicious 1.12) had a java script that was in conflict with SexyBookmarks.

This is the piece of code I am talking about:
<script type="text/javascript">
var rbet_engine=’<?php echo get_bloginfo(‘template_directory’); ?>/rbet_engine.php’;
var wp_url=’<?php echo get_option(‘home’); ?>’;
var wp_theme_adr=’<?php echo get_bloginfo(‘template_directory’); ?>’;
var uses_mod_rewrite=true;
</script>
I decided to remove it. My theme is still working and.. finally, SexyBookmarks is acting as it should.
OK. That’s nice, but I still had my second issue. The width of the icon’s list was to big and did not fit in the page. I had the content (post text) on it’s place but my SexyBookmarks were deep down, close to the footer of the page.
So, I had a new task. I needed to find a way to limit the number of icons per line (I was hoping that this will reduce it’s width) or, to force a specific width.
I had another series of trial and error and came up with this solution:
- I’ve set the inclusion to “manual”
- embedded the manual inclusion code into a table with a defined width
Here’s the code:
<table width="500"><tr><td><?php if(function_exists(‘selfserv_sexy’)) { selfserv_sexy(); } ?></td></tr></table>
Now it looks and acts as it should. Finally.
P.S. This plugin is awesome, this is my 1st site where I had troubles setting it up. I have it on a few of my other blogs and it is working great! I recommend it.
Incoming search terms:
Filed under: Web development, Wordpress plugins · Tags: SexyBookmarks, WordPress plugin
Well, I decided to remove my old social media icons and installed SexyBookmarks.