Forum Replies Created

Viewing 15 replies - 181 through 195 (of 288 total)
  • Do you have any comments before an </div>? That used to create phantom characters in ie. This sounds like a phantom thing. Very frustrating.

    Thread Starter csleh

    (@csleh)

    I’m sure there is a cleaner way, but adding another if-else inside the first one (for category) to test for a single post with ID of 50 (the media sheet) did the trick.

    <?php if (in_category('3')) : ?>
    <?php if( is_single(50) ) : ?>
    <?php else : ?>
    <p class="newsdatepage">TROY, MICHIGAN &mdash; <?php the_time('F d, Y') ?>
    
    <?php endif; ?>
    <?php endif; ?>

    Thread Starter csleh

    (@csleh)

    Right, that’s what I understood the code to be.

    Here’s the goal:
    category 3 is news. Everything in news should look the same, generally. There is one post (50) that is info for media. The site uses breadcrumbs, so you can see the path on the page. If you are looking at a press release (99% of news category items), you should see the date posted. But if you are looking at the media info page, the posting date doesn’t make sense.

    There could be a second category that only has the media info, but that would be confusing — not only do I have to pull in an additional category whenever referencing news, but viewers would see a different path in the breadcrumbs.

    My thought was that if I could just exclude one post from the in_category call all these problems would be fixed. I am open to any suggestions?

    Thread Starter csleh

    (@csleh)

    This title is the wrong question. The answer to the TITLE is: yes. to exclude a post just use this:
    <?php if (have_posts()) : while (have_posts()) : the_post(); if( $post->ID == '179' ) continue; ?>

    Here, post ID 179 will not be included in the listing.

    Will ask the correct question in another post.

    basically, a post doesn’t have any class assigned to it automatically. If the problem is not enough spacing for text on the whole site, then try changing:

    #content p{
    padding: 0px 0px 15px 0px;
    margin: 0px;
    line-height: 20px;
    }

    The padding goes: top right bottom left
    So change 15px to 40px and you should be set.

    Have you tried the gallery option in wordpress? you can set the thumbnail size to whatever you like under settings. Then in a post choose “add media” and upload images. Here you can add titles, descriptions, etc and choose to link to a page. When done, click “insert gallery into post” and the image will automatically link to a new page

    The question isn’t about your css, it’s about the html — is the class .post being properly applied to the bit you want?

    First check that the class name is actually “post”. Or add a link her to your site.

    the main body is getting its color from the background image. If you delete that image, you can see the color effect.

    Also, try using Firefox and downloading firebug. It lets you edit and see changes on the fly, very handy for seeing changes immediately.

    try:
    li.current_page_item ul li a {how it should look}

    if you have more levels just add on:
    li.current_page_item ul li a, li.current_page_item ul li ul li a {style}

    I’m seeing peachy colors. Do you refresh the browser window after making a change?

    First, I don’t know what the ideal permissions are once the design and coding is finalized, but in order to make the changes you want to make, the permissions must be set properly (ie read, write, execute). You can always change them back when done.

    If you only want to add code to the sidebar, just change permissions for sidebar.php. Otherwise, do the entire theme folder (select the box about recursively if you see it).

    Once the file is editable, paste in the html, save, and you’re all done!

    You do not of course need to use the theme editor — download the file you want to change, use notepad or such (NEVER MICROSOFT WORD. That’s important) then upload the new file. You might want to keep a copy of the original somewhere in case something gets messed up along the way.

    I’m not that patient, so I open the file using theme editor, copy the contents on my computer, then make my changes. If I’ve made a mistake I can always copy the “backup” I just saved. Then I can the effects right away.

    The boxes have width and height, and are placed in one of the sidebars, which I’m assuming also has width applied. So I don’t think you need or want the absolute positioning bit. If the box is too close to an edge, try a margin or padding.

    It’s possible that what is happening is on your screen the browser window sizes are the same, and the boxes are being positioned absolutely in relation to the browser. Your laptop is a different size of screen. These boxes aren’t literally “in” one of the sidebars, they just show there on your computer by accident.

    I’m not sure what you’re trying to do, but in FF the images are in a div with absolute positioning 750px from the left, and they are totally off the background. It would be better to use a float or relative positioning for that container.

    Yes, because of WHERE the class is put. The code from fold page is changing the class from being in the <li> to being in the <a>.
    This css:

    .current_page_item a {
    	color: #000000;}
    .current_page_item a:hover {
    	color: #000000;}

    is saying “something with a class of current_page, that is then a link, should look like this.” (<li class="current_page"><a...>)

    Thus, this would work:

    a.current_page_item {color:#000;}
    a.current_page_item:hover {color:#000;}

    because it is saying “a link with the class current_page should look like this” (<li><a class="current_page...>)

    when you added the <h5>, the class was then attached to that, taking the class out of the <a> again.(<li><h5 class="current_page"><a...>)

    It worked because it took the class out of the a (see my previous post), and put it in the h5. Fine. But you’ve given each h5 an id, which is a no-no. IDs occur once on a page, classes can be used over and over.

Viewing 15 replies - 181 through 195 (of 288 total)