The mind of the six billionth one…
New blog theme, Mystique
I was using the Arclite theme from designer Milenko Popovici (digitalnature), and went to his site to check for updates to the theme. I saw Mystique theme there and loved it instantly. So, I will be using it for my blog from now on. This man has real talent! ![]()
| Print article | This entry was posted by Kerem on November 20, 2009 at 14:13, and is filed under Wordpress. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |
No trackbacks yet.
Adding Facebook and LinkedIn icons on Mystique v2.x
about 6 months ago - 108 comments
Mystique theme for WordPress has reached version 2.0. Milenko is very active on updating it. With 2.0, you don’t need to edit any theme files manually, and this makes it much easier to add new social networking icons and replace the default Twitter and RSS icons. Here is how to do it:
First, download the image below (all icons were created by Mark Hewitt, I only merged the LinkedIn icon into the default icon set. You can find other icons on his site.), and upload it to your site. It will go to the SITE_ROOT/wp-content/uploads/ directory, if you did not change your upload destination.
![]()
OK, now that you have uploaded your image to your site, you will have to edit your site style. You will add the necessary changes to Mystique’s settings, so that they will not be overwritten after a theme update. Go to your admin panel and select Mystique settings under Appearance. In the settings page, select the User CSS tab, and add the following lines there:
/* Extra navigation icons */ #header a.nav-extra.rss{background:url("/wp-content/uploads/nav-icons.png") no-repeat scroll right top transparent} #header a.twitter{background:url("/wp-content/uploads/nav-icons.png") no-repeat scroll -128px top transparent} #header a.linkedin{background:url("/wp-content/uploads/nav-icons.png") no-repeat scroll -64px top transparent} #header a.facebook{background:url("/wp-content/uploads/nav-icons.png") no-repeat scroll 0px top transparent}
The numbers after scroll in these lines select which icon to show. 0px is the first icon (i.e. Facebook), -64px is the second one (i.e. LinkedIn) etc. with decreasing 64 pixels.
If you want to lift the icons up a little bit, add the following lines before the lines you have just written:
#header p.nav-extra {top:-46px;height:54px;} #header a.nav-extra {height:60px;}
You can change the height of the icons by changing the value of -46px in the first line.
Now that you have readied your icons, let’s show them on your site. Now select the Advanced tab from Mystique Settings, left to the User CSS tab that you are currently on. In the User functions section, add the following. (do not remove the first line that says php there!)
function mystique_custom_nav_icons($nav_extra) { $nav_extra .= '<a href="YOUR_LINKEDIN_PROFILE" class="nav-extra linkedin" title="Contact me on LinkedIn!"><span>Contact me on LinkedIn!</span></a>'; $nav_extra .= '<a href="YOUR_FACEBOOK_PROFILE" class="nav-extra facebook" title="Contact me on Facebook!"><span>Contact me on Facebook!</span></a>'; return $nav_extra; } add_action('mystique_navigation_extra', 'mystique_custom_nav_icons');
If you want to remove Twitter icon and only want to show RSS, Facebook and LinkedIn icons, add this code instead of the one above:
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="YOUR_LINKEDIN_PROFILE" class="nav-extra linkedin" title="Contact me on LinkedIn!"><span>Contact me on LinkedIn!</span></a>'; $nav_extra .= '<a href="YOUR_FACEBOOK_PROFILE" class="nav-extra facebook" title="Contact me on Facebook!"><span>Contact me on Facebook!</span></a>'; return $nav_extra; } add_action('mystique_navigation_extra', 'mystique_custom_nav_icons');
If you want to change the order of the icons, change the order of the lines in the example. Also, you can remove a line altogether if you don’t want to show an icon. For example the following code only shows RSS and Facebook icons with Facebook icon at the right and RSS icon at the left:
function mystique_custom_nav_icons($nav_extra) { $nav_extra = '<a href="YOUR_FACEBOOK_PROFILE" class="nav-extra facebook" title="Contact me on Facebook!"><span>Contact me on Facebook!</span></a>'; $nav_extra .= '<a href="'.get_bloginfo('rss2_url').'" class="nav-extra rss" title="RSS Feeds"><span>RSS Feeds</span></a>'; return $nav_extra; } add_action('mystique_navigation_extra', 'mystique_custom_nav_icons');
Change YOUR_LINKEDIN_PROFILE and YOUR_FACEBOOK_PROFILE according to your contact info. That’s all, now you should have the new icons on your site.
Adding up on Mark Hewitt’s Mystique Facebook Icon Hack
about 7 months ago - 7 comments
UPDATE: This post is only valid for Mystique versions up to 1.7.2. Newer versions need a different approach which can be found on this post.
Well, Mystique is a beautiful theme, but the original icons for Twitter and RSS Feed you see on the upper right were not very appealing to the eye. And the Facebook and LinkedIn icons? They are not part of the theme.
So, what I have done to add those extra icons is, follow the instructions on Mark Hewitt’s Facebook Icon for Mystique Theme post. But editing the style.css file and uploading the icons over and over is not necessary after each theme update, so here are more update friendly instructions:
First, download the following image (all icons created by Mark, I only merged the LinkedIn icon into the default icon set), and upload it to your site. It will go to the SITE_ROOT/wp-content/uploads/ directory, if you did not change your upload destination.
![]()
OK, now that you have uploaded your image to your site, you will have to edit your site style. But instead of editing the style.css file directly, you will add the necessary changes to Mystique’s settings, so that they will not be overwritten after a theme update. Go to your admin panel and select Mystique settings under Appearance. In the settings page, select the User CSS tab, and add the following lines there:
#header .nav-extra.rss{background:transparent url(/wp-content/uploads/nav-icons.png) no-repeat right top;right:20px;} #header a.twitter{background:transparent url(/wp-content/uploads/nav-icons.png) no-repeat -128px top;right:84px;} #header a.linkedin{background:transparent url(/wp-content/uploads/nav-icons.png) no-repeat -64px top;right:148px;} #header a.facebook{background:transparent url(/wp-content/uploads/nav-icons.png) no-repeat 0px top;right:212px;}
The numbers after no-repeat in these lines select which icon to show. 0px is the first icon (i.e. Facebook), -64px is the second one (i.e. LinkedIn) etc. with decreasing 64 pixels. And the numbers at the very end of the lines show where these icons will be from the right side. For example, 84px will put the icon to 84 pixels left of the right side.
If you want to lift the icons up a little bit, also add the following line:
#header .nav-extra{width:64px;height:46px;display:block;position:absolute;bottom:18px;z-index:10;}
The height element in this line determines the height of the icons.
Now that you have readied your icons, let’s show them on your site. You have to manually edit the header.php file in SITE_ROOT/wp-content/themes/mystique folder unless Milenko (designer of Mystique) comes up with another solution in the future versions of the theme.
Open header.php with a text editor and add the last two lines in the following code. These lines will go just after twitter code (they should go about lines 61-62 in version 1.72 of the theme). I have also included some of the original code for you to be able to find where to add the lines.
52 53 54 55 56 57 58 59 60 61 62 63 |
<?php
//$twituser = get_mystique_option('twitter_id');
// if(is_active_widget('TwitterWidget'))
$twitinfo = get_option('mystique-twitter');
$twituser = $twitinfo['last_twitter_id'];
if ($twituser): ?>
<a href="http://www.twitter.com/<?php echo $twituser; ?>" class="nav-extra twitter" title="<?php _e("Follow me on Twitter!","mystique"); ?>"><span><?php _e("Follow me on Twitter!","mystique"); ?></span></a>
<?php endif; ?>
/* ADD THE FOLLOWING LINES */
<a href="http://tr.linkedin.com/in/YOUR_LINKEDIN_USER" class="nav-extra linkedin" title="<?php _e("Contact me on LinkedIn!","mystique"); ?>"><span><?php _e("Contact me on LinkedIn!","mystique"); ?></span></a>
<a href="http://www.facebook.com/YOUR_FACEBOOK_USER" class="nav-extra facebook" title="<?php _e("Contact me on Facebook!","mystique"); ?>"><span><?php _e("Contact me on Facebook!","mystique"); ?></span></a>
|
Change YOUR_LINKEDIN_USER and YOUR_FACEBOOK_USER according to your contact info.
If you don’t need one or both of these icons (for example only to have the fancy Twitter and RSS icons Mark created), just delete the according lines from both header.php and User CSS tab of Mystique settings.
That’s all, you can find additional info and icons on Mark’s post.
Mystique and WP-Syntax Incompatibility
about 7 months ago - 2 comments
If you use Mystique theme and WP-Syntax plugin (the syntax highligher) together, you will notice that, your code snippets will use Mystique’s fonts instead of monospace for colored words. When reading codes, monospace fonts like Courier fell much better, because they are easier to read.
Mystique’s style.css file defines default fonts with “*”, so every element on your site which does not have font information will use Mystique’s default fonts. WP-Syntax uses span elements for colors, and these elements do not have their font attributes defined.
In order to solve this problem, you have to add the following to wp-syntax.css file of the plugin:
.wp_syntax span { font-family: Courier, "Courier New", monospace; }
This way, WP-Syntax will use the correct fonts for every span element, rendering colored words with correct fonts.




