• Resolved ifcure08

    (@ifcure08)


    Hi,

    I have a piece of CODE outside the LOOP, that I am trying to figure out how to modify so it will ADD a ICON of a PLAY button on the THUMB (PNG) if it is from the VIDEO CATEGORY.

    <div id="video-grid">
        <?php
    $args = array( 'numberposts' => 12 );
    $lastposts = get_posts( $args );
    foreach($lastposts as $post) : setup_postdata($post); ?>
        <div class="story">
        <a>"><?php the_post_thumbnail('thumbnail', array('class' => 'grid-thumb')); ?></a>
    <a>"><h2><?php the_title(); ?></h2></a>
          <p><a>"><?php echo excerpt(12); ?> Read More</a></p>
        </div>
        <?php endforeach; ?>
      <div class="clearer"></div>
    </div>
Viewing 5 replies - 16 through 20 (of 20 total)
  • Thread Starter ifcure08

    (@ifcure08)

    Sorry – with the thumb – it is not possible to layer a PNG on top of the thumb by changing class it just puts it behind the thumbnail. I guess I would need a SPAN or just call the icon in on without css? Any ideas? To recap I want the thumbnail to have a PNG on top if it is from a category – like a watermark … Sorry this is hard to explain

    [No bumping. If it’s that urgent, consider hiring someone.]

    Use span and then try re-positioning the span block.

    Thread Starter ifcure08

    (@ifcure08)

    okay – how do I change what you had in pastebin – so it adds a span if video category instead of adding it too the thumbnail?

    Thread Starter ifcure08

    (@ifcure08)

    Well – I am really sorry to keep asking you about this – put when I added it I did not see a SPAN poping up in the source – when video is a category. Really sorry to waste your time.

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘Adding a WATERMARK to a thumbnails if in a specific category’ is closed to new replies.