Forums

theme ends on each page based on main content (13 posts)

  1. pitriff
    Member
    Posted 3 years ago #

    I am having a strange problem with my site. I have 2 colums on the left with static information that will show on every page. If the content on the right ends half way down the page then the theme ends as well. When you look on the left the rest of the content in the 2 columns is there with no theme behind it.

    Is thier something I am missing in the code that would make the theme run all the way down the page?

    check it out by going to my site and then clicking on any of the application links or on one of the stories.
    http://www.adoptaplatoon.org/site
    Thanks

  2. stvwlf
    Member
    Posted 3 years ago #

    Hi

    You are missing the code needed to clear some floats.

    find this line in your style.css file on line 347

    p {
       margin-bottom:12px;
       margin-top:12px;
    }

    Change it to this

    p {
       clear:both;
       margin-bottom:12px;
       margin-top:12px;
    }

    That should solve your issue.

  3. pitriff
    Member
    Posted 3 years ago #

    Your ROCK! I must have looked at the style.css page for hours and it never occured to me. Nothing like a fresh set of eyes.

    Thank you very much!!!!

  4. pitriff
    Member
    Posted 3 years ago #

    Hmm, now after fixing that issue there is a huge gap between the first post and the second.

  5. stvwlf
    Member
    Posted 3 years ago #

    Hi - I'm not seeing a gap between posts. On what URL? Also, looks like you removed the clear: both Its missing on a bunch of pages

  6. pitriff
    Member
    Posted 3 years ago #

  7. stvwlf
    Member
    Posted 3 years ago #

    Hi

    The problem is the code I gave you earlier is too generic. It is affecting all paragraphs, not just the one place you need a correction. Remove the clear:both from the p tag in the CSS

    The actual problem is with your footer line, the line at the bottom that says

    Powered By WordPress - Theme Provided By WordPress Themes - Online Degree Course

    You need to find the line of code that displays that line. Its probably in footer.php

    It starts like this
    <p>Powered By WordPress

    1) change it to
    <p id="footer" >Powered By WordPress

    2) in your style.css file, add this code
    p.footer { clear: both; }

  8. pitriff
    Member
    Posted 3 years ago #

    The footer.php file that I am looking at is located inside the theme I am using. Im assuming that is correct. the only thing in that file is.

    <?php $M9173ff4271208770125dc831831c3831='bcwxD8IgEAXg3V9x6U7ZDdJE3e1g4kzKtZAIRw6U6K/XYoyL48t77xu0SnqkiowW9g+4ENvEmDMIODsMCCPT3dtPqww4xnnXuVLSVspaa2+Cefq41O+xrK/cTxQ6/dOalZU0+g3/Yya6cUZhcWFEQfHqI/Y+zgSdPrUEx9bBoS1XSsmk1ZBc2rwA';eval(gzinflate(base64_decode($M9173ff4271208770125dc831831c3831))); ?>

  9. stvwlf
    Member
    Posted 3 years ago #

    That is one of those themes that tries to lock you into displaying their credit line by encoding it.

    You can try commenting out the PHP (see below) and see whether that breaks the theme. I've seen them where if you scroll down a few hundred lines in the footer, past blank space, there is hidden code further down. On removing that hidden code the theme starts to work again.

    Also, there is a typo in the CSS I suggested you add

    it should be this p#footer { clear: both; }
    not this p.footer { clear: both; }

    If your theme will run with that PHP commented out, you can add in your own footer
    <p id="footer">Powered By WordPress {... more text ...} </p>

    how to comment out the PHP - add the comment characters that are in bold

    <?php /* $M9173ff4271208770125dc831831c3831='bcwxD8IgEAXg3V9x6U7ZDdJE3e1g4kzKtZAIRw6U6K/XYoyL48t77xu0SnqkiowW9g+4ENvEmDMIODsMCCPT3dtPqww4xnnXuVLSVspaa2+Cefq41O+xrK/cTxQ6/dOalZU0+g3/Yya6cUZhcWFEQfHqI/Y+zgSdPrUEx9bBoS1XSsmk1ZBc2rwA';eval(gzinflate(base64_decode($M9173ff4271208770125dc831831c3831))); */ ?>

  10. pitriff
    Member
    Posted 3 years ago #

    Looks like that did it.

  11. pitriff
    Member
    Posted 3 years ago #

    Your probably getting sick of me.

    I made the change to footer.php and that took away that section at the bottom but on the main page I still have a gap between the first and second posts. If I remove the clear:both; line from style.css I go back to that original issue

  12. stvwlf
    Member
    Posted 3 years ago #

    Hi

    Sorry this became so convoluted. Trying to keep it simple...

    1) remove the clear:both from the p { } selector in your style sheet (line 347 I believe)

    2) wherever you commented out that PHP code - in footer.php? put this line in that file

    <p style="clear: both">&nbsp;</p>

    I think that will do it

  13. pitriff
    Member
    Posted 3 years ago #

    By George I think We've got it! If you are ever in Cleveland let me know and I'll buy you a Beer

Topic Closed

This topic has been closed to new replies.

About this Topic