Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #9460

    I cannot get a full page, no sidebar view for my blog. I have tried a standard page with the overwrite default layout set to full preview image, no sidebar. I have also tried a dynamic page with the themebuilder and selected fullsize, no sidebar as the template. In both cases I get a sidebar on the right with widgets for pages, categories and archives. I have used appearance/widgets and removed all widgets from all pages.

    On the abundance/theme options/layout menu I do not get an option for no sidebar in the default blog layout dropdown. It seems the pages, cats and archives widgets are defaults. If I select some widget for the sidebar it appears and they do not but I cannot get a view with no sidebar at all. The standard page is blog, the themebuilder page is news. whitemangrove.com/dance Thanks

    #64792

    I was able to find a partial solution. I modified the includes/register-admin-options.php file (line 496) to include ‘Fullsize preview image, no sidebar’=>’fullwidth’, in the array. That seems to have eliminated the default sidebar widgets from appearing. It has not eliminated the sidebar column and given me a fullsize area for the post. I am still hoping you can suggest a proper solution.

    Thanks

    #64793

    Hey!

    open the template-blog.php file and remove the get_sidebar() call in line 44. then add this to your custom.css stylesheet in folder /css/ or to the quick-css panel located in your wordpress backend at abundance->styling:


    .template-blog.content {
    width: 100% !important;
    padding-right: 0 !important;
    }

    #top .template-blog .entry-content {
    width: 770px;
    }

    last but not least open functions.php and at the top search for the following line:


    $avia_config = array('width'=>690, 'height'=>200); // image for pages and one column portfolio

    and change it to


    $avia_config = array('width'=>930, 'height'=>200); // image for pages and one column portfolio

    this will modify the size of the preview images to stretch accross fullwidth

    #64794

    Hi,

    Thanks. This has made the blog page look just as I wanted.

    It has left me 2 new problems.

    1) When I create a custom blog page in theme builder with full width option, a sidebar appears as a page 2 (news page – whitemangrove.com/dance )

    2) I can no longer create a custom blog page with a sidebar (the content area blows out). How do I make the size conditional on the template option selected?

    #64795

    1) Open up loop/helper-template.php and replace following code:

    //if we got a fullwidth template set a temporary sidebar
    wp_reset_query();
    $avia_config['currently_viewing'] = "blog";

    get_sidebar();

    with:

    //if we got a fullwidth template set a temporary sidebar
    wp_reset_query();
    $avia_config['currently_viewing'] = "blog";

    2) That’s not easily possible because this would require a new option for a different sidebar layout, etc.

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

The topic ‘cannot remove sidebar from blog page’ is closed to new replies.