Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can I display featured images on Carrington mobile theme?
#1
Follow these steps to display featured image
on Carrington mobile theme homepage
Step 1: Add featured image support to Carrington
theme, to do this Login to your WordPress Dashboard,
Goto Appearance, Click on Editor, On the Editor page
Choose Carrington and click on select. (the page
reloads). Scroll down a bit,
Now click on theme functions, Copy and paste the
following code on the last line before the closing ?>
tag in theme functions (also known as functions.php)
add_theme_support('post-thumbnails');
set_post_thumbnail_size(50,50);
Step 2: Call the featured image for each post to be
displayed on the homepage, to do this Login to your
WordPress Dashboard, Goto Appearance, Click on
Editor, On the Editor page Choose Carrington and
click on select. (the page reloads).
Now click on loop-default.php, within the codes look
for cfct_excerpt(); and paste the following code above
it and save changes. (This is responsible for displaying
the featured image before each post title on the
homepage if a featured image has been set.)
if(has_post_thumbnail())
{ the_post_thumbnail();}
Step 3: Style the featured image for it to be displayed
properly beside the post title on the homepage, to do
this Login to your WordPress Dashboard, Goto
Appearance, Click on Editor, On the Editor page
Choose Carrington and click on select. (the page
reloads).
Now scroll down and click on 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;
}
Congrats! Your featured image should display now.

Hello World!:

- No messages were found.
  


Possibly Related Threads…
Thread Author Replies Views Last Post
  How To Add Featured Image in Carrington Mobile Simon 0 57 04-01-2020, 09:45 PM
Last Post: Simon
  Steps To Easily Edit Carrington Mobile Themes Simon 0 77 04-01-2020, 09:42 PM
Last Post: Simon
  Why do most Nigerian entertainment blogs use Carrington mobile Wordpress theme? Simon 0 67 03-22-2020, 04:10 PM
Last Post: Simon
  How can I set theme for either mobile or desktop in Wordpress? qanda 0 68 03-22-2020, 04:06 PM
Last Post: qanda
  Starmp3loaded WordPress Theme Pakyil 0 79 02-23-2020, 08:38 AM
Last Post: Pakyil

Forum Jump:


Users browsing this thread:
1 Guest(s)