• Resolved Mike_O

    (@mike_o)


    Hello!

    Anyone have any idea if it’s at all possible to have the post title appear on/below the thumbnail in the bar at the bottom?

    The way the plugin spits out the gallery is a bit strange to me, (I’m not a coder) I think it could be more a jQuery problem than a php one. Been messing about in /front.php in the plugin, tried this;

    function front_sl_get_thumb($position) {
    	$thumb = get_the_post_thumbnail($post_id, $position, array('data-caption' => '#postTitle'.$post->ID));
    	$thumb = explode("\"", $thumb);
    	return $thumb[5];
    }

    But to no avail. I think there is a lot of jQuery to control the layout of the slider bit, and I know even less of that than PHP 🙂

    Any help much appreciated.

    Cheers

    http://wordpress.org/extend/plugins/front-slider/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Mike_O

    (@mike_o)

    Did it!

    Here’s how. In front-slider.php, wrapped the <img> in a div, and title in one.

    <div class="thumb">
    <img src="<?php echo $thumb_small;?>" alt="<?php the_title();?>" title="<?php the_title();?>">
    <div class="captions"><?php the_title();?></div>
    </div>

    css to suit.

    Then in slider.js (about line 41);

    var g=$$('img',h)[0];

    changed to

    var g=$$('div',h)[0];

    Actually I don’t know why I had so much trouble. Simple really…

    Hai,

    I applied the same code but i get only the caption and thumnail.but ineed full images also.i lost the images….
    can u please hlp me…….
    its urgent…….

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Plug in [Front Slider] Thumbnail captions/titles’ is closed to new replies.