You can use filter to show dropdown menu or not.
And use CSS rule
wpglobus-current-language {
display: none;
}
to hide current language.
Hi,
Just added that code into the CSS section of the plugins customer code area and it has no effect.
See: http://mhiley.incwebdev.co.uk/
Thanks for your time
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.
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?
You should use add_filter
function as described here
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.
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
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. 🙂
> Could you please tell me what to do
Sure. Read this
-
This reply was modified 2 years, 6 months ago by Alex Gor.
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.