• Resolved lbabli

    (@lbabli)


    I only want a sidebar on the Q&A page and the Contact page. However, the other pages are left aligned making room for a potential sidebar.
    1) How can I make these pages (Membership, News, FMO) centered because I don’t want a sidebar on them.
    2) On the Contact Page, how can I make the Featured Image fill the top of the page with the sidebar under it, instead of next to it?

    Thank you, Linda

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Theme Author VW THEMES

    (@vowelweb)

    Hello @lbabli,

    You have to add one file in the page template folder name as “full-width.php”. Then add the below code in the “full-width.php” file.

    <?php
    /**
    * Template Name: Full Width Template
    */
    get_header(); ?>

    <div class=”content-vw”>
    <?php if(has_post_thumbnail()) {?>
    <?php the_post_thumbnail(); ?>
    <hr>
    <?php }?>
    <h1><?php the_title();?></h1>
    <div class=”entry-content”><?php the_content();?></div>
    <?php
    // If comments are open or we have at least one comment, load up the comment template.
    if ( comments_open() || get_comments_number() ) :
    comments_template();
    endif;
    ?>
    <div class=”clearfix”></div>
    </div>

    Then edit the pages in which you don’t want a sidebar, after edit the page check the right sidebar in which you get page attribute select “Full Width Template”, then publish it.

    For the contact page, you have to do the changes in code.

    Thanks.

    Thread Starter lbabli

    (@lbabli)

    I so admire people with your skills! That worked beautifully!!!
    Many thanks!
    Linda

    Theme Author VW THEMES

    (@vowelweb)

    Most Welcome

    Thread Starter lbabli

    (@lbabli)

    My apologies. Just now getting around to following up on this…

    I created the php file, inserted the code, changed necessary pages to full-width.
    Upon viewing the page, it only shows the page title, not the page content. i.e. I have a paragraph and bulleted list on the Membership page. Same with the FMO page.

    This site now has a domain name. flgchoa.com

    • This reply was modified 4 years, 4 months ago by lbabli.
    Theme Author VW THEMES

    (@vowelweb)

    Hello @lbabli,

    The PHP files which you have created, it contains error please resolve those PHP errors.

    Thanks

    Thread Starter lbabli

    (@lbabli)

    I didn’t create the PHP code. It was given to me by your support 5 months ago. See previous messages on this topic. Unfortunately, I don’t know how to code. You’ve all been so helpful and I sincerely appreciate your assistance. Thank you.

    Theme Author VW THEMES

    (@vowelweb)

    Hello,

    Please use the below code it will display content and images.

    <?php
    /**
    * Template Name: Full Width Template
    */
    get_header(); ?>
    
    <div class=”content-vw”>
    <div class="container">
    <?php
           // Start the loop.
           while ( have_posts() ) : the_post();
           ?>
           <?php if(has_post_thumbnail()) {?>
       <?php the_post_thumbnail(); ?>
      <hr>
      <?php }?>
                <header class="entry-header">
                    <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
                </header>
                 
                <div class="entry-content">
                    <?php
                        the_content();
                    ?>
                </div>
     
        <?php            
            endwhile;
            ?>
    </div>
    </div>
    
    <?php get_footer(); ?>

    Thanks.

    Thread Starter lbabli

    (@lbabli)

    Many thanks! That did it.

    Theme Author VW THEMES

    (@vowelweb)

    Hello @lbabli,

    Most Welcome, If you have any other query please let us know, we will be happy to help.

    Thanks.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Unwanted sidebar space on some pages’ is closed to new replies.