Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #16239

    when i use this it puts the gallery at the bottom of the post – is it possible to insertit at the very top of the post??

    thanks

    craig

    #90733

    Hi,

    I believe you are talking about the slider above and the wp defauly gallery below. You might want to open includes > loop-index.php and find this code

    <?php

    if(!post_password_required())
    {
    //embeded thumb gallery
    if(is_single() && strpos($avia_config['layout'],'thumb') !== false )
    {
    echo "<div class='hr_invisible '></div>";
    new avia_embed_images();
    }
    else if(! is_single())
    {
    $class = "preview_image ";
    $size = "portfolio";
    $layout = avia_get_option('blog_image_layout');

    if($layout == "full")
    {
    $class = "preview_image_full";
    $size = "blog";
    }

    $image = get_the_post_thumbnail( get_the_ID(), $size );
    if($image)
    {
    $image = "<a class='external-link $class' href='".get_permalink()."' rel='bookmark' title='".__('Permanent Link:','avia_framework')." ".get_the_title()."'>".$image."</a>";
    echo $image;
    }
    }
    }
    ?>

    You can place it below

    if(has_tag() && is_single())
    {
    echo '<span class="blog-tags">';
    echo the_tags('<strong>'.__('Tags: ','avia_framework').'</strong><span>');
    echo '</span></span>';
    }
    ?>

    </div>

    Regards,

    Ismael

    #90734

    no, the actual wordpress gallery (the thumbnails….) they get inserted at the bottom of the post content but i would like these thumbs at the top..

    thanks

    #90735

    Hi sydneycraig,

    In your theme files open includes>loop-page.php . Look for this line:

    //display the actual post content

    Just above it, paste:

    //embeded list gallery
    if(strpos($avia_config['layout'],'gallery_shortcode') !== false )
    {
    global $gallery_active;
    if(!$gallery_active) echo do_shortcode('[gallery force="avia"]');
    }

    Now go down further on the page until you see the code you just pasted and remove it so that the gallery style isn’t included twice on pages.

    Save the file back on your server and that should do it.

    Regards,

    Devin

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘wordpress default gallery on portfolio item’ is closed to new replies.