{"id":147,"date":"2008-05-04T03:09:59","date_gmt":"2008-05-04T03:09:59","guid":{"rendered":"http:\/\/blog.technicalley.com\/?p=41"},"modified":"2008-05-04T03:09:59","modified_gmt":"2008-05-04T03:09:59","slug":"setting-up-wordpress-talian-10-theme","status":"publish","type":"post","link":"https:\/\/technicalley.com\/central\/blog\/2008\/05\/04\/setting-up-wordpress-talian-10-theme\/","title":{"rendered":"Setting Up WordPress Talian 1.0 Theme"},"content":{"rendered":"<p>Now that I had my blog pretty much functional, I wanted to explore some of the available themes. I was looking for something with a predominantly white background, three columns and widget ready so that I could customize it quickly and add features later on as needed.<\/p>\n<p><strong>Large selection of themes<\/strong><\/p>\n<p>I spent a couple of hours looking at the large collection at the <a href=\"http:\/\/themes.wordpress.net\/\" target=\"_blank\">WordPress ThemeViewer<\/a>. It has a really nice sorting feature that lets you search based on number of columns, color, widget-readiness, and other attributes. Most of the themes are quite artistically designed, and targeted at different kinds of blogging needs &#8212; personal blogs, professional websites, newsletters, and so on.  I have been using xmark-101 for about a week, and liked its very practical design. But since I wanted to try and place some AdSense blocks, I figured a theme with 3 columns would give me more flexibility.<\/p>\n<p><strong>Most liked<\/strong><\/p>\n<p>The ones that I liked the most were blue-zinfandel-10, intensive-01, oldschool-10, tiga-06 and talian-10. I tried all these, and found that oldschool-10 and talian-10 were the ones that really suited my needs, and between these two, I liked the softer color theme of the latter. So I decided to use talian-10, and went about customizing it.<\/p>\n<p><!--more--><\/p>\n<p><strong>Customizing Talian-10<\/strong><\/p>\n<p>Using widget selector, I was able to move most of the widgets to the right-side column. Most of it worked quite easily. The Category list did not show hierarchy well, so I changed it to drop-down menu for now, and it actually works nicely this way. The Search tool in the header area wasn&#8217;t functional, and I decided to leave it that way for the time being.<\/p>\n<p>While trying to add Google content-based ad blocks, referral blocks and ad-for-search blocks, I realized that there were several place holders already put in the code. That helped to some extent, and for the left-column ad blocks, I wrote some custom PHP code.<\/p>\n<p><strong>Fixing the search tool<\/strong><\/p>\n<p>When I added a new search widget onto one of the side columns, it worked correctly. But somehow the one that came with the theme in the header area was failing. The error message (&#8220;http:\/\/ &#8221; not found&#8221;) seemed to indicate that the path setting not initialized correctly. I dug through the Talian code trying to figure out what was wrong. Being fairly new to WordPress it wasn&#8217;t obvious to me. Then I decided to compare the search tool invocation with the one in the default WordPress theme which was working well for me. Very quickly, I found some differences that I will try to summarize here.<\/p>\n<p>In the WordPress default theme&#8217;s sidebar.php, I saw code like this:<\/p>\n<p>&lt;form id=&#8221;searchform&#8221; method=&#8221;get&#8221; action=&#8221;&lt;?php bloginfo(&#8216;home&#8217;); ?&gt;&#8221;&gt;<\/p>\n<p>In the Talian-10 theme&#8217;s header.php, I found:<\/p>\n<p>&lt;form id=&#8221;searchform&#8221; method=&#8221;get&#8221; action=&#8221;&lt;?php echo $_SERVER[&#8216;PHP_SELF&#8217;]; ?&gt;&#8221;&gt;<\/p>\n<p>I tried replacing <span style=\"color: #0000ff\">echo $_SERVER[&#8216;PHP_SELF&#8217;];<\/span> with <span style=\"color: #0000ff\">bloginfo(&#8216;home&#8217;);<\/span> and it worked!!<\/p>\n<p>And that fixed one nagging issue that I was having with my new theme, and after that I have been playing around with the AdSense blocks, and adding some pages and stuff like that.<\/p>\n<p><strong>The new theme<\/strong><\/p>\n<p>While I liked the XMark theme that I started with, I really needed the ability to use the left-side of the screen to place some widgets and possibly some ad blocks. That is what really motivated me to spend the time looking for another theme. So I spent a few hours looking for a new theme, and all the work to customize it for my blog. I am quite pleased with my current Talian-10 based theme and now I am focusing more on writing content in my blog and less on customizing it. I also noticed that this was one of the most downloaded themes from the site.<\/p>\n<p><a href=\"http:\/\/click.linksynergy.com\/fs-bin\/click?id=jDLMpI0*T2k&amp;offerid=20738.1&amp;type=10&amp;subid=\"><br \/>\n<img decoding=\"async\" alt=\"icon\" border=\"0\" src=\"http:\/\/img.textbookx.com\/images\/small\/93\/9781904811893.jpg\"><\/a><img loading=\"lazy\" decoding=\"async\" alt=\"icon\" width=\"1\" height=\"1\" src=\"http:\/\/ad.linksynergy.com\/fs-bin\/show?id=jDLMpI0*T2k&amp;bids=20738.1&amp;type=10&amp;subid=\"><br \/>\n<a href=\"http:\/\/click.linksynergy.com\/fs-bin\/click?id=jDLMpI0*T2k&amp;offerid=20738.1&amp;type=10&amp;subid=\">Ad: WordPress Complete: Set Up, Customize, and Market Your Blog<br \/>\n<\/a><img loading=\"lazy\" decoding=\"async\" alt=\"icon\" width=\"1\" height=\"1\" src=\"http:\/\/ad.linksynergy.com\/fs-bin\/show?id=jDLMpI0*T2k&amp;bids=20738.1&amp;type=10&amp;subid=\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Now that I had my blog pretty much functional, I wanted to explore some of the available themes. I was looking for something with a&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[46],"tags":[261,356,363],"class_list":["post-147","post","type-post","status-publish","format-standard","hentry","category-web","tag-php","tag-widget","tag-wordpress-theme","wpcat-46-id"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/technicalley.com\/central\/wp-json\/wp\/v2\/posts\/147","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/technicalley.com\/central\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/technicalley.com\/central\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/technicalley.com\/central\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/technicalley.com\/central\/wp-json\/wp\/v2\/comments?post=147"}],"version-history":[{"count":0,"href":"https:\/\/technicalley.com\/central\/wp-json\/wp\/v2\/posts\/147\/revisions"}],"wp:attachment":[{"href":"https:\/\/technicalley.com\/central\/wp-json\/wp\/v2\/media?parent=147"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/technicalley.com\/central\/wp-json\/wp\/v2\/categories?post=147"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/technicalley.com\/central\/wp-json\/wp\/v2\/tags?post=147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}