Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #22620

    Kiljan
    Participant

    I dont have framework\functions\global\breadcrumbs.php
    Not in the “X” theme nor the “X_Child-renew”

    Is there something wrong with my installation?
    Can I take a breadcrumbs.php from integrity or icon? they have that file

    #22854

    Christian
    Moderator

    Hey Kiljan,

    You have that file because if not there would be no breadcrumbs displayed.

    Please check again in framework\functions\global\

    And, renew.php in framework\functions

    Thanks.

    #22883

    Markus K
    Participant

    Hello,

    I have installed the X-theme and started modifying the page to look as the customer wants. I have some problems regarding to this topic. I want to change the “read more” text to something else. I have read all these posts and tried to achieve this, but the text remains the same. I modifyied the on and only “read more” text in the language .po-file, but I dont know that I should do with the .mo file. I dont want to make a child theme, just to modify these certain texts to finnish. I put up the renewed lang-file to the themes functions/lang and modified the wp-config.php to use the custom language file I edited with PO-edit).

    Is there a way to explain this I could understand – it seems like a minor modification in a certain .php-file but all these comments make me more confused on a really simple matter. Please help me.

    Another Q, I cannot find a way to modify the keyword button links on the site. The basic color seems to be transparent, and it turn white on hover. Where can these colors be changed??

    Love your help!

    #22884

    Markus K
    Participant

    Here is the site at its first looks…
    http://www.pk-pilvi.fi/

    #23232

    Kory
    Keymaster

    Hey Markus,

    Thanks for writing in! You shouldn’t have to update the theme with a child theme to translate various strings throughout the theme as these are wrapped in the proper functions to allow translation via the default.mo and default.po files included with the theme. The following article provides a great walkthrough with how to accomplish this if you’ve never done this before and will explain how to take advantage of this without needing to modify template files.

    At the time of writing this response I cannot seem to connect to your webpage, so I am not entirely certain what portion of the webpage you are trying to adjust. If you are looking for the CSS selectors you need to modify the appearance of an element, you can do so by right clicking on that element in Chrome and selecting Inspect Element. This will bring up a popup at the bottom of your screen with HTML markup on the left and CSS on the right. You can select elements in the markup previewer below, and then the applicable CSS will be shown on the right. You can then copy these styles over to the Customizer > Custom section or the style.css file of a child theme if you’d prefer to do that (we have an extensive write up on setting up child themes in the Knowledge Base that you should check out if you haven’t had a chance).

    Thanks!

    #23273

    Kiljan
    Participant

    I got it to work after a few issues.
    This is what I did.

    I took the default.po and opened it with poeditor, changed the language to swedish. Before any changes where made I saved it as a new sv_SE.po file. Then I did all translation, updated and saved, which created and .mo file to.

    Deleted any remnant sv_SE.po files in my wordpress installation

    Changed the wp-config.php file to define(‘WPLANG’, ‘sv_SE’);

    Uploaded the new sv_SE.po and .mo files to
    wp-content/themes/x/framework/lang

    I have yet to try the child theme option. But im doing after this post.
    If I’m correct I should only have to edit the /wp-content/themes/x-child-renew/functions.php

    Best of luck

    #23274

    Kiljan
    Participant

    Just to fish the last comment that I did. It looks like its working now.
    I just added the code: `add_action( ‘after_setup_theme’, ‘my_child_theme_setup’ );
    function my_child_theme_setup() {
    load_child_theme_textdomain( ‘__x__’, get_stylesheet_directory() . ‘/lang’ );
    }`

    after the
    <?php

    section in
    wp-content/themes/x-child-renew/functions.php

    The only issue I have is that now the backend of wordpress is in Swedish to ๐Ÿ™‚
    Which I didnt want. I think Iยดll try and tweak that by calling my .po file and english translation.

    #23447

    Rubin
    Keymaster

    Hi There,

    did you install WordPress in english? As far as I know when you change the lang define in the wp-config the backend language also changes so it’s set there.

    #33098

    Luigi C
    Participant

    Thank you Thomas S, very very much.
    Your shared tip works fine to me.

    I would suggest to everybody “Codestyling Localization” plugin wich is very easy to use.

    #33172

    Rad
    Moderator

    Hi Luigi,

    Thanks for sharing ๐Ÿ™‚

    #33204

    Branko K
    Participant

    Hey Support,

    could you also provide a path like that for changing “Read More” please?

    #33236

    Support
    Member

    Hi Branko!

    Thank you for using the theme!

    I’m sorry but can you please elaborate? You can find the Read More strings on framework > functions > global > content.php. Find all instances of the strings:

    __( 'Read More', '__x__' )
    

    I hope that helps. Cheers!

    #63303

    AdOpera
    Participant

    Federico ciao. Per caso hai tradotto il tema in italiano con “poedit”? Se si, mi dici dove hai messo i file it.mo e it.po usando un child tema? Grazie ๐Ÿ™‚

    #63564

    Federico H
    Participant

    Ciao Gianluca. Io non parlo italiano (solo in spagnolo e inglese), ma Google Translate รจ molto utile in queste situazioni. Non ho tradotto i file po in italiano, ma posso dirvi dove collocarli, anche se si utilizza un tema minore (child tema). Dopo aver modificato i file con un editor di po, ho messo i file es_ES.mo e es_ES.po sotto wp-content/themes/x/framework/lang.
    Spero che ti aiuta. Buona giornata!

    #63773

    Christian
    Moderator

    Hey Federico,

    Thanks for sharing and replying to Gianluca. ๐Ÿ™‚