Carrington mobile theme customization

Carrington mobile theme is WordPress theme for your mobile sites.I once had chance of working with this theme.It was fun to work with and is cool mobile theme.I need to make some customizations based on my requirement.I listed the customization as it might be useful for others as well.

Replace Carrington theme search box with Google custom search box

Open the file wp-content/themes/carrington-mobile/forms/search.php and search for below code fragment

<form id="search" action="<?php bloginfo('home'); ?>" method="get">
			<input type="text" name="s" id="s" inputmode="predictOn" value="" />
			<input type="submit" name="submit_button" value="Search" />

Replace above code with Google custom search box code.The final code will look like below code fragment

 <div class="group">
<form action="" id="cse-search-box">
    <input type="hidden" name="cx" value="partner-pub-00000000000000" />
    <input type="hidden" name="ie" value="UTF-8" />
    <input type="text" name="q" size="30" />
    <input type="submit" name="sa" value="Search" />
<script type="text/javascript"

Carrington mobile theme with Spam Free WordPress plugin

Open the file wp-content/themes/carrington-mobile/forms/comments.php.You need to replace the code between <form> and </form> including the form tags.You need to delete all code between <form> and </form> including the tags and add <?php comment_form(); ?> line.

Carrington mobile theme footer customization

To remove footer text Proudly powered by WordPress and Carrington from Carrington Mobile Theme follow below steps (footer text also contains links to login and logout)
Open the file wp-content/themes/carrington-mobile/footer/bottom.php and search for the code shown below

<p class="small">
Proudly powered by <a href=""><strong>WordPress</strong></a> and
lt;a href=""><strong>Carrington</strong></a>.
 <?php wp_loginout(); wp_register(' | ', ''); ?><br />

Delete the code if you do not want to display the links and the logout login links.
If you want to replace the line with your site name and privacy policy link then replace above line with code shown below (replace Udinra and links to Udinra to your web site)

<p class="small">© 2011 <a href="">Udinra</a>
<a href="">Privacy Policy</a></p>

Remove date from Carrington mobile theme excerpts page

Carrington Mobile Theme displays date on the excerpt page and the date on side of excerpt page title gives indication of last time the page was modified.To remove this date from the excerpt pages of Carrington Mobile theme follow below steps
Open file wp-content/themes/carrington-mobile/excerpts/excerpt-default.php and delete below line of code form the file

<span class="date"><?php the_time('M j, Y'); ?></span>

Carrington mobile theme with WordPress SEO by Yoast

Carrington theme used along with WordPress SEO by Yoast creates repetition of titles (for example if your website title is Udinra then this word will get repeated). This is because the SEO plugin tries to rewrite the title and the title generating code in the theme conflicts with this feature of the SEO plugin.To resolve this issue follow below steps
Open the file wp-content/themes/carrington-mobile/header/header-default.php and search for below line of code

<title><?php wp_title('«', true, 'right'); bloginfo('name'); ?></title>

Replace above line of code with below line

<title><?php wp_title(''); ?></title>

42 comments Carrington mobile theme customization

Leave a Reply

Your email address will not be published. Required fields are marked *