Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
  • #184


    is it possible to to show the “Read More” – infos in portfolio in full width instead of the blog template?

    Thank you for help.



    Sorry, I postet in wrong place. This post is for Avisio-Template.


    Hey Oliver. The problem is that the blog posts and portfolio entries share a template file so you would need to do some modifications to single.php:

    open it and change line 9 to read:

    <div class="wrapper <?php if( get_post_type() == 'portfolio' ) { echo "fullwidth"; $size= 'XL'; $frame='';}else{$size= 'L'; $frame='framed framed_full_size'} ?>" id='wrapper_main'>


    from line 27 change the call to kriesi_post_thumb to read:

    $big_prev_image = kriesi_post_thumb($post->ID, array('size'=> array($size),
    'wh' => $k_option[$size],
    'display_link' => array('lightbox'),
    'linkurl' => array ('XL','_preview_big')

    last but not least change line 32 to read:

    if($big_prev_image != "") echo "<span class='$frame'><span>".$big_prev_image."</span></span>";


    Hello Kriesi,

    thank you for help. I changed the code, but I get a parse error in line 9:

    Parse error: syntax error, unexpected ‘}’ in /var/www/web990/html/deutschlandfilm/wp-content/themes/avisio/single.php on line 9

    Is that my fault?



    There’s a bug somewhere on or before line 9.

    Can you post the content of single.php to Paste Bin and link to it here?


    sorry my mistake, forgot a semi colon:

    that should work better ;)

    <div class="wrapper <?php if( get_post_type() == 'portfolio' ) { echo "fullwidth"; $size= 'XL'; $frame='';}else{$size= 'L'; $frame='framed framed_full_size';} ?>" id='wrapper_main'>


    Yeah!! It works!

    Thank You :-)

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

The topic ‘Portfolio – Full Width’ is closed to new replies.