-
AuthorPosts
-
October 5, 2014 at 11:10 am #118869
Hi.
I installed the polylang plugin but no changes on the main menu or widgets foot when change the language. I have tried many things but before touching the code would like to know any suggestions.
thank you very muchOctober 5, 2014 at 7:55 pm #119001Hi there,
Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / password
– FTP credentialsDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
October 16, 2014 at 11:17 am #126464This reply has been marked as private.October 16, 2014 at 5:27 pm #126684Hi there,
Thanks for the info, I can see that the translation is working. Have you tried translating all content?
1. Add language switch to your menu or widget.
2. Create top menu for each language and assign them accordingly
3. Create footer menu for each language and assign them accordinly
4. Create translation for each of your page/postCheers!
October 17, 2014 at 6:33 am #127011Hello!
Yes, the translations are working properly in general, except for the Top Menu and the Bottom Menu (Footer Menu).
We have one Menu for Spanish, one for Catalan, and both are assigned accordingly, still, it doesn’t work.
For example, if you access https://www.clorian.com/ you’ll see the Spanish Menu, if you switch to Catalan manually by accessing https://www.clorian.com/ca/ the contents will change but the Menu won’t.
Kind regards,
Juan
October 17, 2014 at 9:54 am #127145Hi Juan,
Thanks for writing in! It sounds like you might be having an issue with a third party plugin or script. Regretfully, we cannot provide support for third party plugins or scripts as our support policy in the sidebar states due to the fact that there is simply no way to account for all of the potential variables at play when using another developer’s plugin or script. Because of this, any questions you have regarding setup, integration, or troubleshooting any piece of functionality that is not native to X will need to be directed to the original developer.
Thank you for your understanding.
July 5, 2015 at 7:04 pm #321702Great stuff, I see where I can rename the widgets. The above works for header (I’ll try lower nav menu tomo) but should be the same.
Is there anyway to translate the text in the footer, right at the bottom of the page (the copyright text / company #).
Also is there an quick / easy way to make flags at the bottom of the page slightly higher more in line with the text either side?
Or am not sure if will put the leave them on the top nav menu, is there anyway to have them all the way over to the left of the screen? Either in line as they are now, but all the rest of the main menu items (except the flags) centred still?
I’m assuming my other option would be to add them to the top bar? If so how would I do that (I see social media icons in the top left at the moment, I have left it turned on for now for)? And I’d most probably want to center them and make them larger, more like the your social media icons about 30px.
My URL is http://andcom-solutions.com/
Thank you in advance 🙂
July 5, 2015 at 7:08 pm #321704Typo’s in above comment, top left = top right…..lack of sleep from experimenting…zzzz
Thanks again
July 5, 2015 at 7:39 pm #321718One last question just while I have your attention, save bothering you again. I tested I can write the testimonial in any language and create a new short code, but is there any way for say all the thai pages to pick up the thai testimonal, etc.
And say the make the phone number on the right bottom widget change depending on the language?
I’m guessing the html has now changed change from the plug in and the lang would be set on the new pages, so would I be able to do something in the html / php to set up a rule that says if an en /th/ jp page is chosen, widget x should go to short code x and phone # to id …
Thinking about it I’m assuming it’s gonna be the same process for the bottom text mentioned above, if possible?
Super thanks again in advance, I will leave you in peace now.
July 5, 2015 at 11:08 pm #321809Hi there,
Thanks for writing in.
1. Footer content translation – please install a child and follow this.
a. Copy this file wp-footer.php from /wp-content/themes/x/framework/views/{STACK}/ to your child theme with same folder structure (eg. /wp-content/themes/x-child/framework/views/{STACK}/ )
b. Edit your child theme’s wp-footer.php and replace this code :
<?php echo x_get_option( 'x_footer_content' ); ?>
with this one:
<?php echo __( x_get_option( 'x_footer_content' ), '__x__'); ?>
c. Save and upload, then use your translator to scan your strings again. Then translate it.
2. Moving the flag – I’m not really sure what is your preferred positioning. Please finalise it first then provide your mockup design that we could check and follow.
3. I’m not really sure about your last question, I’m actually confused. It sounds like it’s more related your your translation plugin. Would you mind providing more details, perhaps some visual guide that could help us?
Thanks!
July 7, 2015 at 3:49 am #322935Sorry for the confusion, please see attached picture below:
http://andcom-solutions.com/wp-content/uploads/2015/07/flag.png
1) The folder public_html/wp-content/themes/x-child/framework/views/renew is empty, I thought I had set my child theme up correctly, should this be empty?
2) I have marked the places where I’d prefer the flags to be shown. Ideally to the right of the nav menu (choice 1), and underneath when in mobile mode. The other thought I had could they appear between the logo and nav menu (choice 2).
If either of these are not possible, I noticed the below code on another thread, I’m assuming I can modify this to put them in the last last position? Just change the links to the relevant places (I have some better flags also so could just link these to the new ones from media upload). To add extra spacing / change sizing is it better to use css or just force it in the html below?
And to kill the social media icons / center the flags or to left / right /:
.x-topbar .x-social-global{
display:none;
}
.x-topbar .p-info{
float:right; – change this to appropriate position
}(link to said topic here – https://community.theme.co//forums/topic/polylang-topbar/ )
3) I have high lighted the 2 places I’d like to change on the image, but after rereading / looking at point 1,
I have just noticed where I can change these. So you can scrap this, this can also be done in the strings 🙂Thank you again.
July 7, 2015 at 4:57 am #322976Hi there,
#1 Yes, it is empty, you need to copy the wp-footer.php from /wp-content/themes/x/framework/views/renew and put it in the same path inside child theme (wp-content/themes/x-child/framework/views/renew), then modify this file.
#2 To place them in primary navigation, copy _navbar.php from /wp-content/themes/x/framework/views/global and put it in the same path inside child theme (wp-content/themes/x-child/framework/views/global), now place polylang shortcode just after
<?php x_get_view( 'global', '_nav', 'primary' ); ?>
Hope it helps.
July 7, 2015 at 6:10 am #3230121) I did the first one, I believe correctly the modified file is now there. I went to the strings, but do not see anything additional there to edit. my wp-content/themes/x-child/framework/views/renew/wp.footer.php is now:
<?php
// =============================================================================
// VIEWS/RENEW/WP-FOOTER.PHP
// —————————————————————————–
// Footer output for Renew.
// =============================================================================?>
<?php x_get_view( ‘global’, ‘_header’, ‘widget-areas’ ); ?>
<?php x_get_view( ‘global’, ‘_footer’, ‘scroll-top’ ); ?>
<?php x_get_view( ‘global’, ‘_footer’, ‘widget-areas’ ); ?><?php if ( x_get_option( ‘x_footer_bottom_display’, ‘1’ ) == ‘1’ ) : ?>
<footer class=”x-colophon bottom” role=”contentinfo”>
<div class=”x-container max width”><?php if ( x_get_option( ‘x_footer_social_display’, ‘1’ ) == ‘1’ ) : ?>
<?php x_social_global(); ?>
<?php endif; ?><?php if ( x_get_option( ‘x_footer_menu_display’, ‘1’ ) == ‘1’ ) : ?>
<?php x_get_view( ‘global’, ‘_nav’, ‘footer’ ); ?>
<?php endif; ?><?php if ( x_get_option( ‘x_footer_content_display’, ‘1’ ) == ‘1’ ) : ?>
<div class=”x-colophon-content”>
<?php echo __( x_get_option( ‘x_footer_content’ ), ‘__x__’); ?>
</div>
<?php endif; ?></div>
</footer><?php endif; ?>
<?php x_get_view( ‘global’, ‘_footer’ ); ?>
And the only file in the directory. Any ideas?
2) The polylang shortcode? Also I noticed the <?php x_get_view( ‘global’, ‘_nav’, ‘primary’ ); ?> twice.
<div class=”x-navbar-wrap”>
<div class=”<?php x_navbar_class(); ?>”>
<div class=”x-navbar-inner”>
<div class=”x-container max width”>
<?php x_get_view( ‘global’, ‘_nav’, ‘primary’ ); ?>
</div>
</div>
</div>
</div><?php else : ?>
<div class=”x-navbar-wrap”>
<div class=”<?php x_navbar_class(); ?>”>
<div class=”x-navbar-inner”>
<div class=”x-container max width”>
<?php x_get_view( ‘global’, ‘_brand’ ); ?>
<?php x_get_view( ‘global’, ‘_nav’, ‘primary’ ); ?>
</div>
</div>
</div>
</div>Do I need to add under both <?php x_get_view( ‘global’, ‘_nav’, ‘primary’ ); ?>
3) Whilst waiting on your advice of the above, I tired adding the flags to the top menu, to see if it worked. However there are white lines between the flags, how can I get rid of these and add more space? And ideally I’d like the email address on the left and the flags on the right. I used the code mentioned in that other post. I have left it on the website at present so you can see what I mean.
TIA
July 7, 2015 at 6:34 am #323022HI there,
#1 Please follow this thread :
https://community.theme.co//forums/topic/translation-widgets-and-footer-text/#post-309834
#2 Since you are using stacked layout, add it after first one.
#3 Remove | between
<a>
tags.Please add the following code in Customize -> Custom -> CSS :
.p-info span { margin: 0 10px; }
Hope it helps.
July 7, 2015 at 6:39 am #323025I will look into the above later, Thanks.
With regards to 2, what am I adding the php file? What do you mean the polylang short code? Sorry I know nothing about php.
-
AuthorPosts