Okay
  Public Ticket #859562
Title Portfolio
Closed

Comments

  •  4
    Vincent started the conversation

    Hi there,

    I have a really ridiculous question about a very tiny detail.
    http://www.broekx-schiepers.be/testwebsite/projecten/
    The project/portfolio page is called 'projecten' in our dutch language. I changed the page title and the Custom portfolio item URL prefix to 'projecten', but in the heading (google chrome tab) the title still remains 'Portfolio'.  (see attached)

    Any idea how/where to change this? can't seem to find it. Probably it's in some php function file?

    Thanks in advance!

  • [deleted] replied

    Hi Vincent,

    To translate or rename theme strings, you can do this via Loco Translate plugin. If you don't have it, please install and activate the plugin in your WordPress site.

    1. Then go to Loco Translate > Manage Translations
    2. Click "New Language" for the current active theme (if you didn't created it yet, otherwise ignore this step). On the new language page, choose these options – Screenshot
    3. After that you will be redirected to the editing screen for theme translations. Before you continue with your translations make sure the current language of your site is selected – Screenshot
    4. Follow these instructions to learn how to translate strings – Screenshot
    5. The changes will be applied immediately – Screenshot

    Note: Translation files will be saved to wp-content/themes/{theme-name}/languages folder or global directory of theme translations: wp-content/languages/themes/ (based on your choice). If you have saved your translations inside theme folder, always save a backup of *languages/* folder (inside the theme) when there is new theme update. After you update the theme (languages folder will be replaced with an empty folder), just move the backup files you previously saved to the same languages directory and your changes will still be applied.

    On you case you need to change that on Portfolio Post Type plugin (http://drops.laborator.co/1hLnF)



    P.S: You are using an old version of our theme (1.9.1) and the latest version for the moment is (1.9.3), please update your theme first and then the premium plugins too.

    The easiest way to update our themes is if you use Envato Toolkit or Envato Market plugin. On this link How to update Themes and Plugins you can learn this easy step-by-step procedure :)

    Important: After you update the theme please don't forget to go to Appearance > Install Plugins to update all your premium plugins to the latest version that we support.

    If you can't update LayerSlider, go to Plugins and deactivate this plugin. Then go to Appearance > Install Plugins, you now can update and then activate Layer Slider again.

  •  4
    Vincent replied

    Dear Ylli,

    Thanks for your reply, I think installing a new plugin for this is way to far fetched.

    The issue is very simple. If you navigate the website -> info / nieuws / projecten, the text in the chrome tab is always the same as the title of the page, but for projecten, it says Portfolio...
    Could you help me to find the css/php/hmtl file where this is defined?

    Thanks in advance,

    Best,
    Vincent

  • [deleted] replied

    Hi Vincent,

    Can you please add the following code in functions.php (end of file):

    function custom_portfolio_name( $args ) {
    $args['labels']['name'] = 'Projecten';
    return $args;
    }
    add_filter( 'portfolioposttype_args', 'custom_portfolio_name' );

    This will "easily" change the portfolio title in the head.