WordPress.org

Forums

Frontier
[resolved] Remove side bar from posts page (4 posts)

  1. dblegendz
    Member
    Posted 1 year ago #

    I am trying to figure out a way to remove the side bar on posts only but since you coded this very different than the standard setup i can not find a way to do this, can you help?

  2. ronangelo
    Member
    Theme Author

    Posted 1 year ago #

    @dblegendz
    You'll need to use this latest version

    Add on Frontier Options -> Custom CSS

    .single.single-post #content {
        width: 100%;
    }

    Add on a child-theme functions.php

    function custom_post_sidebar( $frontier_default_sidebars ) {
        if ( is_single() ) {
            $frontier_default_sidebars = false;
        }
        return $frontier_default_sidebars;
    }
    add_filter( 'frontier_default_sidebars', 'custom_post_sidebar' );
  3. dblegendz
    Member
    Posted 1 year ago #

    I have the latest and that made it put my sidebar under my content.

  4. ronangelo
    Member
    Theme Author

    Posted 1 year ago #

    I have the latest and that made it put my sidebar under my content.

    The one I linked above is the latest version in development which has some changes from the latest version that is currently released.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.