213 posts
  • Has been part of the Envato Community for over 1 year
  • Has referred 50+ members
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has collected 1+ items on Envato Market
+3 more
Playnethemes says

I tried activating the thumbnail control on my theme with flexslider support. However when doing this there are placeholders for the thumbs but the img src=”undefined” .

http://flex.madebymufffin.com/examples/thumbnail-controlnav.html

I guess you have to asign the dzta thumb aswell, but how would you go about to do this? :) Does anyone know what the fix for this is? I’ve seen a couple of themes using the thumb control feature so i guess it should be possible.. Thanks!

Kind regards

214 posts
  • Has referred 1+ members
  • Has collected 50+ items on Envato Market
  • Has been part of the Envato Community for over 6 years
  • Sells items exclusively on Envato Market
agusmu says

Have you followed the HTML format on that demo page?

It is not easy to know your issue if you do not post your demo URL here…

213 posts
  • Has been part of the Envato Community for over 1 year
  • Has referred 50+ members
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has collected 1+ items on Envato Market
+3 more
Playnethemes says

Problem is how would you dynamicly add markup for the thumbnails in WordPress? :)

214 posts
  • Has referred 1+ members
  • Has collected 50+ items on Envato Market
  • Has been part of the Envato Community for over 6 years
  • Sells items exclusively on Envato Market
agusmu says

Problem is how would you dynamicly add markup for the thumbnails in WordPress? :)

I still do not understand what is your issue actually.

<!-- Place somewhere in the <body> of your page -->
<div class="flexslider">
  <ul class="slides">
    <li data-thumb="slide1-thumb.jpg">
      <img src="slide1.jpg" />
    </li>
    <li data-thumb="slide2-thumb.jpg">
      <img src="slide2.jpg" />
    </li>
    <li data-thumb="slide3-thumb.jpg">
      <img src="slide3.jpg" />
    </li>
    <li data-thumb="slide4-thumb.jpg">
      <img src="slide4.jpg" />
    </li>
  </ul>
</div>

You only need to call your function to replace the image URLs above, for both slide$-thumb.jpg and slide$.jpg

213 posts
  • Has been part of the Envato Community for over 1 year
  • Has referred 50+ members
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has collected 1+ items on Envato Market
+3 more
Playnethemes says

Hmm i see now how I should incorporate it into the code I have in my php file! :) I’ll let you know if i get it to work!

EDIT:

Turns out I just had to add:

<?php echo ( wp_get_attachment_url( $single_gallery_attachment->ID, 'thumbnail' )); ?>

as data-thumb= to my script! :)

Thanks for your help agusmu! ;)

1 post
carolefly says

Hello Playnethemes, I met the same problem as you did, trying to implement dynamic management of my images / thumbnails. A study of my page gives me >> img src =” undefined ” . Could you please be more precise in your explanation? I dont understand where to embed: <(ID, ‘thumbnail’); wp_get_attachment_url php echo ($ single_gallery_attachment-)? Thanks a lot

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by