ThemeShaper Forums » Thematic

Using Smoothgallery in Feature Site Leader

(4 posts)
  • Started 9 years ago by ScottShorter
  • Latest reply from ScottShorter
  • This topic is not resolved
  1. Brand new user of thematic and the feature site child theme, so i apologize if this question is too basic or answered elsewhere. I know just enough to be dangerous. This is what I tried - and expect it's totally wrong so I appreciate any advice.

    I'm trying to replace the random feature image on the feature site home page with Smoothgallery. I've tried to modify the existing childtheme_postheader by removing the 2 lines that I think add the image...

    $rand = mt_rand(1, 2);
    include "includes/feature-front-$rand.php";

    ...and replacing with the html version of the smoothgallery code (not the shortcode - which didn't work either). I tried escaping various characters but most likely screwed it up since I'm a total php hack. Here's what i tried to insert...

    <div id="myGallery">
    <div class="imageElement">
    <h3>gleep</h3>
    <p></p>

    <img src="http://dtrtfk.conceramedia.com/wp-content/uploads/2009/09/gleep.gif" class="full" alt=""/>
    </div>
    <div class="imageElement">
    <h3>domoball</h3>
    <p></p>

    <img src="http://dtrtfk.conceramedia.com/wp-content/uploads/2009/09/domoball.jpg" class="full" alt=""/>
    </div>
    </div>

    Ideas?

    Posted 9 years ago #
  2. Hi,

    will look into this one tomorrow afternoon as soon as I'm back home. SmoothGallery should work with Thematic.

    Chris

    Posted 9 years ago #
  3. Hi,

    as far as I got it you need to create a page / post first containing the pictures. I prefer a page because it can be easily hidden from the menu by using PageMash or something similar.

    The next step is to integrate the shortcode with some magic to the place where you found the above mentioned two lines (you need to exchange the two lines).

    The code would be something like:

    do_shortcode('[smoothgallery id=your-page-id  iframe=1]');

    .. add any other options as needed.

    Haven't tested this code, but as far as I got the documentation this code should / could work.

    Chris

    Posted 9 years ago #
  4. Thanks Chris - I got it to work, but not quite as artfully as your solution.

    As you suggested, I added a smoothgallery gallery to a hidden page (i used the home page which is superceded by the front-page template) and followed the directions. But, I could not get the do_shortcode call to work, so i just added the html version of the smoothgallery code to the original front-page-1.php include and just dropped the randomizer.

    I would be nice to use all of the variables in the shortcode, but it works well enough this way.

    Thanks for you help!

    Posted 9 years ago #

RSS feed for this topic

Reply

You must log in to post.