Site logo

Archived topic

Alternative for a header in a (WPML) bilingual woocommerce site.

7 replies · Started by rtomc on May 21, 2017

Viewing posts 1–8 of 8

Hy

I'm trying using a contained table with two rows (one for logo, one for a slider) in all a bilingual woocommerce site.

I can't use a Gp-Hooks (my first and ideal option) because it does not work correctly in the second WPML language.

"Blog Header Content" is not a good option because only works in "Blog Page"...

Do anybody know any alternative option?

Thanks

RMR

What about is isn't working correctly in WPML? I believe they have functions you can add where it makes your custom text translatable?

Hy,

It is not a translate issue.

I have a shortcode slider in a GP Hook.
In the main language it works normally.
In the secondary language, the slider does not work.

I do'nt undernstad why, and I'm lloking for altenatives.

You can see it at fukurosan.com
Spanish is OK, english is KO

Thanks for any suggestion.

Regards.

RMR

Hmm, that might be something you need to bring up with WPML/the slider plugin developers. Looks like an incompatibility between those two.

Thanks,

Any alternative?

Do anybody knows how to publish an slider in the header of a bilingual wmpl site without using a GP Hook?

Let me know :)

Thanks !

RMR

I doubt GP Hooks is the issue, as all it does is output your content into the template.

You could try doing a manual hook:

add_action( 'generate_before_header_content','tu_before_header_content' );
function tu_before_header_content() {
?>
    Slider in here
<?php
}

Adding PHP: https://docs.generatepress.com/article/adding-php/

Hy,

It was a metaslider question.

I delete it and then re-installed, and it worked again.

Resolved.

Thanks.

RMR

Great to hear :)

This archived topic is closed to new replies.