• Resolved shockenaw

    (@shockenaw)


    Hey guys, I’ve put a couple of custom links into my “Pages” list..

    The code is as follows..

    <div class=”sidebarbox”>
    <ul class=”pages”><?php wp_list_pages(‘title_li=<h3>’ . __(‘Pages’) . ‘</h3>’ ); ?>
    <div style=”float: left;”> Amy’s Journal

    <div style=”float: left;”> Chris’ Journal

    </div>

    You can check out what it looks like at https://chris.shockenaw.com/

    I am a coding newb so if you want to clean it up for me too that would be nice.. (If it needs it)

Viewing 4 replies - 1 through 4 (of 4 total)
  • Michael

    (@alchymyth)

    <div style="float: left;"> <a href=https://shockenaw.com/chris/?cat=4>Amy's Journal</a>
             </ul>
    
     <div style="float: left;"> <a href=https://shockenaw.com/chris/?cat=3>Chris' Journal</a>
    	</ul>

    you can’t open a <div ...> and try to close it as </ul> – just does not work.

    try to include the new links as list elements:

    <div class="sidebarbox">
    <ul class="pages"><?php wp_list_pages('title_li=<h3>' . __('Pages') . '</h3>' ); ?>
     <li><a href="https://shockenaw.com/chris/?cat=4">Amy's Journal</a>
     </li>
     <li> <a href="https://shockenaw.com/chris/?cat=3">Chris' Journal</a>
     </li></ul>
    <div>

    esmi

    (@esmi)

    Not sure what you;re trying to achive here. Do you want those last two links to be indented on the left compared to the Page links? Or do you want them to use the same styling/display as the Page links?

    Thread Starter shockenaw

    (@shockenaw)

    I want the pages to be listed first, then afterwards I want the links to be listed below them, if you check my site out one of the links is not aligned to the left

    Thread Starter shockenaw

    (@shockenaw)

    thanks alchymyth

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can’t get links to float left’ is closed to new replies.