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
Blog Sidebar
10 posts from 2 voices-
Posted 1 year ago #
-
Hey,
In template_blog.php replace:
containerwith
container template-fullwidthand
template-blog contentwith:
template-blog content template-fullwidthand remove:
//get the sidebar $avia_config['currently_viewing'] = 'blog'; get_sidebar();Posted 1 year ago # -
doesn't seem to work
Posted 1 year ago # -
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.).
Posted 1 year ago # -
Hi, still can't get this to work. Is it because my blog has a template builder theme applied to it?
Posted 1 year ago # -
Just to confirm, it should look like this right?
...............................................................
<?php
/*
Template Name: Blog Overview
*/global $avia_config, $more;
$avia_config['new_query'] = 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(); ?>
Posted 1 year ago # -
Yes - in this case you need to modify includes/helper-templates.php - you can find the code in following function:
function blog($element) {Posted 1 year ago # -
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.Posted 1 year ago # -
Hey, I just figured it out!! thanks again for the support. Amazing as ever!!!
Posted 1 year ago # -
Glad that you found it :)
Posted 1 year ago #
Reply
You must log in to post.














