Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #6982

    hi, take a look at http://www.philipwhiteweddings.co.uk/index.php/blog/

    I simply need to remove the sidebar so my blog video content will fit the full width of the page.

    I’ve tried a few methods on the forum but none seem to work.

    Hope you can help.

    Thank

    #56139

    Hey,

    In template_blog.php replace:

    container

    with

    container template-fullwidth

    and

    template-blog content

    with:

    template-blog content template-fullwidth

    and remove:

    //get the sidebar
    $avia_config['currently_viewing'] = 'blog';
    get_sidebar();

    #56140

    doesn’t seem to work

    #56141

    I’ve tested the mod on my test server and it works. Maybe you need to upload the modified file again and/or clear the cache (super cache, w3tc, etc.).

    #56142

    Hi, still can’t get this to work. Is it because my blog has a template builder theme applied to it?

    #56143

    Just to confirm, it should look like this right?

    ………………………………………………………

    <?php

    /*

    Template Name: Blog Overview

    */

    global $avia_config, $more;

    $avia_config = array( “paged” => get_query_var( ‘paged’ ), “posts_per_page”=>get_option(‘posts_per_page’), “post_status” => “public” ) ;

    /*

    * get_header is a basic wordpress function, used to retrieve the header.php file in your theme directory.

    */

    get_header();

    ?>

    <!– ####### MAIN CONTAINER ####### –>

    <div class=’container_wrap’ id=’main’>

    <div class=’container template-fullwidth’>

    <?php

    /*

    * Function that displays title + subheadings for pages

    * Located at the bottom of functions.php, in case you want to edit the output

    */

    echo avia_display_heading();

    ?>

    <div class=’template-blog content template-fullwidth’>

    <?php

    /* Run the loop to output the posts.

    * If you want to overload this in a child theme then include a file

    * called loop-index.php and that will be used instead.

    */

    $more = 0;

    get_template_part( ‘includes/loop’, avia_get_option(‘blog_layout’) );

    ?>

    <!–end content–>

    </div>

    </div><!–end container–>

    </div>

    <!– ####### END MAIN CONTAINER ####### –>

    <?php get_footer(); ?>

    #56144

    Yes – in this case you need to modify includes/helper-templates.php – you can find the code in following function:

    function blog($element)
    {

    #56145

    Hi, what do I modify? I’ve deleted get_sidebar(); but the blog still isn’t full width it just doesnt have a sidebar.

    Thanks again for all your help and sorry for being a pain.

    #56146

    Hey, I just figured it out!! thanks again for the support. Amazing as ever!!!

    #56147

    Glad that you found it :)

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

The topic ‘Blog Sidebar’ is closed to new replies.