• superfried

    (@superfried)


    Hello

    I need a small slideshow with external image links on a site I am designing for a DJ friend. I tried NextGen, and although it worked really well I could not get the custom fields to work properly. Then I stumbled on (a) slideshow:

    http://slideshow.hohli.com/
    http://wordpress.org/extend/plugins/a-slideshow/

    This was ideal as you simply insert the html code in the text widget and can therefore assign a link to each image. However, just when I thought I had solved the last issue before we populate the site the shortcode mysteriously appears on the first image. Does anyone know how to stop this?

    Here is the code in the text widget…

    [aslideshow]
    
    <a href="http://www.superfried.com" target="_blank">
        <img src="/wp-content/uploads/2011/05/1b.jpg"  alt="Caption 1"/>
    </a>
    
    <a href="http://www.superfried.com" target="_blank">
    <img src="/wp-content/uploads/2011/05/2b.jpg"  alt="Caption 2"/>
    </a>
    
    <a href="http://www.superfried.com" target="_blank">
    <img src="/wp-content/uploads/2011/05/3b.jpg"  alt="Caption 3"/>
    </a>
    
    [/aslideshow]

    The development site is here…

    http://www.atmosoft.co.uk

    Thanks in advance.

    Superfried

Viewing 3 replies - 1 through 3 (of 3 total)
  • Michael

    (@alchymyth)

    try to add this to functions.php of your theme:

    add_filter('widget_text', 'do_shortcode');
    Thread Starter superfried

    (@superfried)

    Hi alchymyth

    Thanks for the reply.

    I inserted this into the functions and it did not work. However, I decided to try and insert the code in a standard text widget rather than the ‘(a) Slideshow’ widget and it now works correctly!

    My only issue now is that the background of the widget is white and visible in some transitions. I tried wrapping a div round the code and changing the background colour in the css, but this did not work. I then tried to find the code responsible in the php, but I am not too hot with php.

    Do you know a simple way to override the background colour on the text widget?

    If not, thanks for your help so far.

    Superfried.

    Thread Starter superfried

    (@superfried)

    Hi Don’t worry about the last question. Was easier to just use a different slide option so that there is always an image present and the white background is never revealed.

    Thanks for your help.

    Superfried

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

The topic ‘Slideshow sortcode appears on first image?’ is closed to new replies.