This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Need some help : translate + delete some stuff

  • Creator
    Topic
  • #821
    chipsmolle
    Member

    Hi !

    I spend so many hours to find with files is connect to functions in this theme…
    I’ve got some questions.

    1. How to remove the text : "Your email address will not be published."
    Just after “Leave a reply”

    2. How to remove the paragraph after the comment form :

    "You may use these HTML tags and attributes:     
    "

    3. How can i translate many words like "Leave a reply" or "Read more" ...

    I try to place a barelycorporate_FR.mo & barelycorporate_FR.po in barelycorporate/lang/
    But it's not working...

    Thank's for your help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #831
    Jason Bobich
    Keymaster

    Hello,

    1 & 2) These elements are part of WordPress’s comment_form function, which the theme uses in comments.php. You can either copy comments.php to your Child theme and edit it directly, or you’ll see that the $args currently passed into the comment_form function has a filter “themeblvd_comment_form” attached that you could utilize from your Child theme’s functions.php.

    http://codex.wordpress.org/Function_Reference/comment_form

    3) All text strings that theme outputs on the frontend of the site come from one function that can be filtered. Here’s a complete breakdown on how this works:

    http://dev.themeblvd.com/tutorial/frontend-text-strings/

    You can also use this plugin:

    http://wordpress.org/extend/plugins/theme-blvd-string-swap/

    I try to place a barelycorporate_FR.mo & barelycorporate_FR.po in barelycorporate/lang/
    But it’s not working…

    If you’re trying to actually do a full translation in the standard WordPress way with PO files, here’s an explanation on that:

    In the WordPress world, they refer to translating WordPress as “locxalization” and so this theme comes “localization-ready”.

    This is the complete guide to get you started:

    http://codex.wordpress.org/Translating_WordPress

    Specifically to the theme, there is a file called barelycorporate.po located in the “lang” folder of the theme. You download that file and translate the contents line by line. This process will be easier to manage if you use a program like poEdit, for example. That way you’ll be able to translate the file with a user-friendly interface and not a text editor. Then you save the file with your language code in the file name (ex: fr_FR.po for French, en_BR.po for British, etc). When you do this, poEdit will also create a second file for you with the same name ending in “.mo”. Then you need to upload these two new files back to “lang” folder of the theme on your live site.

    In order for the above process to work, you need to actually have your WordPress site set to be in your language. You do that by changing the language code in your wp-config.php file (which is found in the root directory or your WordPress installation). Here’s a guide on that process:

    http://codex.wordpress.org/Installing_WordPress_in_Your_Language

    #836
    chipsmolle
    Member

    Thank’s for your reply!!

    Do you have an idea with this code cannot be add to archives.php ?
    It’s an extract from my old WP theme in category.php, it was working but not now
    I try to change “category” to “archives”, still not working

    <?php if (is_category(array(2037,2285,1260))) { ?>
     SHOW 1
    
    <?php } else if (is_category()) { ?>
     TEST2
    • This reply was modified 7 years, 10 months ago by chipsmolle.
    #838
    Jason Bobich
    Keymaster

    Something like this would probably make more sense in the function the framework already has setup for generating archive page titles called “themeblvd_archive_title” found in /framework/frontend/functions/parts.php. This function is utilized in the default content hooked to “themblvd_content_top” which the theme has attached to the option for show/hiding the title on archive pages from your Theme Options.

    http://dev.themeblvd.com/tutorial/primary-framework-action-hooks/

    Here’s how you can edit these functions from your Child theme if you don’t want to mess with the hooks:

    http://dev.themeblvd.com/tutorial/editing-framework-functions/

Viewing 3 replies - 1 through 3 (of 3 total)
  • The forum ‘Barely Corporate Responsive WordPress Theme’ is closed to new topics and replies.