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

    Hi!

    Hope you can help me with this question from an earlier thead

    How do I remove the sidebar in all single portfolios? I have tried it with the php code in this thread, but no luck yet…

    Can you see what needs to be done?

    Hope you can help me :-)

    Maaike

    #907096

    Hey lindemarie,

    Please add the following code into your functions.php

    add_filter('avia_layout_filter', 'avia_change_post_layout', 10, 2);
    function avia_change_post_layout($layout, $post_id) {
        if( is_singular('portfolio') ) {
            $layout['current'] = $layout['fullsize'];
            $layout['current']['main'] = 'fullsize';
        }
    
        return $layout;
    }

    Best regards,
    Basilis

    #908462

    Perfect!

    Thank you Basilis!

    #908507

    Hi lindemarie,

    Glad we could help :)

    If you need further assistance please let us know.
    Best regards,
    Victoria

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.