Hi! I'm Allen and I welcome you to my blog. I blog mainly about my blogging experiences where I get to learn how to earn money online through blogging and have fun doing so. To learn more about my blog, you may want to subscribe to my RSS feed. If you have some questions, feel free to ask me by using my contact form. Thank and have a nice day.
Last week, I noticed some problems in the True Blue Wordpress theme that I got from Easy wordpress. So what I did was to go to their support forum and post a question,
Hi,
I have been using the True Blue Theme for about two weeks now and I have noticed several problems.
- The search function does not work. Check at http://silkenhut.com. Do a search and it just redirects to the homepage.
- There is no <?php wp_footer(); ?> found anywhere in the code. I think this is required for some plugins to work (wordpress stats).
Please advice on what can be done about this. Thanks.
Guess what I got from what I posted? (link to my forum thread)
A link back to my blog.
Yes! That’s the only thing I got from my post. There were a few views but nobody replied or bothered to help. So what I did now is to try to solve this problem on my own.
#1 Search Function Not Working
This was something I accidentally discovered when I was trying to search for old posts in my blog. The search function does not give you results but only redirects you the homepage. So I put on my thinking cap and started debugging the template code.
The search function can be found at the header.php file. The original code is this,
<div class="Search">
<form action=”<?php echo $_SERVER['PHP_SELF']; ?>” method=”post”>
<input type=”text” name=”s” class=”keyword” />
<div id=”buttonsearch”><input name=”submit” type=”image” class=”search” onmouseover=”javascript:changeSty(’searchIE’);” onmouseout=”javascript:changeSty(’search’);” title=”Search” src=”<?php bloginfo(’template_url’); ?>/images/transparent.gif” alt=”Search” />
</div>
</form>
</div>
Take note of the code that has been highlighted in red. Actually that’s the code that tells your browser where to go when it does a search.
<?php echo $_SERVER['PHP_SELF']; ?> returns a different value depending on your blog address. So for my blog, it returns the value, “http://silkenhut.com/index.php“. It’s simply yourblog.com + index.php. Since I don’t use index.php for my blog, I replaced that phrase with my blog address so now it looks like this.
<div class="Search">
<form action=”http://silkenhut.com” method=”post”>
<input type=”text” name=”s” class=”keyword” />
<div id=”buttonsearch”><input name=”submit” type=”image” class=”search” onmouseover=”javascript:changeSty(’searchIE’);” onmouseout=”javascript:changeSty(’search’);” title=”Search” src=”<?php bloginfo(’template_url’); ?>/images/transparent.gif” alt=”Search” />
</div>
</form>
</div>
See what I replaced? With that simply change, the search function now works. ^_^
No wp_footer in theme
This is another error that I found accidentally. I’m using the wordpress stats plugin and I noticed that it’s not recording the hits to my blog so I went to wordpress support forums to look for answers. I found out that the reason why the plugin does work because it needs the <?php wp_footer(); ?> somewhere in the template in order to work.
I’m currently working on the fix for this since adding this in my footer destroys my current theme. ^_^
Update: Just add it in your footer, before the </div> tags and it will work.
Where’s the support?
This is something I want to ask the theme developers. I’m sure it’s not a one man blog so there should be someone who could help me but alas nobody did. But it’s good that I had a bit of knowledge in PHP so I was able to solve some of these problems.
So in the future, if you want to use the true blue easy wordpress theme by easy wordpress, don’t forget to add these fixes first. ^_^
For more blog experiences, please subscribe to my feeds.
Popularity: 2% [?]
11 Responses
McBilly (19 comments.)
January 30th, 2008 at 4:35 pm
1Darn. That’s pretty disappointing for a big site. It’s good that you got it fixed though, Allen.
McBilly’s last blog post..I Won A Revolution Premium WordPress Theme and I’m Giving it Away!
Allen (673 comments.)
January 30th, 2008 at 7:51 pm
2Ah yes, it’s really disappointing. As an act of revenge, I’ll delete their link from the footer bwahaha
Although I’m still happy that I learned something while dissecting the theme code.
Ling (16 comments.)
January 30th, 2008 at 8:04 pm
3Not to say that I don’t unerstand code, but I’m afraid I’m too tired right now to go through all that. All I’ll say is that maybe if you visit http://foolswisdom.com and ask Lloyd Budd nicely and politely, any problem you have with wordpress will be more than solved. He works for a company called Automattic which does work on wordpress.
CrazyMan (10 comments.)
January 30th, 2008 at 8:26 pm
4I am disappointed form it too.
Allen (673 comments.)
January 31st, 2008 at 5:25 pm
5@Ling - It’s ok Ling. Thanks for the help. I think I have sorted it out. You can try a test search to see that it’s now ok. hehe
joanne (1 comments.)
February 1st, 2008 at 7:59 am
6Hope your wordpress prob is fixed.
it’s a bother when the code doesn’t work or won’t upload.
joanne’s last blog post..I Have Ads From Project Wonderful Now
Allen (673 comments.)
February 1st, 2008 at 10:10 am
7@Joanne - Hi Joanne, I’m happy to say that my wordpress problem is fixed. I’m glad that the solution was easy enough for me.
Btw, I just browsed around your blog… I suggest you minimize your project wonderful ads.
Thanks for visiting. Please come again.
Married Secrets (1 comments.)
February 5th, 2008 at 4:08 am
8Yes remove the link and to punish them add mine lol . Hope you sorted the footer issue where as I don’t really understand why it would ruin your design ?
Allen (673 comments.)
February 5th, 2008 at 10:10 am
9@Married secrets - As of now, I have not done their punishment. Hehe I think I’ve sorted the footer issue. I’m not really sure why it ruined the blog design but my first try in adding the footer made my background black. I know it’s weird but what I did was to add it in different places and now it looks ok.
moon (2 comments.)
February 5th, 2008 at 7:05 pm
10You have a bit of knowledge in PHP. So it’s not a problem for you.
hehe
I suggest you to paste the right code onto the support forum. It’ll help the person who want to use this theme in the future.
moon’s last blog post..Blogging Tips– 9个建议让你的评论引人注目
Allen (673 comments.)
February 6th, 2008 at 9:26 am
11@moon - Yes, I used to study PHP before but I stopped. ^_^ I just went to the support forum and my post is still left unanswered.. That’s what you call support I guess…
Featured Blogger
"center">
Recent Posts
Sponsored Ads
Subscribe
Subscribe to my feeds
Top Commentators
Categories
Directories and Stats
Comment Policy

Comments on this blog are made DOFOLLOW for the Google Spiders after three (3) legit comments. Comments are moderated. Spam will not be tolerated.Copyright © Silkenhut's World • by Allen Michael Gurrea
talumpati | Pacquiao Marquez rematch | Monder Trojan Removal | Shawty Meaning | Ragnarok Bot | Free Sony PSP downloads