Change Single post template

This topic is: Resolved

This is a PRIVATE forum for verified users only, to view the replies/answers, you must be logged in!

Tagged: ,

This topic contains 4 replies, has 3 voices, and was last updated by  gbuhnici 2 years, 2 months ago.

  • Author
    Posts
  • #3824

    gbuhnici
    Member
    Post count: 15

    I am trying to change the single post page to full width. How can I do that please?

  • #3841

    Jacob
    Staff
    Post count: 2323

    Hey there, You must be logged in to view this reply!

    Login | Register | Forgot Password?

  • #4468

    gbuhnici
    Member
    Post count: 15

    I had to change a bit the code you provided to make it work. Here it is:

    add_filter( ‘yt_before_return_theme_options_data’, ‘yt_tweak_my_single_post_layout08012014’);

    function yt_tweak_my_single_post_layout08012014( $options ){
    if( is_single() ){
    $options[‘layout’] = ‘fullwidth’;
    }
    return $options;
    }

  • #4479

    Max
    Staff
    Post count: 3150

    Hey there, You must be logged in to view this reply!

    Login | Register | Forgot Password?

  • #4908

    gbuhnici
    Member
    Post count: 15

    Not really, mine is with add_filter. The one with add_action didn’t work for me for some reason. Anyway, problem fixed. Thanks! 🙂

You must be logged in to reply to this topic.

This is a PRIVATE forum for verified users only, to view the replies/answers, you must be logged in!