Adding Extra Icons to the Mystique Theme
The new web site is pretty much done now and I have pretty much settled on using the fantastic Mystique theme for WordPress. This is one the nicest and most useful themes I have seen. Built by the amazingly talented people at Digital Nature.
Many people have been having trouble adding extra icons to the theme. There are a number of ways to do this found in various places around the web but none of them stand alone and work correctly. I though it only fair that I publish my little walk through.
Thanks go out to all the people involved in the other walk-throughs – Mark N Hewitt, Kerem Erkan and many others.
This works with the latest version of the theme, as of March 18 2010. It is an amalgamation of many steps and has taken me hours to check and double check.
The main area of confusion was that some of the icons are contained within one main icon. I didn’t want to use them. Plus it was very confusing when trying to use the other icons as well. Then it was a case of trial and error and making it neat and tidy. I think the below should be very easy to use (and add to if required).
Please be sure to use all the code from this page. Do not mix it with other code until you are sure that everything is working.
So here’s the 4 steps.
1. Put the icons on your server
Head over to Mark’s site and download the icon pack (it’s half way down the page in a zip file).
http://www.marknhewitt.co.uk/archives/1921
Unzip an put all the icon files in a folder on your server: ../wp-content/uploads/mystique_icons/ *icon files go here*
You will have to make the folder mystique_icons first.
Now go to the WP Control Panel > Appearance > Mystique settings…
2. This code goes in User CSS area
#header p.nav-extra {top:-46px;height:54px;}
#header a.nav-extra {height:60px;}
#header a.nav-extra.rss{background:url("/wp-content/uploads/mystique_icons/nav-rss.png") no-repeat scroll right top transparent;}
#header a.twitter{background:url("/wp-content/uploads/mystique_icons/nav-twitter.png") no-repeat scroll right top transparent;}
#header a.myspace{background:url("/wp-content/uploads/mystique_icons/nav-myspace.png") no-repeat scroll right top transparent;}
#header a.linkedin{background:url("/wp-content/uploads/mystique_icons/nav-linkedin.png") no-repeat scroll right top transparent;}
#header a.facebook{background:url("/wp-content/uploads/mystique_icons/nav-facebook.png") no-repeat scroll right top transparent;}
#header a.blogger{background:url("/wp-content/uploads/mystique_icons/nav-blogger.png") no-repeat scroll right top transparent;}
#header a.email{background:url("/wp-content/uploads/mystique_icons/nav-email.png") no-repeat scroll right top transparent;}
#header a.googlewave{background:url("/wp-content/uploads/mystique_icons/nav-googlewave.png") no-repeat scroll right top transparent;}
3. This code goes in Advanced > User Settings (over-write the <?php in case you aren’t sure)
<?php
function mystique_custom_nav_icons($nav_extra)
{
$nav_extra = '<a href="'.get_bloginfo('rss2_url').'" class="nav-extra rss" title="RSS Feeds"><span>RSS Feeds</span></a>';
$nav_extra .= '<a href="http://www.twitter.com/phil_pendlebury" class="nav-extra twitter" title="Twitter"><span>Twitter</span></a>';
$nav_extra .= '<a href="http://www.myspace.com/philpendlebury" class="nav-extra myspace" title="MySpace"><span>MySpace</span></a>';
$nav_extra .= '<a href="http://uk.linkedin.com/in/pendlebury" class="nav-extra linkedin" title="LinkedIn"><span>LinkedIn</span></a>';
$nav_extra .= '<a href="http://www.facebook.com/pages/RIFFS-RAYS/99388735458" class="nav-extra facebook" title="Riffs & Rays @ Facebook"><span>Riffs & Rays @ Facebook</span></a>';
$nav_extra .= '<a href="http://gwfts.blogspot.com/" class="nav-extra blogger" title="Google Wave Blog"><span>Google Wave Blog</span></a>';
$nav_extra .= '<a href="http://www.pendlebury.biz/contact" class="nav-extra email" title="Contact"><span>Contact</span></a>';
$nav_extra .= '<a href="https://wave.google.com/wave/?pli=1#restored:wave:googlewave.com!w%252Bupyy5rPyA" class="nav-extra googlewave" title="Google Wave"><span>Google Wave</span></a>';
return $nav_extra;
}
add_action('mystique_navigation_extra', 'mystique_custom_nav_icons');
4. Edit the URLs in the code above
You don’t need to edit anything until you have checked that the icons show up correctly. When you’re ready just change the areas that are required (between the first set of quotes) e.g for me – the Twitter URL is (feel free to follow me):
http://www.twitter.com/phil_pendlebury
I hope some people may find this useful.
Thanks for reading.
Please note: There have been some comments that this does not look quite right in Google Chrome. It works fine in Firefox, Explorer and Safari. The icons don’t move as smoothly in Explorer but it works fine.
| Print article | This entry was posted by Phil Pendlebury on March 18, 2010 at 23:29, and is filed under IT, Personal, Technical. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |













