Jotting down stuffs
Posts tagged WordPress
Migrating to own domain, Part 3
Feb 12th
Done:
- Breadcrumbs. Hacked the theme to put in Yoast Breadcrumbs at the top of posts and pages.
- Function for sharing. Hacked the theme to put in AddToAny button in the footer part of posts.
- Snap Shots. Implemented Snap Shots™ Plugin for Wordpress.org into the blog, enabled only for external links.
- Creative Commons notice for my source codes. Used Creative Commons Configurator to put in Creative Commons notice at the end of each post. I actually intended only to mark my posts which include source codes, but it seems there’s no per-post settings for it, so all posts it is.
- Sitemap page. Installed the Dagon Design Sitemap Generator plugin for the sitemap page.
To do:
- OpenID login for comments. I tried a couple of plugins related to OpenId, but they didn’t actually work as I imagined, so I deactivated them at the moment. In my mind, I would like to have the functionality that will allow users to login using their OpenId-compatible accounts, such as GMail, or Facebook, or Tweeter etc. Then the avatar in the comments will use the one that they use as their profile picture. Something like that.
- Subscribe to comments. Already installed the Subcribe to Comments plugin, but have not completed the integration into the current theme yet.
Fixing the Mystique theme Twitter settings issue
Jan 31st
I am using the Mystique theme for this WordPress blog. It is a nice theme, however there is an issue that needs fixing – The Twitter widget in the default theme layout somehow defaults to WordPress’s Twitter account, and there’s no setting for that. The Twitter username is hardcoded into the theme code.
In this article, I will post the changes I did to the original theme in order to fix the Twitter issue. At the end of the article, I will provide a link to a zip file which you can download, extract to the Mystique’s theme directory and overwrite the original theme files.
Before that, disclaimers:
- I am not a WordPress expert. This is my first time hacking away a WordPress theme. I mostly did quick tries-n-errors when implementing this hack.
- This hack is not in any way endorsed by the original creator of the Mystique theme.
With that said, use this hack at your own risk. I will appreciate any feedback if you do try out this hack.
Read on to see the details of the hack and to download the zip file >
Migrating to own domain, Part 2
Jan 29th
It’s Saturday morning, and I’m back at setting up the blog.
- Looking for new themes to try out. The previous theme I set for few days: Inanis Glass, based on Windows Vista layout looked geeky. Nothing wrong with that but the theme felt “heavy” to load.
- Trying out the Mystique theme. Looks fine. Felt lighter. But how do I set the Twitter widget to show mine instead of Wordpress’s? Can’t seem to find in the settings. Tried to drag the widget to the sidebar, but then the original sidebar layout disappears. Will look at it later. Update Jan 31, 2010: See Fixing the Mystique theme Twitter issue.
- Learnt about Wordpress’s shortcodes from the Mystique theme’s blog. I see. So it is shortcodes I’m looking for to make the sourcecode tags appear like it was in WordPress.com.
- Looking for a SyntaxHighlighter sourcecode shortcode as seen on WordPress.com. The shortcode API seemed to already be there since WordPress 2.5. Now it is already 2.9. There should already be existing plugins implementing the sourcecode shortcode. Better search first before reinventing the wheel unnecessarily. Searched. Found: SyntaxHighlighter Evolved. Nice!
- Looking for an external link handler. What I want is some sort of plugin that will allow me to handle external links differently, like displaying an icon next to that link, sort of like that. Found: External Link.
SyntaxHighlighter in WordPress.com
Jan 9th
First of all, Happy New Year 2010!
As per one of my 2010 new year resolution to try start blogging (see my About page), I was planning to write something I found related to WordPress and Google Analytics.
But then I was already stuck on my way to write the should-be-first post. I wanted to post up some JavaScript code. I knew this popular Alex Gorbatchev’s SyntaxHighlighter. But WordPress does not allow plugins in their hosted blogs, obviously for security purposes.
I googled and found this blog: Syntax Highlighting in WordPress.com hosted blogs. Cool! Just what I was looking for. Reading on I found out that the SyntaxHighlighter was already integrated into WordPress.com hosted blogs. Here’s the page that explain just exactly how to do it: Posting Source Code.
document.write('And here is the result of posting source code.');