Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
  • #413

    Hello, i would like that all the articles in the portfolio had full width, without sidebars pages or any kind of sidebars.

    Is that posible?



    Hmm.. Nice question .. Im also following …


    Making the Portfolio subpages full width is possible but requires a few edits.

    Open up header.php and find this code:

    $k_option['custom']['bodyclass'] = '';

    and delete it.

    Next, open up single.php and add this code before get_header();:

    if( get_post_type() == 'portfolio' ) { ($k_option['custom']['bodyclass'] = "fullwidth"); }

    This will set the page to full width and remove the sidebar if the page is a Portfolio individual page.

    If you want your portfolio image to be full width, you’ll need to edit the included PSD if you want to adjust the shadow on the bottom of the image. You also need to find and change this code:

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

    to this:

    if( get_post_type() == 'portfolio' ) {
    $big_prev_image = kriesi_post_thumb($post->ID, array('size'=> array('XL'),
    'wh' => $k_option['custom']['imgSize']['XL'],
    'display_link' => array('lightbox'),
    'linkurl' => array ('XL','_preview_big')
    } else {
    $big_prev_image = kriesi_post_thumb($post->ID, array('size'=> array('L'),
    'wh' => $k_option['custom']['imgSize']['L'],
    'display_link' => array('lightbox'),
    'linkurl' => array ('XL','_preview_big')

    Let me know how you get on.


    Thanks James, it works perfect!

    I have just seen something wrong, and is that the fullwidth image now is pixelated since its size is duplicatted. Which is the best way to solve it?




    When images are uploaded, they are resized by WordPress according to the image sizes set in functions.php.

    If you have changed these, you have to re-upload the images so they are resized correctly.

    Best regards,



    Hello James i did all that but don´t success that the “main image” to be fullwidth and don´t be pixelated and the frame to be 100% wide too.

    I just succed if i entry the image in the textfield, is possible to solve it with the “main image”?

    You can see what i mean in:

    On the other hand is possible to take out in these portfolio details the complete line: “Posted in: 1. FLASH, WEB- Ago 10, 2010 Comentarios desactivados”

    Thanks before hand for your support!


    Hello Ocon,

    I experienced the same problem, but found a solution…

    The code of James is not correct… Should be

    if( get_post_type() == ‘portfolio’ ) {

    $big_prev_image = kriesi_post_thumb($post->ID, array(‘size’=> array(‘XL’),

    it’s the “XL” that makes the difference… in stead of the “L”


    Thanks for helping us out.



    No prob… Any chance you could give a look to my open issue: the WPML one, from bvanbranden.

    Best regards,

    • This reply was modified 2 years, 7 months ago by  Kriesi.

    I must admit that I didn’t work with WPML before. I know how to add custom post types to it but I have no idea what’s the best way to achieve what you want.



    I got the translation issues with the plugin WPML all resolved.

    Out of the box the plugin will allow you to translate all your pages and posts. The custom posts “portfolios” and “sliders” won’t work out of the box, but I have changed the code of the theme so that it all works perfectly. Took about 30 hours of work, but was worth it. You can see the results at: … It speaks 5 languages :-)

    Don’t hesitate to contact me for more info at (Email address hidden if logged out)

    Kind Regards,

    Bruno van Branden



    I tried changing the codes in single.php and header.php The sidebar disappear but the text and visible image remain the same width.

    check here

    Please let me know what I am doing wrong.



    I just changed the content size to 930 in style.css



    position: relative;



    padding:0 45px 0 0;)

    but now I have the sidebar background image showing at the bottom of the pages that are not portfolio items, example

    any suggestion?


    Please follow the instructions I posted here: and revert all changes you did so far.



    I followed all the instructions about making each portfolio item a full-width page, and I even edited the PSD file for shadow. But the lightbox (prettyphoto?) is not full width.

    Can you please look at my site and tell me what i need to do? (Purchase code hidden if logged out) /



    do you mean the frame around the image or the lightbox?

    We can’t easily control the size of the lightbox. It auto generates the window size depending on the image dimensions….

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

The topic ‘Fullwidth in Portfolio’ is closed to new replies.