• Resolved Alistair Bell

    (@designfood)


    Hi, thanks for the plugin it works very well but would like to make a slight change.

    Ive checked this forum and your FAQs but not found an answer that worked.

    I would like the Language selector to appear just the same as wpglobus.com
    ie. When on the English version it just shows the Russian flag. Once you click the Russian flag it shows the Russian content but displays the English flag as the language selector.

    So, no dropdown, not showing the current language but the available translation.

    Thanks in advance.

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Contributor Alex Gor

    (@alexgff)

    You can use filter to show dropdown menu or not.
    And use CSS rule
    wpglobus-current-language {
    display: none;
    }
    to hide current language.

    Thread Starter Alistair Bell

    (@designfood)

    Hi,

    Just added that code into the CSS section of the plugins customer code area and it has no effect.

    See: https://mhiley.incwebdev.co.uk/

    Thanks for your time

    Thread Starter Alistair Bell

    (@designfood)

    Ive had a look at the filter code and I don’t understand which bit I need or if I need to edit it and where I would paste that code. Sorry, I don’t know much more than a bit of CSS.

    Plugin Contributor Alex Gor

    (@alexgff)

    Thread Starter Alistair Bell

    (@designfood)

    Hi Alex,

    I have a child theme and can edit the functions.php in there.
    Shall I copy all of the code on that page and paste it into my functions.php?

    Plugin Contributor Alex Gor

    (@alexgff)

    You should use add_filter function as described here

    Thread Starter Alistair Bell

    (@designfood)

    Morning,

    Ive used the Code Snippets plugin to add the code but Im not sure which bits to paste in (which code lines) and also what to edit to make it the same as your WPGlobus language selector.

    Sorry to take up your time on this.

    Plugin Contributor Alex Gor

    (@alexgff)

    There is no needs to use Code Snippets if you are using child theme.
    You can paste code in functions.php file.
    Once again, you can use code example from here
    Just find function example_callback string

    Thread Starter Alistair Bell

    (@designfood)

    Sorry Alex,

    Totally Lost.
    Ive got my Functions.php open.
    Should I just be copying line 2583 of that code you sent? and add add_filter at the start of the line?

    I don’t know PHP so Im lost with this. Could you please tell me what to do as if I am a chimpanzee with a keyboard. ??

    Plugin Contributor Alex Gor

    (@alexgff)

    > Could you please tell me what to do
    Sure. Read this

    • This reply was modified 3 years, 1 month ago by Alex Gor.
    Thread Starter Alistair Bell

    (@designfood)

    Thanks,

    Ive read that. So do I just use that code?
    function wporg_filter_title( $title ) {
    return ‘The ‘ . $title . ‘ was filtered’;
    }
    add_filter( ‘the_title’, ‘wporg_filter_title’ );

    I do not understand code so I don’t know what all of this means at all. Ive read everything you have sent and I just don’t understand it Im afraid. Ive tried to look at YouTube to work out all of the terms used in the things you are sending but its beyond my understanding of WordPress.

    I also have no idea what part of that huge page of code from github I should use or how I would paste it inside the above code.

    I know it must be frustrating trying to help someone that doesn’t have your programming knowledge but I don’t know who else to ask. Perhaps I need to hire a programmer to explain what you are saying to me?

    Your suggestion would be appreciated.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Language Selector Mode same as wpglobus.com’ is closed to new replies.