Latest topics
» Young Boy nabbed for Raping 6-year-old girl in an Uncompleted building
How To Add Featured Image In Carrington Mobile EmptyYesterday at 3:38 pm by Litifyed

» Mr Gbafun x Oladips – Ko Necessary
How To Add Featured Image In Carrington Mobile EmptyWed May 27, 2020 9:25 am by Adminkunlex

» ZaddyMeek Ft. Mr Gbafun x Davolee – Nigga’s Doings
How To Add Featured Image In Carrington Mobile EmptyWed May 27, 2020 9:23 am by Adminkunlex

» Full Css Code For Waphosts.com Website
How To Add Featured Image In Carrington Mobile EmptyTue May 19, 2020 7:02 am by Adminkunlex

» Full Css Code For Waphosts.com Website
How To Add Featured Image In Carrington Mobile EmptyTue May 19, 2020 7:01 am by Adminkunlex

» Chelsea star Callum Hudson-Odoi has been arrested
How To Add Featured Image In Carrington Mobile EmptyMon May 18, 2020 8:52 pm by Litifyed

» MAKE $50 DAILY THROUGH DIGITAL TRADING
How To Add Featured Image In Carrington Mobile EmptyMon May 18, 2020 11:39 am by skynett

» MTN 1.5gb for ₦300
How To Add Featured Image In Carrington Mobile EmptyMon May 18, 2020 11:37 am by skynett

» Java Game: 4 Vengadores Hulk, Thor, Iron Man Capitn Amrica
How To Add Featured Image In Carrington Mobile EmptyMon May 18, 2020 7:48 am by Adminkunlex

» Java Game: Heroes of World War II: Flying Tigers
How To Add Featured Image In Carrington Mobile EmptyMon May 18, 2020 7:48 am by Adminkunlex

» Java Game: Call Of Duty: Modern Warfare: Force Recon
How To Add Featured Image In Carrington Mobile EmptyMon May 18, 2020 7:47 am by Adminkunlex

» Are You Drinking Enough Water? 6 Signs You Need To Drink More Water
How To Add Featured Image In Carrington Mobile EmptySun May 17, 2020 9:08 pm by Adminkunlex

» Advance Waphost File List Paging Code
How To Add Featured Image In Carrington Mobile EmptySat May 16, 2020 6:46 pm by Adminkunlex

» How To Create CSS Theme In Waphosts.Com
How To Add Featured Image In Carrington Mobile EmptyFri May 15, 2020 5:07 pm by Adminkunlex

» Samklef Ft. Victor AD – Give Thanks
How To Add Featured Image In Carrington Mobile EmptyFri May 15, 2020 5:05 pm by Adminkunlex

» Peruzzi – Gaza (Prod. by Rexxie)
How To Add Featured Image In Carrington Mobile EmptyFri May 15, 2020 4:59 pm by Adminkunlex

» Shizzi Ft. Davido & Wale – Won Le Ba
How To Add Featured Image In Carrington Mobile EmptyFri May 15, 2020 7:39 am by Adminkunlex

» Davolee Ft. Masterkraft & Jaido P – G.O
How To Add Featured Image In Carrington Mobile EmptyFri May 15, 2020 7:38 am by Adminkunlex

» DJ Val Exclusive Ft. Wande Coal x Dmain – Owonikoko
How To Add Featured Image In Carrington Mobile EmptyFri May 15, 2020 7:37 am by Adminkunlex

» Rapsodii Ft. Obesere – 30 Milli
How To Add Featured Image In Carrington Mobile EmptyFri May 15, 2020 7:35 am by Adminkunlex

The most tagged keywords



How To Add Featured Image In Carrington Mobile

Go down

How To Add Featured Image In Carrington Mobile Empty How To Add Featured Image In Carrington Mobile

Post by Adminkunlex on Fri Nov 08, 2019 6:46 am

read how to add featured image below;
Login to your WP Dashboard
Goto “Appearance” > Themes > Editor
Under “select theme to edit”, Choose Carrington
and click Select.
Click “Theme Function” (function.php)
Copy below code and paste it there
function thumb() {
global $post, $posts;
$first_img = '';
ob_start();
ob_end_clean();
$output = preg_match_all ('/<img.*?src=\"((?!\").*?)\"/
i', $post->post_content, $matches);
$first_img = $matches[1][0];
if(empty($first_img)){ //Defines a default image
$first_img = "default image link";
}
return $first_img;
}
Now click “excerpt” > excerpt-default.php
Copy below code and paste it there
<img src="<?php%20echo%20thumb(); ?>"
alt="blablabla" />

https://figeria.com/topic-How-To-Add-Featured-Image-In-Carrington-Mobile

Adminkunlex
Admin

Posts : 1416
Join date : 2019-06-08
Age : 20
Location : Osun State, Nigeria

https://9jabaze.forumotion.com

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum