Forum Replies Created

Viewing 10 replies - 16 through 25 (of 25 total)
  • lyklev

    (@lyklev)

    Try it without the padding (why padding if your positioning is absolute?).

    IE and FF have completely different opinions about padding and widths.

    lyklev

    (@lyklev)

    What you should probably do is create a counter variable.

    I use the default theme as example, but you should get the idea.

    In wp-content/themes/default, you should edit the file comments.php.
    Right above the comments loop, visible with foreach ($comments as $comment), remove the ol, so it won’t be a list, and define the counter in php:
    <?php $comment_counter = 1; ?>

    Now at the start of your comment, use something like

    <?php echo "Comment number $comment_counter"; ?>

    and after that, increase the comment number by one:
    <?php $comment_counter = $comment_counter + 1; ?>

    Really simple programming, actually.

    Don’t forget to remove all the ol and li tags, and closing tags.

    Forum: Fixing WordPress
    In reply to: forced linebreaks
    lyklev

    (@lyklev)

    As TechGnome points out, this is the nature of HTML. The philosophy was that you tell the browser what it is, and the browser will make it look good (not nice!). Good as in well-readable. You should not want just an extra newline somewhere.

    Now that doesn’t help you much, does it? Ok. Say you want to make a paragraph and you want to give it a little more space on either side. That is a valid reason. Or you want to give all sections of a certain type (code, or quotes for example) an extra 1 line-height margin. What you would do then is hack your style.css instead, and put the margin there.

    This way your layour will look consistent throughout your blog.

    Using css it is possible to tweak it down to the finest level; a style rule would look like this:

    `
    .entrytext p {
    margin-top : 2em;
    }

    This will give all your paragraphs a little more space.

    lyklev

    (@lyklev)

    WordPress uses the mail function built in php itself. So it does pretty much nothing except relying on underlying system. It does not do any authentication.

    This also means that your hosting provider must have the sendmail function in php activated; it is possible that they closed that.

    Another possibility is that your isp blocks mails from domains where e-mail has a different domain, to prevent spam.

    lyklev

    (@lyklev)

    The best way to do anything like this is to look at the source, or even better, the DOM-inspector in Firefox. The DOM-inspector allows you to point at an element and see the structure of the nested classes/id’s. In your case, a child will probably look like this:

    #sidebar ul li ul li ul li

    meaning sidebar -> list (all sidebar sections) -> list-item (one sidebar section) -> ul (categories) -> li (category) -> ul (subcategories) -> li (subcategory).

    In style.css, give this tag a small left margin:
    `#sidebar ul li ul li ul li {
    margin-left : 1em;
    }

    lyklev

    (@lyklev)

    Can anyone tell me any simple plugins which have options? I have never seen any in my options pane, but I would like to rewrite a not-so-pluginnish plugin (it breaks the page when deactivated) into a genuine plugin, but I want to find out how to give it options. So a simple plugin with options as an example would be helpful.

    lyklev

    (@lyklev)

    The simplest way to do this is to look in the directory of the theme you selected, which is in wp-content/themes/yourtheme, where you should replace “yourtheme” with the theme you selected (probably default?).

    Now there are two ways; the first way is a really quick hack;

    with your favourite text-editor, edit style.css, and near the bottom of the file you should see “.navigation” with style rules between curly braces after it. Replace the word “block” with “none”. That way the navigation links will still be there, but they will be invisible.

    If you want a more drastic approach, edit “single.php”, and remove the entire <div class="navigation"> ...</div> section.

    lyklev

    (@lyklev)

    The code for this is in header.php in the themes directory.

    The path to the theme is a php macro, which you can’t put in a css-file.

    You can also put the complete path to the image in the css-file, but this makes it more difficult to move.

    lyklev

    (@lyklev)

    I noticed it too, and I reported it. It has been corrected in the CVS, and should be corrected in tomorrow’s nightly.

    lyklev

    (@lyklev)

    Maybe you should change this style:

    #commentform #name, #commentform #email, #commentform #url, #commentform textarea {
    background: #000;
    (…)

Viewing 10 replies - 16 through 25 (of 25 total)