• Htaccess24

    (@htaccess24)


    Hi binarystash01,

    I found out that this plugin does not support the “alt”-description for images. Because one of our customers used this plugin I had to extend the functionality manually. But I know my changes would be lost if they update the plugin on their blog.

    The “alt”-description is very important for SEO. I hope you will extend your code by following:

    1. Open the plugin directory
    2. Go to themes ? booklet ? light/dark and open the booklet.php
    3. Add the following lines of code

    $altText = get_post_meta($page->get_id(), '_wp_attachment_image_alt', true);

    Inside the “foreach($pages as $key => $page) :” on line 3. Then change the alt-attribut of all image tags, which you can find by the following:

    <img src="<?php echo $page->get_image_url("foo") ?>" alt="<?php echo $altText ?>" />

    4. Do this for the booklet.php file in both theme folders (light/dark)
    5. You are finish. If you want you can give me a credit for the next plugin update.

    Cheerio,
    htaccess24

  • The topic ‘Improvement for SEO purpose’ is closed to new replies.