• Resolved pixxadoo

    (@pixxadoo)


    Hi,

    I’m quite new to WordPress but I already managed to customize colors etc.

    I tried to add the Meteor Slide show to my main page with the Squirrel theme.
    There is already a feature image but somehow I can’t find the actual site where the image is located.

    In another post, there was a description where you can insert the code line
    <?php if ( function_exists( ‘meteor_slideshow’ ) ) { meteor_slideshow(); } ?> between <div id=”slide”> and </div> on the front-page.php.
    However, there is already quite some code for another slider but it’s not activated (I have the lite version) and therefore I’m confused if I have to delete that code or what I have to do.

    So, where can I insert this code line exactly and does somebody know where I can replace the feature image with the slide show in Squirrel?

    Here is my site: http://www.pixxadoo.com

    Thanks for any help.
    Best,
    Franziska

    http://ww.wp.xz.cn/extend/plugins/meteor-slides/

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

    (@pixxadoo)

    Okay, I just replaced the code in between those lines in front-page.php and it worked – somehow. Now the slideshow frame is overlapping the actual place size 🙁

    The feature image should be 580 x 328 pixel. I set the slide show with the same dimensions in settings. But the slide frame still seems to overlap.
    So where do I change the frame to the above side?

    This is the code I removed:
    <div class=”slides_container”>
    <?php
    //The strpos funtion is comparing the strings to allow uploading of the Videos & Images in the Slider
    $mystring1 = squirrel_get_option(‘squirrel_image1’);
    $value_img = array(‘.jpg’, ‘.png’, ‘.jpeg’, ‘.gif’, ‘.bmp’, ‘.tiff’, ‘.tif’);
    $check_img_ofset = 0;
    foreach ($value_img as $get_value) {
    if (preg_match(“/$get_value/”, $mystring1)) {
    $check_img_ofset = 1;
    }
    }
    // Note our use of ===. Simply == would not work as expected
    // because the position of ‘a’ was the 0th (first) character.
    ?>
    <?php if ($check_img_ofset == 0 && squirrel_get_option(‘squirrel_image1’) != ”) { ?>
    <div class=”slide”><?php echo squirrel_get_option(‘squirrel_image1’); ?></div>
    <?php } else { ?>
    <?php if (squirrel_get_option(‘squirrel_image1’) != ”) { ?>
    <div class=”slide”><img src=”<?php echo squirrel_get_option(‘squirrel_image1’); ?>” alt=”Slide 1″/> </div>
    <?php } else { ?>
    <div class=”slide”><img src=”<?php echo get_template_directory_uri(); ?>/images/slide-1.jpg” alt=”Slide 1″/></div>
    <?php }
    } ?>
    </div>

    Any help?

    Thread Starter pixxadoo

    (@pixxadoo)

    With Josh’s help I found out the problem. I had to fiddle around with the image dimensions and adjust the slideshow accordingly.

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

The topic ‘add slideshow to Squirrel theme’ is closed to new replies.