Viewing 7 replies - 1 through 7 (of 7 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Thread Starter lemondropcreative

    (@lemondropcreative)

    Hello Andrew

    Thanks very much for your reply.

    The url in the original post should read: http://www.websitechester.co.uk/firs/

    I have added the following but only the navigation appears to have centred.
    Any help on centering the rest of the site would be appreciated.

    I added a div before the <body> called <div id=”wrapper”>

    and to style.css

    #wrapper {
    width: 980px;
    margin-right: auto;
    margin-left: auto;
    }

    Thanks again for your help

    Hi @lemondropcreative

    Your CSS and HTML is all over the place! You have a lot of left values in your CSS which is pushing everything all over the place.

    Also you HTML layout is separating your wrapper, header area, logo area etc etc.

    I have just played around with the CSS to fix parts to get it all centred but we still run into the issue with the sidebar due to how it is all structured!

    Did you create this theme? I think a restructure in the HTML so it all sits with the wrapper then applying the css #wrapper { width: 980px; margin: 0 auto} might work.

    If you need further help, I will helop as I live in Chester and know this school 🙂

    Let me know if you need further assistance?

    Cheers

    Thread Starter lemondropcreative

    (@lemondropcreative)

    Hello Jon

    Thanks very much for your reply.
    We have just inherited the site and have fixed a few issues but the owners would like to keep the current site and add a background image or chosen colour and centre the site.

    The theme was made for the site originally and is running on wordpress 2.71. We are reluctant to update it as many of the plugins are no longer maintained.

    Any further assistance with centring the theme would be very much appreciated.

    Hi

    I have just checked out the main site and in an honest opinion it needs to be re built because the way its all structured causes issues when trying to centre the whole site.

    Because of things elements of the site are positioned with left values and they are all acting as totally separate elements and not tested etc. Also the version of WordPress that the site is running is not good! There have been a few security updates since then and this leaves the site vulnerable to attacks.

    Wordress, themes and plugins should be kept upto date!

    Now the site could be rebuilt into a better theme to achieve the exact same look and this would give you greater flexibility and security.

    If you are interested in this route I can help guide you (no charge).

    Let me know?

    Cheers

    Thread Starter lemondropcreative

    (@lemondropcreative)

    Hello Jon

    Thanks very much for your reply and the information.

    We have offered a new free site based on the latest version of wordpress with a new theme but for now they say want to stick with the site they have.

    We will advise them again of the issues with keeping the old site and it’s limitations, one of which will be keeping the site aligned left.

    Thanks very much for your time and for looking at the site and the offer of further guidance, it is much appreciated.

    Thread Starter lemondropcreative

    (@lemondropcreative)

    Hello Jon

    I don’t know if you are still following this thread.
    If you are could you give us any advice on the following?

    The site has an ICS calendar feature which was not working on the site.
    I copied the original files and set up the site on our host here:
    http://www.websitechester.co.uk/firs/
    On this domain the calendar works fine with no edits to any files.

    To test it before moving it to the main domain I then set up a new site using the working files above in a sub folder on the schools host here:
    http://www.firsschool.net/firs/
    Although these files are an exact copy of the working ones above we get the error: “Your ICS file is unable to update.Your ICS file is unable to update.” above the Upcoming Events in the side bar and above the calendar on the calendar page.

    The only thing i have found is that if i replace the “ics-importer-cache” folder in the wp-content folder the error will disappear for a short while but always returns.

    I wondered if you had any ideas why it should work on one host but not on another.

    Any help much appreciated.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Help to Centre a WordPress theme’ is closed to new replies.