• Hi,

    I have created a page template using the following code.when I view the page the footer is getting cut on both the sides and is reduced in size not covering the entire screen.What could be the problem?:

    `/*
    Template Name: testpage
    */
    ?>

    <?php get_header() ?>

    <div id=”container”>
    <div id=”content”>
    <?php the_post() ?>
    <div id=”post-<?php the_ID() ?>” class=”post”>
    <div class=”entry-content”>

    /* my content */

    </div><!– .entry-content ->
    </div><!– .post–>
    </div><!– #content –>
    </div><!– #container –>

    <?php get_footer() ?>

Viewing 4 replies - 16 through 19 (of 19 total)
  • Thread Starter mitua

    (@mitua)

    I am keeping this unresolved now and after checking with the other templates would mark it resolved.

    You’re welcome!! I will make sure tomorrow when I repair my laptop I will take a look at your profile activity and interact..

    You will get more help in these forums trust me.. From very kind genius developers and designers.

    Good night mitua

    Thread Starter mitua

    (@mitua)

    Hi again,

    Actually the semicolon was not the only problem.I tried putting the semicolon but it didn’t work .So as it was the second code above which was working and instead of wasting the time in finding the error in the first structure just like the semicolons I pasted the content from the previous template into this working structure and it worked.It took some time of about 2 hours as there were 8 templates.Though the problem is solved but whats the other thing which made the code run fine in the second structure apart from the semi colons?There is some other small thing.We can sit and find the error but since the problem is solved we would not waste time in this thread as we have 2-3 other threads.I am not marking this as resolved .Let anybody who comes in can find out the reason which caused the problem in the first structure.Or if u have extra time and u r free and want to do some mental exercise u can find it.But for this too I thank you as you made it easier and find the solution.

    Thread Starter mitua

    (@mitua)

    And Samuel u see one thing in the second structure two opening divs are missing namely for .entry content and .post(I dont know what they are for and what they do) but still it is working fine and the first one is not.However since it is working fine now am not touching the codes now to remove the two extra closing divs as it is too tedious to do for all the 8 templates and then test the code again if working or not.What do u say?

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘Footer getting cut on both the sides in template’ is closed to new replies.