Jump to content

benjaminmorgan

Member
  • Posts

    226
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by benjaminmorgan

  1. Here is what I am designing. http://sleek.comoj.com/index.php The browser that this is going wrong in is Firefox.Between the header and content there is no gap. When it goes from content to footer there is a gap in Fx.

     

    Now for my next problem. I have the navigation links. Home | Services etc. Then I have a div with a border underneath. Then I set up a 3 column layout. It is not working at all. It will show in 3 columns but it will be white instead of the background of the footer. I don't know why. I am not sure if I am missing a clear: both somewhere or not.

    The text is there the text is just white and you have to highlight over it to see it.

     

    Please help me find a solution. Thanks!

  2. I wanted to be able to display only the 2nd level of a navigation menu on the sidebar as the client wished but I found this not easy. I think I should be able to do this with posts if I can get them going in ASC order by date created. here is my sidebar code. If there is anything wrong please tell me. Thanks!!!

     

    <div class="sidebar">
    
    <?php
    if(trim(wp_title('', false))=="Commercial") {
    ?>
    <ul class="comside">
    <?php
    
    ?>
    </ul>
    <?php }?>
    <ul class="comside">
    <?php if (have_posts()) : ?>
    	<?php while (have_posts()) : the_post(); ?>
    <?php
    		$recent_posts = wp_get_recent_posts();
    foreach($recent_posts as $recent){
    	echo '<li><a href="' . get_permalink($recent["ID"]) . '">' .  $recent["post_title"].'</a></li> ';
    }?>
    	<?php endwhile; ?>
    <?php endif; ?>
    </ul>
    
    </div>
    
    

  3. Here is the source code. The level that shows Burglar Alarm is the only one I want to show in the sidebar. I will add more pages to that level later once i get this done and figured out.

    	<div class="navigationallink">
    
    				<ul id="sidenav">
    
    				<li class="pagenav"><h2 class="displaynone">Pages</h2><ul><li class="page_item page-item-4"><a href="http://localhost/wordpresse/">About Us</a></li>
    <li class="page_item page-item-7 current_page_item"><a href="http://localhost/wordpresse/commercial/">Commercial</a>
    <ul class='children'>
    <li class="page_item page-item-15"><a href="http://localhost/wordpresse/commercial/burglar-alarm/">Burglar Alarm</a></li>
    </ul>
    </li>
    <li class="page_item page-item-9"><a href="http://localhost/wordpresse/residential/">Residential</a></li>
    <li class="page_item page-item-11"><a href="http://localhost/wordpresse/contact-us/">Contact Us</a></li>
    </ul></li>					</ul>
    
    			</div>
    
    
    

  4. I am building a wordpress site. I have a horizontal navigation with 4 links. Under the commercial page I have 4 sub pages. The client doesn't want it added in as a hover. he wants it on the side of the commercial page. How can I just display the second level of links? In the horizontal nav I have a different div class and on the sidebar i have a different div class. If you could help me out that would be great.

     

    
    /* SIDE LEVEL 2 NAVIGATION */
    .navigationallink .pagenav ul li { 
    display: none;
    }
    .navigationallink .pagenav ul li ul  { 
    width: 200px;
    border-radius: 25px;
    float: left;
    margin: 0;
    display: block;
    padding: 0;
    padding-top: 0px;
    list-style: none;
    visibility: visible;
    
    
    }
    .navigationallink .pagenav ul li ul li {
    list-style-type: none;
    color: #FFFFFF;
    display:block;
    width: 200px;
    float: left;
    	visibility: visible;
    
    
    }
    .navigationallink .pagenav ul li ul li a {
    width: 200px;
    background: url('images/gradback.gif');
    display: inline-block;
    padding: 0px;
    margin: 0px;
    color: yellow;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    height: 30px;
    line-height: 30px;
    }
    
    .navigationallink .pagenav ul li ul li a:hover {
    background: url('images/hoverstate.gif');
    }
    
    
    
    /* END NAVIGATION */

  5. I tried doing an If statement. It didn't work. For some reason the only thing it is putting on the sidebar is the word Commercial

    <?php
    if(trim(wp_title(''))=="Commercial") {
    ?>
    <ul class="comside">
    <?php
    $recent_posts = wp_get_recent_posts();
    foreach($recent_posts as $recent){
    	echo '<li><a href="' . get_permalink($recent["ID"]) . '">' .  $recent["post_title"].'</a></li> ';
    }
    ?>
    </ul>
    <?php }?>
    

  6. I have a main nav horizontal with the wp_list_pages('depth=1&title_li=<h2 class="displaynone">Pages</h2>);

    On the commercial page (on main navigation) I need to have a vertical sidebar only on this page. I don't know how to make it where he can add pages to it like that. So far when it creates a page it adds it to the main nav bar.

  7. You probably don't want to give a template (unless it is original one you made) to clients if they are paying for your service (unless they don't mind or ask for it). You can create a template for the public if you want. There are plenty out there.

×
×
  • Create New...