- Advertisement -
Carrington mobile theme framework is just so good that every mobile site uses it. The theme happens to be the one Naijaloaded latest theme is built with. Carrington mobile theme is so basic that it doesnt have featured image on it but there is always a workaround as far as WordPress is involved.
Today you will learn how to How to Display Featured Image On Carrington Mobile Theme Homepage. Please note that need the administrative right on your cpanel to achieve this because you are going to open the theme file of carrington which naijaloaded latest theme was built with. If you are ready then lets do it.
Follow these 3 steps to display featured image on Carrington mobile theme homepage
Step 1: Login to your cPanel or WordPress Dashboard and locate your funtion.php file. Once you see theis file in your carrington theme Scroll down a bit, on the last line before the closing ?> tag in theme functions add below snippet of codes and hit save.
add_theme_support('post-thumbnails');
set_post_thumbnail_size(50,50);
Step 2: Next is to call the featured image which you will have to find the folder that contains loop-default. Open it and look for cfct_excerpt(); and paste below code just before it and you are done.
if(has_post_thumbnail())
{ the_post_thumbnail();}
You have succeeded on how to display featured image on Carrington Mobile ThemeHomepage. But the next this is to style it and make it look good.
Step 3: Now locate style.css, Copy and paste the following code on the last line of Style.css.
img {
height: auto;
max-width: 99%;
}
.wp-post-image {
float: left;
margin: 0 11px 0 0;
padding: 2px 0 5px !important;
}
ul.table.disclosure li, ul.table li.disclosure {
clear: both;
margin: 0;
padding: 0 0 0 3px !important;
position: relative;
}
Thats all well done. You can now check to see how beautifully styled your Carrington featured image is.
Final Note: If you are looking for a customized Carrington theme that looks like naijaloaded latest mobile theme with all its functionality contact me today.