WordPress.org

Ready to get started?Download WordPress

Forums

[Theme: Mantra] Some help needed for simple edits (10 posts)

  1. prophetu
    Member
    Posted 1 year ago #

    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!

  2. Andrew
    Forum Moderator
    Posted 1 year ago #

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

  3. prophetu
    Member
    Posted 1 year ago #

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

  4. Andrew
    Forum Moderator
    Posted 1 year ago #

    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?

  5. prophetu
    Member
    Posted 1 year ago #

  6. Andrew
    Forum Moderator
    Posted 1 year ago #

    ❝ 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.

  7. prophetu
    Member
    Posted 1 year ago #

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

  8. kandasa
    Member
    Posted 1 year ago #

    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

  9. Jose Lozano
    Member
    Posted 1 year ago #

    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' ),

  10. Jose Lozano
    Member
    Posted 1 year ago #

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

    $fields = array

Topic Closed

This topic has been closed to new replies.

About this Topic