Forum Replies Created

Viewing 15 replies - 196 through 210 (of 288 total)
  • There are plugins to remove wordpress formatting. Or perhaps turning off the wsiwyg editor under users/your profile.

    How about using a small heading like an <h4> to separate the different bits? Easy to do and good for viewer scanning.

    I don’t know what your code means, but it looks like it’s replacing stuff so that the li no longer has the class, the a does. Have you tried

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

    I’m not certain the hover code is correct here

    You could do a custom template, then assign this page to use it. Put in a blank <div> with the same dimensions of the sidebar. I’m not sure that a page limit is what you really want — what if you have more images in the future? If this is what you want — just give the <div> of the content a css declaration of height:whatever

    Forum: Themes and Templates
    In reply to: Underlining

    an easier way is probably to apply a <span> to the text, then add css styling to the span. Or add bold to the css style of the underline, or add an underline to the css styling of the bold. This does not of course address the issue of using an underline on text that is not a link…

    Thread Starter csleh

    (@csleh)

    Cool! The second one works. Will mark as resolved.

    Question though:
    it looks like this is echoing to fill in the <p> tag, the getting the title, then echoing the </p>. What does the “.” do?

    thanks for the quick response too.

    Thread Starter csleh

    (@csleh)

    This seems to be working:

    <?php
       if (is_page('our-team'))  { ?>
    <?php $temp_query = $wp_query; ?>
    <?php query_posts('cat=12'); ?>
    <?php while (have_posts()) : the_post(); ?>
    <h3><?php the_title(); ?></h3>
    <p><?php the_content(); ?></p>
    <?php endwhile; ?>
     <?php }
    ?>

    I believe the first two and last two lines are saying “if this is the our team page, do this stuff”
    The stuff in the middle is a temporary query, which doesn’t affect the main page content (ie no doubling of “the_content”, but two distinct contents). the endwhile is saying my temporary query is finished.

    If my above translation is incorrect please say so, I’m trying to learn.

    FYI — this code goes after the closing of the loop on the page.

    Where you edited the php code (in the template file) just replace the &raquo; with the bar | symbol.

    Have you tried the new gallery feature? When you write a post, you can add the media using the new image uploader. Once all your photos are there, select “insert gallery in post” and ta-da, instant gallery. It will automatically show a thumbnail, which can then be clicked to open a new page. Lots of options for title, description, etc.

    The gallery look can be modified, but that gets a little trickier. Not hard though.

    Forum: Fixing WordPress
    In reply to: personal comments

    So each person can see comments made by themselves? I suppose that you could then set it up to show comments by persons x, y and z if you had a team?
    I haven’t used comments yet, would you mind sharing your code for the if statement?

    I suspect the url for the image isn’t correct. Try this:

    <img border=”0″ src=”<img src=”<?php bloginfo(‘template_directory’); ?>/images/banner.jpg” width=”950″ height=”245″ usemap=”#FPMap0″></p>

    Super easy. In admin, first write a page you want to be the home page (make sure to write a “page” not a “post”). Go to “settings” and choose the “reading” tab. There select “front page displays a static page” and choose the page you just created.

    Voila!

    Thread Starter csleh

    (@csleh)

    Learning by trial and error works better with a guide. Thanks macbrink! Works great!

    *future reference – small typo in the code above after a tag —

    <?php
       if (is_page('my_page'))  { ?>
    <ul>
     <?php
     global $post;
     $myposts = get_posts('category=4');
     foreach($myposts as $post) :
     ?>
    <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
     <?php endforeach; ?>
     </ul>
     <?php }
    ?>

    I’ve been using this, and has been working well:

    <?php if (is_page('my-page')) : ?>
       <img src="<?php bloginfo('template_directory'); ?>/images/auto.jpg" alt="test image" />
    <?php else : ?>
      <img src="<?php bloginfo('template_directory'); ?>/images/generic.jpg" alt="image" />
    <?php endif; ?>

    (I’ve shortened a bit so hope nothing important got deleted)

    Two differences:
    – space before the closing of the image tag />
    – slightly different php with no “echo”

    NOT a php coder but like I said this has been working for me

    Or perhaps take quotes of comment about use “blog” image?

    Are you using the html edit box? It should work in there. the easiest way then would be within the a tag:
    <a href="whateverlink" style="color:#ff0000;">link text</a>

    these are inline css style tags

    If the above doesn’t work in ie, it’s likely a known browser issue. Position is everything is usually very helpful in fixing these:

    http://www.positioniseverything.net/explorer.html

    I’m using firefox on a mac so can’t duplicate to point you in a different direction. sorry

Viewing 15 replies - 196 through 210 (of 288 total)