• yoggi

    (@yoggi)


    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 https://www.demalt.info

Viewing 15 replies - 1 through 15 (of 15 total)
  • dwzemens

    (@dwzemens)

    I am sure we can help — what is it you would like to do with the comments field?

    Thread Starter yoggi

    (@yoggi)

    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 https://www.demalt.info

    Posted in Aktiviteter, P? g?ng | No Comments

    I want it to be left-aligned!

    /Giorgio

    dwzemens

    (@dwzemens)

    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

    Thread Starter yoggi

    (@yoggi)

    Oh, thank you!

    I will try it! But first…I need to eat something.

    /Giorgio

    Thread Starter yoggi

    (@yoggi)

    It worked!
    Thank you sooo much dwzemens!

    /Giorgio

    dwzemens

    (@dwzemens)

    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?

    Thread Starter yoggi

    (@yoggi)

    I′m living in Stockholm but Im originaly from Chile, but my parents are italian and spanish.

    ??

    dwzemens

    (@dwzemens)

    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?

    Thread Starter yoggi

    (@yoggi)

    Aight! Ill check it up!

    Thread Starter yoggi

    (@yoggi)

    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

    dwzemens

    (@dwzemens)

    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; ?>

    Thread Starter yoggi

    (@yoggi)

    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

    ghanshyamgadhiya

    (@ghanshyamgadhiya)

    for backup just copy your file into your machine ??

    Thread Starter yoggi

    (@yoggi)

    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?

    Thread Starter yoggi

    (@yoggi)

    Can somebody help me out please? I want to change the language on the commentsfield to swedish…

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Edit comments field’ is closed to new replies.