WordPress.org

Ready to get started?Download WordPress

Forums

HELP - my whole site has shifted to the left (ie. no padding on the left) (17 posts)

  1. MontanaJade
    Member
    Posted 2 years ago #

    Please help!

    I was trying to install google analytics code into my clients website (http://elevateorganizations.com) and now the whole website is shifted to the left!

    I posted the analytics code in the header.php template

    1. above all code - this didn't work so I removed it

    2. Right above </header> -

    I'm not sure when the page shifted as I was more concerned with if it registered with google --

    Please HELP - before my client notices!

    This is what the header.php template looks like

    <!-- BEGIN HEADER <!-->
    <header id="header" class="group">
    <div id="logo" class="left">
    <h1>"><?php bloginfo('name'); ?></h1>
    </div>
    <div class="right">
    <div id="contact" class="group">
    <div class="right"><img src="<?php bloginfo('template_directory'); ?>/images/icon-email.jpg" alt="Email" /> info@elevateorganizations.com</div>
    <div class="right"><img src="<?php bloginfo('template_directory'); ?>/images/icon-phone.jpg" alt="Phone" /> 416.440.8434</div>
    </div>
    <div id="tagline">
    It's our goal to help you reach your goals.
    </div>
    </div>
    </header>

    [Moderator Note: Please post code or markup snippets between backticks or use the code button.]

  2. jhaba
    Member
    Posted 2 years ago #

    There is no problem in your header section , well that problem might be occur in case any closing div missing , or some problem in css.

  3. MontanaJade
    Member
    Posted 2 years ago #

    It appears as though the footer is now to the right instead of centered, and no padding around the whole site

  4. MontanaJade
    Member
    Posted 2 years ago #

    @jhaba

    I never touched the CSS file - is it still possible the problem is there?

    Do you have any idea what template the problem might be in to affect the layout like this - http://elevateorganizations.com

    ???

  5. esmi
    Forum Moderator
    Posted 2 years ago #

    Start by sorting out the markup errors. Then move onto the CSS errors.
    http://codex.wordpress.org/Validating_a_Website

  6. MontanaJade
    Member
    Posted 2 years ago #

    I am new to WP and coding etc. so please excuse my lack of, what I am sure is common sense.

    If I didn't touch any template except the header.php - can other templates change and have errors, even though I never edited them?

    Here is a list of templates:

    [List moderated]

    Is this a common error -???

  7. esmi
    Forum Moderator
    Posted 2 years ago #

    There could be issues within your current theme itself.

  8. jhaba
    Member
    Posted 2 years ago #

    It seems that your footer is inside the right sidebar so it shifted to right side , so you need to move your footer from sidebar, and your content shifted to left because inside content div you have a class "sixtyfive left " so you need to work on this class , this issue can be handled by html expert

  9. MontanaJade
    Member
    Posted 2 years ago #

    So this is not an easy fix?

    I'll I did was copy and paste google analytics's code into the header.php template! I might have done it in the in one of these

    Main Index Template
    (index.php)
    Page Template
    (page.php)

    and then I removed it because it didn't work ??

  10. jhaba
    Member
    Posted 2 years ago #

    this is a problem of css , A html expert can solve this within 10 to 20 min ,

  11. esmi
    Forum Moderator
    Posted 2 years ago #

    For someone who is experienced using HTML & CSS, it's a relatively easy fix.

  12. MontanaJade
    Member
    Posted 2 years ago #

    Any chance you can tell me what to look for - from the template list I posted above?

  13. esmi
    Forum Moderator
    Posted 2 years ago #

    this is a problem of css

    No - it's a markup issue as well. There are multiple missing closing tags.

  14. MontanaJade
    Member
    Posted 2 years ago #

    How did it happen?

    Can the problem only be where I edited?

  15. MontanaJade
    Member
    Posted 2 years ago #

    Can anyone help me? Like actually go in the backend ~

    Learning in progress..

  16. MontanaJade
    Member
    Posted 2 years ago #

    Also, could anyone recommend tutorials, training/course to take for WP - I'm going to be working with a theme in the future with no 'Webmaster' so I have to learn

  17. esmi
    Forum Moderator
    Posted 2 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic