• Resolved rachelsduvall

    (@rachelsduvall)


    Can someone take a look at https://WhileSheNaps.com and let me know if what I want to do is possible and if so, how I go about doing it?

    I love having the two smaller sidebars to the right. Pretty much everything I use fits in them nicely. However, I would really love to have ONE at the top-right that is the same width as the other two put together and then have the two separate ones below it.

    I think I’ve seen something similar to what I’m wanting, like with the templates that have a space designated for advertising.

    I just have no idea how to get it to look that way though. I’ve done okay with learning how to change things in the CSS here and there in order to move something or change the size etc… but as far as adding something completely knew, I’m totally lost.

Viewing 7 replies - 1 through 7 (of 7 total)
  • seems to be possible, depending on the structure of your sidebar.php, and depending on how confident you are with html and php.

    you could add a block of code like the following before the line with <div id="sidebar1">:

    <div class="sidebar1" style="width:300px;">  <div class="sidebar1" style="width:300px;">
    <div class="Block">
        <div class="Block-tl"></div>
        <div class="Block-tr"></div>
        <div class="Block-bl"></div>
        <div class="Block-br"></div>
        <div class="Block-tc"></div>
        <div class="Block-bc"></div>
        <div class="Block-cl"></div>
        <div class="Block-cr"></div>
        <div class="Block-cc"></div>
        <div class="Block-body">
    <div class="BlockContent">
        <div class="BlockContent-body">
    
    <!-- here the code for the dynamic new sidebar -->
    
    </div>
    </div>
        </div>
    </div>
    </div></div>

    unless all the ‘Block’ divs are from the widgets – then it might be something even simpler like this:

    <div class="sidebar1" style="width:300px;">  <div class="sidebar1" style="width:300px;"> 
    
    <!-- code for the dynamic sidebar here -->
    
    </div></div>

    plus some code to register the third sidebar in functions.php of the theme.

    for more detailed help, you may need to paste the code of sidebar.php and functions.php into a pastebin each and post the link to them here.

    Thread Starter rachelsduvall

    (@rachelsduvall)

    I have a sidebar1.php and a sidebar2.php but no sidebar.php – Does that make change what you suggested I do?

    for all alterations and changes, it is important to know the facts and existing structure as detailed as possible.

    with your information, i would still think it is doable, maybe adding the code to sidebar1.php, but that depends on the way and the sequence these two sidebar files are called in the theme, and also on the css of the two sidebars.

    my personal opinion to this is, if you can design and program a html mockup version of your idea, just html and css, then you will probably get help in this forum with integrationg the wordpress functions and making the sidebar dynamic.

    guiding someone through the first phase is imho outside of this forum.

    Thread Starter rachelsduvall

    (@rachelsduvall)

    Okay I have my third sidebar, on top of the original two. But for some reason I can only set it’s width to 300px. Any more or any less and it disappears.

    Thoughts?

    from the html in the browser, it seems that you are starting the sidebar3 slightly different from the other sidebars:

    <div class="sidebar3">
    <div>
    <ul>
    <div class="Block">
        <div class="Block-tl"></div>

    compared with:

    <div class="sidebar1">
    <div class="sidebar1">
    <div class="Block">
        <div class="Block-tl"></div>

    i can’t see why that is. possibly to do with the register sidebar in functions.php?

    Thread Starter rachelsduvall

    (@rachelsduvall)

    The only thing I have in my sidebar3 file is this:

    <div>
    <ul>
    <?php if (!art_sidebar(3)): ?>
    <?php endif; ?>
    </ul>
    </div>
    Thread Starter rachelsduvall

    (@rachelsduvall)

    Thanks for all the help. I think I have it figured out now!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Adding a third sidebar maybe?’ is closed to new replies.