• Hello! I am using Mantra for my new site, but I need some felp for some minor issues.
    I would like to change the text in the comment form (the title -leave a reply and all the fields (name, e-mail, message) if possible). I thought it would be in the comments.php but couldn`t find them.

    Second I`m haveing some problems with the post titles as they are very close to the post meta both on the first page and when displaying a single post.

    And third I would like to make a small change to the post meta. Right now it says simply by author. I would like to change that by to something like published by.

    Thank you!

Viewing 9 replies - 1 through 9 (of 9 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Changes to theme files will erase upon theme update.
    You should create a Child Theme. Have you a Child Theme?

    Thread Starter prophetu

    (@prophetu)

    I can create one easily. But still need help with the changes 🙂

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Second I`m haveing some problems with the post titles as they are very close to the post meta both on the first page and when displaying a single post.

    May you link your website or link Pastebin.com of your HTML and CSS code?

    Thread Starter prophetu

    (@prophetu)

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    ❝ Second I`m haveing some problems with the post titles as they are very close to the post meta both on the first page and when displaying a single post. ❞
    You could add this into your Child Theme stylesheet;

    #content h1.entry-title {
     margin-bottom: 10px;
    }

    Adjust the value, 10px to your desire.

    Thread Starter prophetu

    (@prophetu)

    Thank you! Works great!
    1 out of 3 already 🙂
    Still searching for a way to edit the text in the comment form 🙂

    Just change language files – DL mantra.po from language folder (/wp-content/themes/mantra/languages) and use poedit to change *by*. Save and upload both .mo and .po file you now got.

    Comment change: If you use built in comment you change languagefile there too (/wp-content/languages)

    PS: this changes will be owerwritten when update of WP and theme

    You can edit Comment Form in wp-includes/comment_template.php
    Function comment_form( $args = array(), $post_id = null )

    Change parameter value of ‘title_reply’ on $defaults=array :

    ‘title_reply’ => __( ‘Leave a Reply’ ),

    On the same function, you can change the prompts for name, email and website by changing parameters ‘author’ , ’email’ and ‘url’ in:

    $fields = array

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Theme: Mantra] Some help needed for simple edits’ is closed to new replies.