Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thank you bluejpro.
    Works great! 😀

    Thank you trandaihung!
    Works perfect. Is good to point that the change is made in frontpage-slideshow.php and it replaces the existing one.

    Thank you too Jeff for this close follow to your plugin.

    Thank you all.

    JohnnyFrontz
    You have to change 3 files
    1. wp-content/plugins/frontpage-slideshow/frontpage-slideshow.php

    In line 81 replace the similar with
    $fsentries[] = array('title' => $title.' ', 'image' => $image, 'comment' => $comment.' ', 'button-comment' => $buttoncomment.' ', 'link' => $link, 'post_id' => $fspost->ID);

    2. wp-content/plugins/frontpage-slideshow/templates/your-template/template.php

    In line 54 replace the similar with

    $fscontent .= '<li id="fs-entry-'.$id.'" class="fs-entry">';
    if(has_post_thumbnail($entry['post_id']))
    {
        $fscontent .= get_the_post_thumbnail($entry['post_id'], 'large', array(
            'class' => 'fs-skip fs-img',
            'id' => "fs-entry-img-$id"
        ));
        $fscontent .=  get_the_post_thumbnail($entry['post_id']);
    }
    else $fscontent .= '<img id="fs-entry-img-'.$id.'" class="fs-skip fs-img" alt=" " src="'.$entry['image'].'" />';
    $fscontent .= '<div id="fs-entry-title-'.$id.'" style="position: relative; top: -44px;" class="fs-title">'.str_replace(' ','',$entry['title']).'</div>';
    $fscontent .= '<span id="fs-entry-comment-'.$id.'" class="fs-skip">'.$entry['comment'].'</span>';
    $fscontent .= '<span id="fs-entry-link-'.$id.'" class="fs-skip">'.$entry['link'].'</span>';
    $fscontent .= '</li>';

    3. wp-content/themes/your-theme/functions.php

    Add if you don’t have it already (some themes have this activated) at the bottom

    set_post_thumbnail_size(x, y, true); // Where x is the width of your buttons and y is the height

    Wish that this helps you.

    Excellent!
    A couple of minutes ago I was on this path but couldn’t figure it out (still a programmer wanna-be).

    MrZerog Thanks you for your hack!

    JohnnyFrontz and swf2002

    1. You have to replace from the line 54 for it to work. It’s basically the same code with a couple of tweaks.

    2. function.php should be part of your theme, not the plugins.
    /wp-content/themes/your-theme/function.php

    Hope that helps and isn’t too late.

Viewing 4 replies - 1 through 4 (of 4 total)