• Hi Nick,

    I have a question about selecting blocks to be displayed on the correct pages.
    It concerns a bilingual website (multilanguage plugin: polylang), I created a block for both languages.
    Under “Location” I’m now selecting the indiv. language pages where the blocks have to be displayed, this works fine except for the Homepage (Frontpage), on this page both blocks are displayed for both languages.
    I tried selecting and unselecting the “Frontpage” check from ‘Block location’, however unchecking this option hides the blocks.
    Can you help me maybe?
    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Nick Diego

    (@ndiego)

    I am not 100% sure how Polylang works, but if you have both blocks set to show on the homepage, then both will show up. There is no integration (at this time) between Blox and Polylang so there is no way for Polylang to dynamically display different blocks.

    Thread Starter ws24

    (@ws24)

    Thank you for your fast answer Nick
    Since it concerns only 2 pages I will now hide the blocks using css.

    .page-id-XX #blox_global_XX .blox-raw-wrap {
    display: none
    }

    This seems to do the trick.

    Thanks for Blox!
    Petri

    Thread Starter ws24

    (@ws24)

    Hi Nick,
    I have one more question regarding this, do you know if this will work correct with WPML (instead of polylang), and also in combination with WPML and Woocommerce?
    Thanks again.
    Petri

    Plugin Author Nick Diego

    (@ndiego)

    Hi Petri,

    You will likely need to use the same CSS implementation you used for Polylang with WPML. The plugin is fully compatible with Woocommerce though.

    Best,
    Nick

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘display blocks on bilingual website- > homepage’ is closed to new replies.