Edit comments field
-
Hi!
Does somebody how to choose or change the alignment on the comments field?
Is it possible to do it by using any CSS edit program or something?
Im the guy who runs http://www.demalt.info
-
I am sure we can help — what is it you would like to do with the comments field?
Oh, that was fast!
I need to align the textfield to the left so it´s not centered as it is now.
You can see it under any post on http://www.demalt.info
Posted in Aktiviteter, På gång | No Comments
I want it to be left-aligned!
/Giorgio
In the file named style.css, which is located in the /wp-content/themes/”your-theme-name folder.
Change this code:
.narrowcolumn .postmetadata {text-align: center;
}
to this:
.narrowcolumn .postmetadata {
text-align: left;
}
That should do it. If I misunderstood what you wanted or if it does not work, post again and we will get it working.
dz
Oh, thank you!
I will try it! But first…I need to eat something.
/Giorgio
It worked!
Thank you sooo much dwzemens!/Giorgio
My pleasure, let me know if you need something else. I am pretty much a beginner, but know a few things.
What part of the world are you from, Giorgio?
I´m living in Stockholm but Im originaly from Chile, but my parents are italian and spanish.
🙂
You will have to change this:
.widecolumn .postmetadata {
margin: 30px 0;
}
to this:
.widecolumn .postmetadata {
margin: 30px 0;
text-align: left;}
in the same style.css file if you want the same effect when you are viewing a single post page. Make sense?
Aight! Ill check it up!
The other thing I need to change is how to change the language on “comments” to the swedish “kommentarer”. And posted in to “postad i”. And also how to make the “comments off” disappear or change to the swedish variant.
I´m new on the wordpress-css-coding. But I´m trying my best.
😛/Giorgio
See if you can find something similar to this in your index.php file. Make sure you save the file first as a backup so if you make a mistake you can always change it back. Take a look at this code and I think you can see where you need to make the changes that you speak of. Let me know if you have a problem.
<?php if ( comments_open() ) : ?>
<div class=”entrymeta”>
<div class=”postinfo”>
<span class=”postedby”>Posted by <?php the_author() ?></span>
<span class=”filedto”>Filed in <?php the_category(‘, ‘) ?> <?php edit_post_link(‘Edit’, ‘ | ‘, ”); ?></span>
</div>
<?php comments_popup_link(‘No Comments »’, ‘1 Comment »’, ‘% Comments »’, ‘commentslink’); ?>
</div>
<?php endif; ?>I will try your tips tonight. I´m still wondering though how to save a backup before i get to action…I don´t want to mess it up after all work.
/Giorgio
for backup just copy your file into your machine 🙂
I just saved a backup. The problem is that I can´t fin the code you gave me on the style.css file. And the index.php is almost empty it just says:
<?php
/* Short and sweet */
define(‘WP_USE_THEMES’, true);
require(‘./wp-blog-header.php’);
?>…wich is for the theme.
Should I type something there directly?Can somebody help me out please? I want to change the language on the commentsfield to swedish…
The topic ‘Edit comments field’ is closed to new replies.