Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #22152

    HI,

    I’m trying to change the portofolio layout, i have a lot of text on each single entry and the layout look funny. That i need is taht the text wrap the image, or the text apperar below the image.

    Thanks for the help

    #114398

    Hi dmaldonado,

    You’ll need to modify the single portfolio item template file directly in that case. You can do so in the theme files includes>loop-portfolio-single.php .

    Regards,

    Devin

    #114399

    Hi Devin,

    I have modified the loop.portofolio-single.php

    `<div class=’post-entry post-entry-type-portfolio <?php echo $post_class; ?>’>

    <span class=’entry-border-overflow extralight-border’></span>

    <div class=”ten units alpha min_height_1″>

    <?php if($slider->slidecount) echo $slider->display(); ?>

    </div>

    <div class=”ten units entry-content”>`

    but nothing happens, whe i do the same change on firebug, i can see the change, so i don’t know whats going on.

    Thanks

    #114400

    If its in the ajax portfolio, you need to also change the function for the ajax single in functions-flagship.php. Look for the start of the function here:

    //check if the portfolio item was requested by an ajax call and returns that
    if(!function_exists('avia_check_ajax_request')){

    #114401
    #114402

    Hi,

    Edit includes > loop-portfolio-single.php. Remove everything and replace it with this code.

    <?php
    global $avia_config, $slider, $post_loop_count;

    $post_class = "post-entry-".avia_get_the_id();
    $slider = new avia_slideshow(avia_get_the_id());
    $slider ->setImageSize('fullsize');

    do_action( 'avia_action_query_check' , 'loop-portfolio-single' );

    // check if we got posts to display:
    if (have_posts()) :

    while (have_posts()) : the_post();

    echo avia_title(false, false);

    ?>
    <div class='post-entry post-entry-type-portfolio <?php echo $post_class; ?>'>

    <span class='entry-border-overflow extralight-border'></span>

    <div class="eight units alpha min_height_1">

    <?php if($slider->slidecount) echo $slider->display(); ?>

    <?php the_content(__('Read more','avia_framework').'<span class="more-link-arrow"> &rarr;</span>'); ?>

    </div>

    <div class="four units entry-content">

    <span class='date-container minor-meta meta-color'><?php echo get_the_date(); ?></span>
    <?php

    $meta = avia_portfolio_meta(get_the_ID());
    if($meta)
    {

    echo $meta;
    echo avia_advanced_hr(false, 'small');
    }

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

    <div class='blog-inner-meta extralight-border'>

    <div class='post-meta-infos'>

    <?php

    echo '<div class="like-count minor-meta">';
    echo avia_facebook_like($id);
    echo '</div><span class="text-sep like-count-sep">/</span>';

    echo '<span class="tweets-count minor-meta">';
    echo avia_retweet($id);
    echo '</span>';

    $cats = get_the_term_list( get_the_ID(), 'portfolio_entries',"",", ","");
    if(!empty($cats))
    {
    echo '<span class="text-sep tweets-count-sep">/</span><span class="blog-categories minor-meta">'.__('posted in ','avia_framework');
    echo $cats;
    echo ' </span>';
    }

    ?>

    </div>

    </div>

    </div>

    </div><!--end post-entry-->
    <?php

    endwhile;
    else:
    ?>

    <div class="entry">
    <h1 class='post-title'><?php _e('Nothing Found', 'avia_framework'); ?></h1>
    <p><?php _e('Sorry, no posts matched your criteria', 'avia_framework'); ?></p>
    </div>

    <?php

    endif;

    if(!isset($avia_config['remove_pagination'] )) echo avia_pagination();
    ?>

    Regards,

    Ismael

    #114403

    Hi Ismael, the portfolio looks the same, i can see any difference, i have changed again the class style for <div class=”ten units entry-content”> and looks like the portofolio actually i’ts not calling the loop….

    #114404

    Hi,

    Please remove browser cache and reload the page. The content should be below the featured image with the meta info still on the right side.

    Regards,

    Ismael

    #114405

    Hi Ismael, i did that but doesnt work, actually, i have seen the page on a new computer and the portfolio looks with the right columnf content

    #114406

    Hi,

    I already modified it, please check.

    <div class="eight units alpha min_height_1">

    <?php if($slider->slidecount) echo $slider->display(); ?>

    <?php the_content(__('Read more','avia_framework').'<span class="more-link-arrow"> →</span>'); ?>

    </div>

    It says that the slider and the content is inside an eight unit container. And this block of code is for the other four units which contains the meta infos.

    <div class="four units entry-content">

    <span class='date-container minor-meta meta-color'><?php echo get_the_date(); ?></span>
    <?php

    $meta = avia_portfolio_meta(get_the_ID());
    if($meta)
    {

    echo $meta;
    echo avia_advanced_hr(false, 'small');
    }

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

    <div class='blog-inner-meta extralight-border'>

    <div class='post-meta-infos'>

    <?php

    echo '<div class="like-count minor-meta">';
    echo avia_facebook_like($id);
    echo '</div><span class="text-sep like-count-sep">/</span>';

    echo '<span class="tweets-count minor-meta">';
    echo avia_retweet($id);
    echo '</span>';

    $cats = get_the_term_list( get_the_ID(), 'portfolio_entries',"",", ","");
    if(!empty($cats))
    {
    echo '<span class="text-sep tweets-count-sep">/</span><span class="blog-categories minor-meta">'.__('posted in ','avia_framework');
    echo $cats;
    echo ' </span>';
    }

    ?>

    </div>

    </div>

    </div>

    Regards,

    Ismael

    #114407

    Can you update this for latest PHP? I’d like to place meta info below text as I had before update.

    #114408

    Hi gunshop,

    There is no need. The single portfolio loop file has not been updated since April.

    Regards,

    Devin

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

The topic ‘Change Portofolio Single Layout’ is closed to new replies.