• Hi,

    I hope someone of u can help me out with this..
    I can easy put a swf file on my sub pages, but because i am using a template, i cannot edit the homepage so easy..
    On the site of kfsound.be/public_html i got a slider in the middle of the site with an image inside it. Now i don’t want an image, but a swf file inside that border. If i inspect the image, its located inside =>

    <..a style=”display: block;” class..=”nivo-imageLink” href=””><img style=”width: 800px; visibility: hidden; display: inline;” src=”http://kfsound.be/public_html/wp-content/uploads/2012/12/abstract_light_effect_by_xcreez-d473qr33-1024×682.jpg&#8221; alt=””>(without the .. after class and before a style)

    This code is located in the style.css. Now i heard that i need to edit the php and not the css to make this work on a swf file.. is this correct?? And how can i do that?
    The code i got for the swf is =>

    <embed src=”kfsoundbanner (swf).swf” quality=”high” type=”application/x-shockwave-flash” wmode=”transparent” width=”750″ height=”200″ pluginspage=”http://www.macromedia.com/go/getflashplayer&#8221; allowScriptAccess=”always”></embed>

    The follow is where its located in my php file

    <?php
    // Loop for creating the slides
    if ( $custom_query->have_posts() ) while ( $custom_query->have_posts()) : $custom_query->the_post();

    $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ),’slider’);
    $i++; ?>
    “><img src=”<?php echo $image[0]; ?>” alt=”” title=”#caption<?php echo $i;?>” />

    <?php endwhile; // end of the loop.
    ?>
    </div>
    <?php
    // Loop for creating the captions
    if ($custom_query->have_posts() ) while ( $custom_query->have_posts() ) : $custom_query->the_post();
    $j++; ?>

    <div id=”caption<?php echo $j;?>” class=”nivo-html-caption”>
    <?php the_title(“<h2>”,”</h2>”);the_excerpt(); ?>
    </div>

    <?php endwhile; // end of the loop. ?>

    </div>

    <?php } else {

    // If Custom Slides have been selected
    ?>
    <div class=”slider-wrapper theme-default”>
    <div class=”ribbon”></div>
    <div id=”slider” class=”nivoSlider”>
    <?php for ($i=1;$i<=5;$i++)
    if(${“mantra_sliderimg$i”}) {?> ‘><img src='<?php echo esc_url(${“mantra_sliderimg$i”}) ?>’ alt=”” <?php if (${“mantra_slidertitle$i”} || ${“mantra_slidertext$i”} ) { ?>title=”#caption<?php echo $i;?>” <?php }?> /><?php } ?>
    `
    [Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your posted code may now have been permanently damaged/corrupted by the forum’s parser.]

    I don’t really need the slider, but i just want the image on the same place of the slider, and replace the image with the swf file without slider options.

    Hope u can help.. 🙂

    Jochen

The topic ‘Swf into php or css??’ is closed to new replies.