Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1028932
    kevroussel
    Participant

    Hey 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.

    #1029448
    Christopher
    Moderator

    Hi 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.

    #1030163
    kevroussel
    Participant

    Thanks 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.

    #1030675
    Darshana
    Moderator

    Hi 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.

    #1030868
    kevroussel
    Participant

    The 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?

    #1030871
    kevroussel
    Participant

    Fixed the UL on my own. Woot!

    #1030873
    kevroussel
    Participant

    Ok nevermind, my CSS put bullets even in the nav. Help!

    li {
        list-style: initial;
    }
    #1031634
    Paul R
    Moderator

    Hi,

    Please change your code to this.

    
    .entry-content.content li {
       list-style: initial;
    }
    

    Hope that helps

    #1031714
    kevroussel
    Participant

    All good with the UL! Any advice for the language switcher CSS? Looks odd right now.

    #1032566
    Darshana
    Moderator

    Hi 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.

    #1034395
    kevroussel
    Participant

    Yep, it worked. But only the “current” language is formatted. For the “other” or “visited” page, what would it be?

    #1034975
    Friech
    Moderator

    Hi 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!

  • <script> jQuery(function($){ $("#no-reply-1028932 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>