lyklev
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: issues viewing in ie and firefoxTry it without the padding (why padding if your positioning is absolute?).
IE and FF have completely different opinions about padding and widths.
Forum: Fixing WordPress
In reply to: 1.comment , 2.comment ??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 withforeach ($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 linebreaksAs 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.
Forum: Fixing WordPress
In reply to: How does WP send the user registration email?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.
Forum: Themes and Templates
In reply to: Display subcategories with some left-margin?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;
}Forum: Fixing WordPress
In reply to: Can’t see ANY plugin optionsCan 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.
Forum: Fixing WordPress
In reply to: Remove Topic title link from above current topicThe 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.Forum: Themes and Templates
In reply to: Header Link in 1.5?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.
Forum: Installing WordPress
In reply to: New user registration emailI noticed it too, and I reported it. It has been corrected in the CVS, and should be corrected in tomorrow’s nightly.
Forum: Fixing WordPress
In reply to: My URI, Email and Your Comment fields are all black.Maybe you should change this style:
#commentform #name, #commentform #email, #commentform #url, #commentform textarea {
background: #000;
(…)