Tip: Sceditor alt text for Image

Post date: 2020-09-18 03:35:35
Views: 109

Every image uploaded via the Sceditor editor will have an alt text as "Image". This is not SEO-friendly.

The chance that someone finds your site through Google Image Search is maybe zero.

The chance that the image is included beside text content on Google normal search result pages is maybe also low.

The tip here is to use the file name as alt text. For example, your filename is alibaba-and-forty-milfs.jpg, then the alt text will be "alibaba-and-forty-milfs". Still better than the boring "Image".

$alttext = pathinfo($filename, PATHINFO_FILENAME);

Or a better trick :

$alttext = str_replace("-", " ",pathinfo($filename, PATHINFO_FILENAME));

And down under,

echo '<img src="'.$url.'" alt="'.$alttext.'" /> ';

Please click Here to read the full story.
 
Other Top and Latest Questions:
AIG Travel Guard insurance review: What you need to know
Supreme Court will take up the legal fight over ghost guns, firearms without serial numbers
Should I buy some facebook fixit car paint
Movie: Life Is Sweet
Fallout: The Trap
Tesla slides 4%, Li Auto sinks 8% as EV makers slash prices amid fierce competition
Cricket, a big business in India, brings star power to the U.S. with the country's first world cup
Carrier, the century-old inventor of the air conditioner, is moving on to the home heat pump
EU threatens to suspend TikTok Lite’s money-for-views program over addiction fears
Verizon reports fewer quarterly subscriber losses on flexible plan demand