BuddyBoss Home – Web › Support Forums › Themes › OneSocial theme › WPML Compatability
- This topic has 4 replies, 2 contibutors, and was last updated 8 years, 8 months ago by Anonymous.
Question
February 28, 2016 at 12:45 pm #60580@qur3anHi,
I installed the OneSocial theme along with the Marketplace plugin, and while both should be fully compatible with WPML, I’m having a hard time setting the logo up. I’m using English and default language and Arabic as second language, when I set a logo for the English settings and then go a set a different logo for the Arabic settings, the Arabic logo shows on both languages! In other words, the last theme settings saved is what shows for both languages.
Any help with that?
Thanks
Answers
February 29, 2016 at 11:47 am #60786@qur3anHello ..
Anyone can help?
February 29, 2016 at 2:19 pm #60810@
AnonymousHi @qur3an
I have notified developers about it to keep different different option for each languageYou can do some tweaks inside child theme
copy header-logo.php from/onesocial/template-parts/header-logo.php
to
/onesocial-child/template-parts/header-logo.php
and at line number 20
replace<?php echo $logo; ?>
with
<?php if(ICL_LANGUAGE_CODE=='en'): ?> <?php echo $logo; ?> <?php elseif(ICL_LANGUAGE_CODE=='ar'): ?> <img width="300" height="104" src="http://buddyboss-demos.buddyboss.com/onesocial/wp-content/sandbox2823-uploads/2016/01/accessories_large-1-300x104.jpg" class="boss-logo loaded" alt="accessories_large" sizes="(max-width: 300px) 100vw, 300px"> <?php endif; ?>
You can replace http://buddyboss-demos.buddyboss.com/onesocial/wp-content/sandbox2823-uploads/2016/01/accessories_large-1-300×104.jpg with your AR logo
Regards
February 29, 2016 at 2:37 pm #60812@qur3anThanks @vapvarun,
This will help with the logo, thanks.
But, a similar issue is happening with setting the WC Vendors pages in the plugin settings, if I set the English pages, the dashboard shows correctly, now, I go and switch the WPML language and I set the Arabic pages, and save. Now the Arabic dashboard shows correctly, but the English one is broken.
Any idea why is this happening?
March 1, 2016 at 4:19 am #60868@
AnonymousHi @qur3an,
I have notified developers for WC vendor pro options also, it might also need some tweaks form WC vendor pro end as well.
Regards
- The question ‘WPML Compatability’ is closed to new replies.