• Quickinfo:
    – I’ve made a clean install with the latest wordpress and polylang version.
    – Permalinks are custom structure
    – Not using a static page
    – I have swedish as default language and finnish as secondary.

    —–

    Hey!

    I have very limited php knowledge and I survive mostly on copy/pasting simple php code regarding basic WordPress functionality. In my scenario I want to learn how to make custom strings which I need for the menu(navigation) and later the contact form page.

    Here is an image of the current situation:

    https://oi62.tinypic.com/11vnqeo.jpg

    With the url ending with /sv/ it shows everything as it should. When I change to /fi/ only the post is changing.

    How can I make the menu1 string to show the correct language depending on /language/ url?

    Here are the necessary .php files:

    header.php: https://pastie.org/private/oyebsedmk5hciij8czq
    functions.php: https://pastie.org/private/r5goaja7rzgj59op1yvb4w

    I’ve found many similar questions regarding this and I’ve tried some answers that have worked for others but not for me.

    -t

    https://www.ads-software.com/plugins/polylang/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom strings for a beginner’ is closed to new replies.