Forums

Problem with top-margin in the Homepage (7 posts)

  1. Kanana
    Member
    Posted 2 years ago #

    Hi,

    I made myself a template, and, I noticed something strange.

    When I go to the homepage there is +/- 10px top-margin but, if I browse any other pages/category, the margin disappears. In the wrapper or containers there is no top-margin. I even tried to had them all margin:0 to see if there is a change, but nothing.

    All the pages are based on the same CSS and the php files are all based from the index.php which is used for the homepage.

    When I browse the code I can see that in the homepage <head> contains only the meta instead of the meta+link.

    If you have any idea how to solve it I'll be more than happy :)

    Kanana

  2. Rev. Voodoo
    Volunteer Moderator
    Posted 2 years ago #

    can't help if we can't see the problem....link please

  3. Kanana
    Member
    Posted 2 years ago #

    Ok, I understand, but I was in local.

    I uploaded the theme to my server, and, you can find it here

    Click on Home and then Uncategorized and you'll see.

    PS: The theme is not finished yet.

    Thanks

  4. Kanana
    Member
    Posted 2 years ago #

    Does anyone has a suggestion?

  5. Bonusball
    Member
    Posted 2 years ago #

    I assume you're using Firefox? And the Web Developer toolbar?

    Ok then. If you "View Generated Source" (not view source) you will see that something is putting all the style sheet links AFTER the </head> tag closes, and into the <body> of your homepage, which is causing that gap. I suspect a plugin, namely the All In One SEO plugin. Try disabling it. That plugin is bad news.

    If that doesn't work, try disabling any other plugins, it looks like one of them is rewriting they styles in your home page, and not in a good way.

  6. gshart
    Member
    Posted 2 years ago #

    The theme I am using is Mimbo. I have disabled all of the plugins but still have the space at the top which appears to be caused by the same problem. Help greatly appreciated.

    http://www.salesdujour.com

  7. Kanana
    Member
    Posted 2 years ago #

    I found the solution... I'm using Notepad++ to edit these pages, and I realized that this page was encoded in UFT-8 and the rest (that doesn't have that issue) in ANSI. So, Ichanged it to ANSI and the problem is solved now.

    I hope that it can help gshart and other users that'll expriment the same.

    Kanana

Topic Closed

This topic has been closed to new replies.

About this Topic