Latest topics
The most tagged keywords
How To Add Featured Image In Carrington Mobile
9jabaze - Entertainment | Webmaster | Browsing Tricks | Games/Apps Hub :: Technology Forums :: Blogging
Page 1 of 1
How To Add Featured Image In Carrington Mobile
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
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

» Download Naijaloaded.com Carrington Wordpress Mobile Theme
» How To Create Mobile And Pc View In Wapkiz, Xtgem And Wapelf Site
» Mobile Antivirus java.jar
» How To Reduce Your Mobile Data Usage
» How Do I Add Gadgets to Mobile View on Blogger?
» How To Create Mobile And Pc View In Wapkiz, Xtgem And Wapelf Site
» Mobile Antivirus java.jar
» How To Reduce Your Mobile Data Usage
» How Do I Add Gadgets to Mobile View on Blogger?
9jabaze - Entertainment | Webmaster | Browsing Tricks | Games/Apps Hub :: Technology Forums :: Blogging
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|
» 2020Bbnaija : Why I Can’t Be In A Relationship With Ozo – Nengi
» Can You Have S*x On Your First Date? Check Out What Actress, Debbie Shokoya Has To Say About This
» Nigerian Singer, Seunfunmi Stephen, Recounts How Her Husband Was Killed By Stray Bullet
» Olakunle Churchill Shares Photo Of Himself And Actress Rosy Meurer As He Writes On The Importance Of Loyalty
» Ubi Franklin Reveals What Happened To Him When He Visited A Hospital Amid COVID-19 Pandemic
» Vardy Wins Premier League Golden Boot, Beats Ings, Aubameyang & Sterling
» The Right Way To Preach About Hell - Milton Goh
» “Surgery For What?” – Regina Daniels Shows Off Hot Body After Childbirth (Video)
» I Got Pregnant As A Virgin At 23 – Wathoni
» #Bbnaija2020: Wathoni Kisses Kiddwaya During BBNaija Truth Or Dare Game
» Bbnaija: Kiddywaya Gropes Erica’s Breast While Dancing And She Reacts
» “I Hope To Collaborate With Rihanna & Drake Soon” – Rema
» “Girls That Give Threesome With Their Friend Have A Special Place In Heaven” – Naira Marley
» “To Be A Boss, You Must Be A Servant” – Frodd Recounts On His Humble Beginnings
» “Stop Pressuring Us With Your Beauty”, Actress Queen Nwokoye Begs Ini Edo
» You Look Like A Weed Smoker – Lady Fires Adekunle Gold Over New Look
» Davido Turns Chef, Spotted Cooking Probably For Chioma And His Crew
» Kanye West Apologizes To Kim Kardashian For Public Rants On Their Marriage
» [Lyrics] Korede Bello – Hey Babe