Change Single post template

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

Status: resolved

Tagged:  

Viewing 4 reply threads
  • Author
    Posts
    • #3824

      gbuhnici
      Member

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

    • #3841

      Jacob
      Staff

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

      Login | Register | Forgot Password?

    • #4468

      gbuhnici
      Member

      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

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

      Login | Register | Forgot Password?

    • #4908

      gbuhnici
      Member

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

Viewing 4 reply threads
  • You must be logged in to reply to this topic.

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

© Copyright 2020 by wpthms.com. All Rights Reserved.