about 5 months ago
Spot on.
It worked perfectly for me. At last.
Thank you.
:-)
about 5 months ago
:) Thank you very much !
about 5 months ago
It’s work, thank you !
about 5 months ago
All good now. Thanks!!!
about 5 months ago
Gracias por tu ayuda!
Funciona de maravilla
-
thanks for your help!
Works!
about 5 months ago
tried every tutorial and version anyone has posted, still cant get it to work!
the icons seem to be invisible, they’re there, but can’t see them, any suggestions? Thanks
about 5 months ago
My only suggestion would be to use only the exact code I have posted above and nothing else to start with.
I can see on your page that you have already edited the code. Either that or it is not what I have posted.
Try using it excatly as it is (above) and then editing it afterwards.
about 5 months ago
Had the same problem. I had to edit the path “/wp-content/uploads/mystique_icons” in the usr CSS because my “wp-content” was not in the root-directory of my site, but in a subdirectory.
Changed the path to “/sub-to-root/wp-content/uploads/mystique_icons” and everything worked fine!
about 2 months ago
@Tom- did you ever figure this out? I’m having the same problem. I think I did the 4 steps correctly- there isn’t too many places to mess up. Everything is functional, except the buttons are invisible. thought it might be the custom background image, but nope. My guess was that it was a permissions issue for the images folder, but 777 doesn’t even work. it has to be about the path, but i checked on @Wout’s suggestion, and that’s not my issue.
about 2 months ago
Nick, I just showed you above. Your path is wrong. You need to move the icons to the correct path. :-)
about 2 months ago
@Tom @Wout,
I got it to work- the path indeed was incorrect, my error. I FTP’d one level up and didn’t notice. apologies for any confusion- oversight. thanks Phil!
about 5 months ago
Yes, Thank You Very Much. It works perfectly. I was starting to loose hope. :D
about 5 months ago
Can I use the icons and style with any other theme. If yes, what alterations do I need to make? Thanks
Zafar
about 5 months ago
I would think that it would involve some major editing of your theme. Beyond my knowledge I’m afraid.
about 3 months ago
works ok on the latest release! all browsers are ok except IE8.
about 3 months ago
IE8 absolutely fine here. Maybe not as smooth as the others but perfectly fine nevertheless.
about 3 months ago
yeah mine is the same as yours Phil, all the icons seem to raise together when you hover over one in IE8. Its no big deal really. Forgot to say thanks!
about 3 months ago
It doesn’t work with Mystique 2.3+
about 3 months ago
It works fine with 2.3+ That’s what I am using now. Make sure you clear cookies and cache from your browser and then look again. If you didn’t clear cache and cookies after upgrading the theme it will all look wrong.
about 3 months ago
Yep, it works with 2.3.1 ;) Thanks !
about 3 months ago
Thanks so much for this post. I got it to work but my icons don’t bounce. Can you check out my site-in-progress at http://newhorizons123.com/test/? I am not currently using this site but am hoping to move my website in the near future.
Thank you in advance for your help :)
about 3 months ago
Hi there,
I can only see one icon there. The icons don’t bounce as well when viewed using Explorer though so maybe that is what you are seeing? Suggestion would be to simply strip the extra code and start again using ONLY the exact code that I posted here. Once you have that working you can then start to customise.
Cheers
about 2 months ago
Magic! Thank you very much :)
about 2 months ago
Finally:) Your solution is the only one that worked for me. Thanks a lot mate:)
about 2 months ago
Great man!
Your code workes also for Mystique 2.4.2 / WordPress 3.0!
Thanks a lot
about 2 months ago
this didn’t work for me- i can’t believe it! the icons are save in /public_html/wp-content/mystique_icons, and I copied and paste the two bits of code in the right spot. and cleared the cache. i get invisible buttons, but i can hover over where they should be and i can “click” on where they should be…please help!
nycomsga.org
about 2 months ago
You haven’t followed the instructions correctly. The path where you have put the files is wrong. Please read the post carefully and correct the path issue and it will work.
…/wp-content/uploads/mystique_icons/ *icon files go here*
about 2 months ago
Thank you so much Phil- I really appreciate it! Sometimes it seems crazy that people don’t get things online, but having just made an oversight, I’ll now have a bit more understanding for these types of posts. Again, thanks so much for responding to your site and being helpful! That’s getting rare these days!
I got all the icons working in the order I like, and added target=blank to a few outgoing links, and adjusted “top” to -38 which shows a bit less icon yet is clear.
Cheers!
about 2 months ago
Good stuff Nick, Glad to hear it worked out. :-)
about 1 month ago
Hey Phil….i am suffering the same problem as many reported above….The icons are invisible….i had mentioned the path right….no problem in that….still i am not getting it…..can uhelp me??
about 1 month ago
Hi there, you will notice that everyone who has reported the same problem has also reported it fixed by following the instructions exactly. Double check the exact path and copy paste the code to the correct place with no edits.
about 3 weeks ago
Thank you! Very simply and works pretty!
about 1 week ago
Hi Phil, thanks for this great post! Its works very smooth.