Tagged: x
-
AuthorPosts
-
June 6, 2016 at 7:37 pm #1028932
kevrousselParticipantHey folks,
First, the URL: http://ot3m.roussel.xyz.
1. Is it possible to add the WPML language switcher in the topbar, next to my nav items? I usually show the language people can switch to; if you’re on the French page, you see “English” in the nav, and vice versa.
2. I cannot translate the “Send to Friend” and “Send Inquiry” strings on each items’ page in the widget area. Any way to translate or hide them?
3. Also, I cannot figure how to indent my UL lists. The bullet won’t show up despite adding padding, indent, etc.
June 7, 2016 at 2:26 am #1029448
ChristopherModeratorHi there,
#1 Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.
Copy _topbar.php from framework/views/global and put it in the same path inside child theme, replace existing code with following :
<?php // ============================================================================= // VIEWS/GLOBAL/_TOPBAR.PHP // ----------------------------------------------------------------------------- // Includes topbar output. // ============================================================================= ?> <?php if ( x_get_option( 'x_topbar_display', 0 ) == 1 ) : ?> <div class="x-topbar"> <div class="x-topbar-inner x-container max width"> <?php if ( x_get_option( 'x_topbar_content' ) != '' ) : ?> <p class="p-info"><?php echo x_get_option( 'x_topbar_content' ); ?></p> <?php endif; ?> <?php x_social_global(); ?> <div class="wpml-selector"><?php do_action('icl_language_selector'); ?></div> </div> </div> <?php endif; ?>#2 & #3 Please provide us with URLs of pages in question.
Hope that helps.
June 7, 2016 at 11:05 am #1030163
kevrousselParticipantThanks for the quick response. I added the WPML code as instructed but I don’t see the language switcher. Am I missing something?
For 2 and 3: http://ot3m.roussel.xyz/repertoire/sports-plein-air/centre-plein-air-mont-farlagne/
Thanks again folks. Your theme is awesome.
June 7, 2016 at 4:10 pm #1030675
DarshanaModeratorHi there,
#1. Did you activate your child theme? You need to activate your child theme to function it properly.
#2. This text is related to a third party plugin that you have (GeoDirectory). Please check their information here (https://wpgeodirectory.com/support/topic/how-to-translate/).
#3. You can add this under Custom > CSS in the Customizer.
.geodir-tabs-content.entry-content li { list-style: initial; }Hope that helps.
June 7, 2016 at 6:51 pm #1030868
kevrousselParticipantThe UL is still not well aligned on regular pages.
http://ot3m.roussel.xyz/groupes/
Also, I’m really sorry… I should’ve activated the child theme to see the changes! My bad.
I’m guessing a bit of CSS will be necessary to align the language switcher with the rest of the top bar?
June 7, 2016 at 6:52 pm #1030871
kevrousselParticipantFixed the UL on my own. Woot!
June 7, 2016 at 6:58 pm #1030873
kevrousselParticipantOk nevermind, my CSS put bullets even in the nav. Help!
li { list-style: initial; }June 8, 2016 at 6:01 am #1031634
Paul RModeratorHi,
Please change your code to this.
.entry-content.content li { list-style: initial; }Hope that helps
June 8, 2016 at 7:27 am #1031714
kevrousselParticipantAll good with the UL! Any advice for the language switcher CSS? Looks odd right now.
June 8, 2016 at 2:55 pm #1032566
DarshanaModeratorHi there,
For the language element, you can add this under Custom > CSS in the Customizer.
#lang_sel_list a.lang_sel_sel { background-color: #ff0000; color: #ffffff; font-size: 14px; padding: 5px; }Hope that helps.
June 9, 2016 at 12:49 pm #1034395
kevrousselParticipantYep, it worked. But only the “current” language is formatted. For the “other” or “visited” page, what would it be?
June 9, 2016 at 7:56 pm #1034975
FriechModeratorHi There,
Please update the given custom CSS code to:
#lang_sel_list a.lang_sel_sel, #lang_sel_list a.lang_sel_other { background-color: #ff0000; color: #ffffff; font-size: 14px; padding: 5px; }Hope it helps, Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1028932 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
