Latest topics
» Mp3/Audio: Olamide – Seven (Everyday)
How To Add Featured Image In Carrington Mobile EmptyTue Nov 19, 2019 7:50 pm by Adminkunlex

» How To Send Free Messages On MTN
How To Add Featured Image In Carrington Mobile EmptySun Nov 17, 2019 1:09 pm by Adminkunlex

» Fast Apn Configuration Settings For Mtn, Airtel, Glo, 9mobile, Smile, Spetranet, Ntel And Modem
How To Add Featured Image In Carrington Mobile EmptySun Nov 17, 2019 1:02 pm by Adminkunlex

» Video: 2baba - Important
How To Add Featured Image In Carrington Mobile EmptySun Nov 17, 2019 12:59 pm by Adminkunlex

» 10 Things Christians Should Avoid In Church For Their Own Good.
How To Add Featured Image In Carrington Mobile EmptySun Nov 17, 2019 12:56 pm by Adminkunlex

» Seven Things A Christian Must Never Do Because Of Money
How To Add Featured Image In Carrington Mobile EmptySun Nov 17, 2019 12:55 pm by Adminkunlex

» [Lyrics] Small Doctor – Set Awon
How To Add Featured Image In Carrington Mobile EmptySun Nov 17, 2019 3:03 am by Adminkunlex

» [Lyrics] Pheelz Ft. Olamide & Naira Marley – Gobe
How To Add Featured Image In Carrington Mobile EmptySun Nov 17, 2019 3:01 am by Adminkunlex

» [Lyrics] Reminisce Ft. Olamide, Naira Marley, Sarz0– Instagram
How To Add Featured Image In Carrington Mobile EmptySun Nov 17, 2019 3:00 am by Adminkunlex

» [Lyrics] Olamide – Choko Milo
How To Add Featured Image In Carrington Mobile EmptySun Nov 17, 2019 2:59 am by Adminkunlex

» [Lyrics] 9ice – GbasGbos
How To Add Featured Image In Carrington Mobile EmptySun Nov 17, 2019 2:57 am by Adminkunlex

» [Lyrics] Idowest – Set Awon
How To Add Featured Image In Carrington Mobile EmptySun Nov 17, 2019 2:55 am by Adminkunlex

» [Lyrics] Falz Ft. Patoranking – Girls
How To Add Featured Image In Carrington Mobile EmptySun Nov 17, 2019 2:54 am by Adminkunlex

» [Lyrics] Simi – Selense
How To Add Featured Image In Carrington Mobile EmptySat Nov 16, 2019 7:35 am by Adminkunlex

» Mp3/Audio: Phyno Ft. Flavour – Vibe
How To Add Featured Image In Carrington Mobile EmptySat Nov 16, 2019 7:33 am by Adminkunlex

» Mp3/Audio: Runtown – Redemption
How To Add Featured Image In Carrington Mobile EmptySat Nov 16, 2019 7:32 am by Adminkunlex

» Mp3/Audio: Pheelz x Olamide x Naira Marley – Gobe
How To Add Featured Image In Carrington Mobile EmptySat Nov 16, 2019 7:30 am by Adminkunlex

» Mp3/Audio: 2Baba – Important
How To Add Featured Image In Carrington Mobile EmptySat Nov 16, 2019 7:29 am by Adminkunlex

» Mp3/Audio: Leke Lee Ft. Mohbad – MFM
How To Add Featured Image In Carrington Mobile EmptySat Nov 16, 2019 7:28 am by Adminkunlex

» [Fuji Music] Saheed Osupa – Dynamism
How To Add Featured Image In Carrington Mobile EmptySat Nov 16, 2019 7:26 am by Adminkunlex


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 : 866
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