• Resolved trich1

    (@trich1)


    Hey folks!

    Well I’ve been at this for the past two weeks learning and experimenting as this is the first time I’ve ever developed a website and love the learning process, but just as I was going to declare it developed (although lacking content just yet, only having integrated features), I found my homepage is a bit messed up.

    I’m using the theme ‘Erratic’ by VPS Hosting. I’ve had my homepage locked off and visitors have been diverted to the ‘About’ page since I started building this.

    I tried integrating BuddyPress and because it’s not a BuddyPress-enabled code I went through the ordeal of integrating it using BuddyPress Template Pack and editing the necessary .php files. The footer was out of alignment, but the sidebar was just fine, so altering the footer code sorted it all out. However, after that, I chose to disable BuddyPress for now – at least I know it’s integrated. This is all a learning curve for me so I’ve been fiddling with various things.

    Anyway, the whole site has perfect alignment now so I unlocked the homepage, only to find that not only is the same problem with the footer out of alignment going on there, but also the sidebar has shifted big time. I’m not sure what to do now or which .php file to look at – none of the documentation I read while integrating BuddyPress told me about the sidebar going bizarre =S

    Any ideas would be apreciated =) You can see it for yourself at https://tokyoclock.co.uk

    Thanks!
    Tim.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter trich1

    (@trich1)

    Any and all ideas are welcome! =)

    Very difficult to say for sure without access to your modified code, but it looks like there is a missing </div> just before the div that starts the sidebar: <div id="sidebar">.

    Find the sidebar div in the code, look at what just precedes it, and add the closing div.

    Thread Starter trich1

    (@trich1)

    Wicked, I’ll give it a shot =)

    Any idea which file should I be looking in? I guess it should be either page.php, index.php, or home.php…? I sound like a right noobe =P

    Thanks!

    One trick I use to help find problems is to put an HTML comment that tells which file is active. In most templates, this goes after the call to get_header(). For example:

    <?php
    /**
     * The Template for displaying all single posts.
     *
     * @package WordPress
     * @subpackage Twenty_Ten
     * @since Twenty Ten 1.0
     */
    
    get_header(); ?><!-- file:single.php in twentyten-child -->

    Then I can look at the source code for a page and see which files were used.

    Thread Starter trich1

    (@trich1)

    Hey! Sorry it took so long to reply, my computer died.

    Umm.. I don’t get it. =(

    But I have altered the sidebar and footer commands in page.php, index.php, and home.php and it has made no difference. I then took a look through all of the files that I edited when integrating BuddyPress, since that must have been what has changed it in the first place – still clueless since they all have the same sidebar / footer commands.

    This confuses me because I thought that essentially all pages remain the same as far as the sidebar is concerned and the only alterations are the addition of new pages / posts and their content =S

    I am new though..

    Thread Starter trich1

    (@trich1)

    My homepage is fixed!

    I have a slideshow on the homepage and did not have any other content up yet. For some reason the mixture of the slideshow and the 404.php file lead to it not lining up correctly.

    Now that I have left a little ‘Site under construction’ post that shows on my homepage it is all perfectly aligned.

    Thanks everyone!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘My homepage needs fixing and I'm not sure how =(’ is closed to new replies.