- Advertisement -
The Carrington mobile theme framework is the fastest mobile theme version that delivers as expected.
The Carrington theme is what Naijaloaded music site have been using since ages. This is because of the theme performance and UI design of the theme.
However, there are little challenges about this theme and one of them is that it doesn’t have featured image. This is not really something to worry about as WordPress gives users the chance to modify every given theme to their test.
Today, we will learn how to Display Featured Image On Carrington Mobile Theme Homepage.
- Advertisement -
NB: You will need an 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.