Hardkap » Pritlog - Blogging made simple

Traffic from Google Images

(2 posts)
  1. john
    Member

    Prit,

    I want to share the simplest way I found to populate alt tags on images, using post titles.

    Having meaningful alt tags in images is basic to improve ranking / traffic from Google Images, and depending on the topic of your blog such traffic could be a significant one.

    When using nicEdit you could certainly press the source code button and enter it manually, but thats not very practical.

    The only you need to do, is to add a single line of code to 2 functions:

    listPosts()
    $content = str_replace('alt=""','alt="'.$title.'"',$entry[1]);

    viewEntry()
    $content = str_replace('alt=""','alt="'.$title.'"',$content);

    I guess it will also help to improve your regular search engine ranking as well.

    Posted 1 year ago #
  2. Prit
    Pritlogger

    Thanks John. Good find.

    Posted 1 year ago #

Important: If you want to be notified for any new post on this thread/topic, please go to your profile, activate favorite notification and then subscribe to this topic.


RSS feed for this topic

Reply

You must log in to post.