WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Float:Right Sidebar problem only on one page :( (7 posts)

  1. HecticHouseTom
    Member
    Posted 2 years ago #

    Hey Guys,

    * Newbie ALERT * I would be really greatful if some one could help me out Iv recently discovered wordpress and created my only theme :) all is well apart from my Sidebar ...

    On the home page it is correctly floating right of the content but when I click to view the comments on any article the side bar drops to floating right but below the content sort of diagonal to it.

    I used a blank theme to lay down the start of the code and am wondering if there is something here causing this problem below is the code for the style.css , index.php and sidebar.php.

    any help and I would love you for it :)

    [CSS code moderated - please post a link to your site]

    [code moderated - please use the pastebin for any code over the forum limit of 10 lines]

    [dito]

    Thanks guy

    Tom

  2. WPyogi
    Volunteer Moderator
    Posted 2 years ago #

    If you want help, please post a link to your site.

  3. HecticHouseTom
    Member
    Posted 2 years ago #

    Hey Wpyogi, thanks for the reply , unfortunately I am using Wamp and developing the theme in my local host before I commit to paying for hosting. Is there anything else I can provide ?

  4. HecticHouseTom
    Member
    Posted 2 years ago #

    Thanks mod, sorry about that here are the codes in pastebin

    Index.php http://pastebin.com/Lr8xhY5i
    Sidebar.php http://pastebin.com/4RJm43E7
    Style.css http://pastebin.com/VxqrhtLw

    Edit ... here is also an image of what is happening when I click on the comments link ... I have highlighted the sidebar green for clarity http://s59.photobucket.com/albums/g312/killerbyteclan/?action=view&current=notworking.jpg

    as opposed to when Im on the home page

    http://i59.photobucket.com/albums/g312/killerbyteclan/working.jpg

  5. WPyogi
    Volunteer Moderator
    Posted 2 years ago #

    It's almost impossible to figure out CSS and layout questions unless someone can view the site in Firefox using Firebug to see the CSS in action. If the problem is only on one page, then it is likely that the template for that page is different from the others and/or that the way the CSS is coded is only affecting (or not affecting) the one page. You should be able to use Firebug to sort out the spacing issue. Something obviously happens when you switch to the view comments -- so look for that section in the php files and corresponding CSS. The width of the sections is what you probably need to change.

  6. HecticHouseTom
    Member
    Posted 2 years ago #

    Ok thank you for your reply I have tried using the inspect element in chrome to solve this but cannot find the cause ... I will have another go if not I will see if I can upload my site some where :)

  7. HecticHouseTom
    Member
    Posted 2 years ago #

    Hey Guys just to update you I have resolved this issue :) yay after 3 - 4 hours of messing I found that the problem was due the <?php get_sidebar(); ?> being Below the <?php comments_template(); ?> in the Single.php file to resolve my issue I just cut and pasted it up above. So if you are having a problem with your side bar layout only on pages which involve single post this may help :)

Topic Closed

This topic has been closed to new replies.

About this Topic