Hello,
is it possible to to show the "Read More" - infos in portfolio in full width instead of the blog template?
Thank you for help.
Oliver
Hello,
is it possible to to show the "Read More" - infos in portfolio in full width instead of the blog template?
Thank you for help.
Oliver
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'>
then
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['custom']['imgSize'][$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?
Oliver
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 :-)
You must log in to post.