• I am designing a website for someone who arranges work placements in the UK for Italian and Slovenian students, so I need my site to be available in all three languages. I have decided not to use translation software as the translations aren’t very good, so am making 3 versions of each page.

    I have made 3 links using images of the three flags, and I want the home page to link them to the other versions of the home page and so on.

    I can get the image to show on each page individually using the codes:

    is_front_page()
    is_page(‘Casa’)
    is_page(‘Domov’)

    Is there a way to put all of these in the same widget logic box so I don’t have to make 3 widgets for each page?

    Thanks!

Viewing 16 replies (of 16 total)
  • Thanks Liz, I very much appreciate it.

    I saw that codex page too – I think Alan linked to it – most helpful indeed… but didn’t get much on operators from it. It seems that each little branch of code languages has there own take on things; e.g., like Pear or CC, but not quite.

    Am I correct in thinking that WordPress is entirely built on php and I’d be better off staying in that classroom rather than wondering lost in all of the school’s hallways?

    Okay, so, with much thanks and appreciation to you, Alan and the others posting in this thread, I’ve been successful in utilizing Widget Logic (test site – my latest science experiment: https://panocea.us/wp-test2/ – Widget Logic is absolutely just the right solution for my needs.

    Using the conditional statements and logical operator: is_single( '451' ) || is_home() I was able to display the text widget’s html content in two places only.

    Because the content in the widget is only on the home page for a while, an indeterminate period; day, month, whatever, the is_home() will be later removed from that particular widget. And then the next update in that widget’s featured location will own that space; for example, is_single( '524' ) || is_home()

    The thing I worry about now, is the one widget container could end up with hundreds of discrete text widgets all with their own peculiar widget logic / conditional statements. Is that about the way it is? or is there some other nifty means of managing the plethora of conditional statements that could reside in a single container?

    The theme I using is Suffusion if that enters into the mix…

    Kind regards,

    Kelly

Viewing 16 replies (of 16 total)
  • The topic ‘[Plugin: Widget Logic] How do I use widget logic to link to more than one page?’ is closed to new replies.