WordPress.org

Ready to get started?Download WordPress

Forums

sidebar alignment (sidebar2) (6 posts)

  1. graham.guy
    Member
    Posted 4 years ago #

    Hello,

    I am requesting something I don't have much time to research. Please forgive my css and php ignorance. I am pretty new and very busy with my job with little time at the moment to search.

    Here is what I have done. I have created a new sidebar (sidebar2) in function.php or options.php (can't remember which one), and it appears in the widgets as "sidebar2". I can click and drag widgets over to it and they work fine.

    My problem is the alignment. When I use the dynamic call in my index.php to make "sidebar2" appear on the homepage, it's alignment is over on the left (bumping everything out of the way), and and I want it on the right, basically.

    Is it possible to define a RIGHT alignment before the dynamic CALL for sidebar2 index.php? I didn't really want to mess around with the style.css, but let me know what I need.

    Again, please forgive me... I am learning and willing to learn. I am here like the rest of you, and do not wish for y'all to tell me to go pick up a book. I came here because some of you have quick answers.

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    You need to sort out your CSS issues within style.css but, without seeing your site, there's very little that people can offer in the way of concrete suggestions.

  3. graham.guy
    Member
    Posted 4 years ago #

    http://www.accessbiblestudies.com/

    also,

    you will notice I have a sidebar on the right of the homepage, but it's sidebar1, not sidebar2. sidebar1 doesn't show the text properly on the homepage, why is that? Do you see how the spacing/returns are off compared to other subpages?

    Thanks for your help esmi.

  4. esmi
    Forum Moderator
    Posted 4 years ago #

    you will notice I have a sidebar on the right of the homepage, but it's sidebar1, not sidebar2

    You need to add <?php get_sidebar('2');?> immediately after <?php get_sidebar();?>` in all relevant template files.

    sidebar1 doesn't show the text properly on the homepage

    What text where? It looks fine to me.

    Do you see how the spacing/returns are off compared to other subpages?

    Do you mean the margins between list items/links? Of so, try editing style.css and changing:

    #othernews li {
    float:left;
    list-style-image:none;
    list-style-position:outside;
    list-style-type:none;
    margin:0 10px 20px 0;
    padding:0 10px 10px;
    width:290px;
    }

    to

    #othernews li {
    float:left;
    list-style-image:none;
    list-style-position:outside;
    list-style-type:none;
    margin:0 10px 0 0;
    padding:0 10px 10px;
    width:290px;
    }
  5. graham.guy
    Member
    Posted 4 years ago #

    esmi,

    thanks for your help. i really appreciate it.

    that worked to some degree. it's that silly tag cloud that's not showing properly on the homepage. you may notice that it looks correct on any of the subpages, but the homepage, each tag is below the other.

    thanks for your help.

  6. Wex
    Member
    Posted 4 years ago #

    I'd recommend doing a validation check on your HTML. You'd be surprised on how many problems this will help you solve. Just taking a glimpse of your source code, I noticed you had two nested divs, both with an id of "sidebar", which won't validate. Check this out if you don't understand what I mean (you have 100 errors): http://validator.w3.org/check?uri=www.accessbiblestudies.com

    I hope that helps..

Topic Closed

This topic has been closed to new replies.

About this Topic