I installed the theme IndiBiz and really enjoyed it. It’s a great theme! But I have a problem. After choosing the “Fullwidth Page” to one of the site page, the following message appears when updating the changed page:
“Parse error: syntax error, unexpected T_ENDIF in /home/[domain]public_html/[subdomain]/wp-content/themes/indibiz/fullwidth.php on line 21”
What can I do about this?
]]>I have go to the template files.
wp-content > themes > accesspress-parallax
then i found the page.php duplicated.
and rename it with full width page.
copy the code.
I get rid of the search bar and extra but the content-area is still limited.
it is not exactly a full width.
https://hizliresim.com/j1DyDD
Also i am adding the code of the php inside.
If anybody who can help me out the code i will be really appriciated.
Have a nice day.
—————————————————————————
<?php
/*
Template Name: Full Width Page
*/
get_header(); ?>
<?php
if(of_get_option(‘enable_parallax’) == 1 && is_front_page() && get_option( ‘show_on_front’ ) == ‘page’){
get_template_part(‘index’,’parallax’);
}else{
?>
<div class=”mid-content clearfix”>
<div id=”primary” class=”content-area”>
<main id=”main” class=”site-main” role=”main”>
<?php
global $page;
if(of_get_option(‘enable_parallax’) == 0 || is_singular()): ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( ‘content’, ‘page’ ); ?>
<?php
// If comments are open or we have at least one comment, load up the comment template
if ( comments_open() || ‘0’ != get_comments_number() ) :
comments_template();
endif;
?>
<?php endwhile; // end of the loop. ?>
<?php else:
echo wpautop($page->post_content);
endif; ?>
</main><!– #main –>
</div><!– #primary –>
</div>
<?php } ?>
<?php get_footer(); ?>
]]>So far i managed to get the sidebar in the single post, but it appears in bottom,
https://www.airswitch.dk/2015/08/29/fablab-prototyping-facilities/
I do not now if this is a css or a php problem, as the content and entry-header fill the full width of the page.
thanks!
]]>any ideas how to make my site be fullwidth?
Code used:
@media all and (min-width: 1200px) {
.container {
width: 100%;
}
Let me know if you need a link to my site?
]]>is there any way for this to go away? i have a business and i don’t want people seeing every time i add something new, thanks for the help guys.
]]><?php
/**
* Template Name: Full Width, no sidebar(s)
*/
get_header(); ?>
<div id="main-fullwidth">
<?php
if (have_posts()) : while (have_posts()) : the_post();
/**
* Find the post formatting for the pages in the post-page.php file
*/
get_template_part('post', 'page');
if(comments_open( get_the_ID() )) {
comments_template('', true);
}
endwhile;
else :
get_template_part('post', 'noresults');
endif;
?>
</div><!-- #main-fullwidth -->
<?php get_footer(); ?>
]]>I have the template page setup, but it is still adding that column section for the sidebar even though it is not putting the sidebar there. I want my content to fill the white area.
Here is the code that I have in my page_fullwidth.php page template. Can you please help??
<?php
/*
Template Name: Full Width
*/
?>
<?php get_header(); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<h1 class="post-title"><?php the_title(); ?></h1>
<?php the_content(); ?>
<?php edit_post_link(__( 'Edit this entry', 'delicacy' ), '<p>', '</p>'); ?>
<?php endwhile; endif; ?>
<?php get_footer(); ?>
[please remember to mark any posted code – https://codex.www.ads-software.com/Forum_Welcome#Posting_Code ]
]]>