about 6 months ago
I agree this is an awesome theme, I found it to be easily customized and much more. I changed the background so it looks more personal also, then I added my companies logo. Feel free to check it out and let me know what you think haha. Awesome blog by the way.
about 6 months ago
I Downloaded The New Version Of It And It Got Messed Up Can You Upload This Version of the theme to mediafire.com and then give me the link for the download t
it would be awesome if you would
about 6 months ago
Sorry PRad, I am also using the latest version now, I don’t have the old version.
about 6 months ago
oh its ok btw how did you have the face book thing next to your twitter i can only get Twitter & RSS up Their?
about 6 months ago
Please see this post.
about 6 months ago
Hi, how did you get to re-arrange the menu for the pages?
I would like to have “about” last but no matter what value I assign to the pages in the edit-> attributes option is is alphabetical with about being first…
Thx.
T.
about 6 months ago
Hi Tomas,
It seems like you have been able to rearrange your pages before I could answer your question.
about 5 months ago
I’ve been wondering how you change the RSS link in the RSS icon..I’ve been searching everywhere for this solution..please help!
about 5 months ago
You can write
'http://your_rss_url'instead ofget_bloginfo('rss2_url')to set the RSS URL to whatever you like.about 5 months ago
Hi can you tell me where this is located? is this in the header.php folder or a subfolder within the mystique theme? i cant find exactly where’s get_bloginfo(‘rss2_url’) to replace it with my URL. Thanks a lot!
about 5 months ago
Check this post, you can see where
get_bloginfo('rss2_url')is used, in the examples.about 5 months ago
thanks! turns out that mystique version 2.2 gives you the option to modify the RSS and twitter link thorugh the mystique/navigation settings. so i dowloaded that version here: http://digitalnature.ro/projects/mystique/comment-page-123/#comment-7425
about 5 months ago
Edgar, you are aware that the comment chain you provided on Digital Nature also goes to my post that I directed you to, right?
The correct link should be http://digitalnature.ro/projects/mystique/. And yes, it seems like version 2.2 gives the ability to customize the RSS feed link and twitter user.
Cheers.
about 5 months ago
Hi again Kerem, thanks for your post about adding additional icons, it helped out.
I have an unrelated question though. I changed my home page to a static page and blog to a page named “blog.” But now my “blog” page button stays down even though im on another page. Is there something i can do? Thank you.
about 5 months ago
Well, that, I don’t know Edgar, sorry.
about 5 months ago
thanks anyways!
about 5 months ago
hey dude i was looking your layout… and asking me … how can i add the contact me on facebook.. like Twitter and RSS.. i dont have any problems with the design of the buttoms but ive no idea how put in there like you.. im using this theme actually..
if you can giveme a little help.. i will appreciate
about 5 months ago
See this post Alexis. I have already explained the process in detail there.
Cheers.
about 5 months ago
oh yeah ! thanks man !!