Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1338132
    Curcic
    Participant

    Hello,
    need help in moving language flags from main menu to the top menu, above main menu.
    There are 3 flags which need to be inline.

    http://termotim.hiposistem.co.rs/wp/sr/demo-home/
    Thanx

    #1338307
    Joao
    Moderator

    Hi There,

    You need to go to Appereance > Menu and drag and drop all the flags to the parent level.

    Hope that helps

    Joao

    #1338330
    Curcic
    Participant

    Maybe I wasnt clear enough, not inline with nav bar – main menu, but above it – in TOP menu.

    Tnx

    #1338468
    Joao
    Moderator

    Hi there,

    You could add image links on your top bar than.

    Go to Appereance > Customizer > Header and turn on the topbar content.

    add to your topbar content:
    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

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Hvala

    #1342817
    Curcic
    Participant
    This reply has been marked as private.
    #1343021
    Paul R
    Moderator

    Hi Hvala,

    To achieve that kindly do the following.

    1. Install and activate a child theme.

    https://community.theme.co/kb/how-to-setup-child-themes/

    2. Add this in your child theme’s functions.php file(wp-content/themes/x-child/functions.php)

    
    add_filter('x_option_x_topbar_content', 'do_shortcode');
    add_action( 'x_after_view_global__slider-below', 'add_blog_slider', 10 );
    function polylang_shortcode() {
        ob_start();
        pll_the_languages(array('show_flags'=>1,'show_names'=>0));
        $flags = ob_get_clean();
        return '<ul class="my-flags">'.$flags.'</ul>';
    }
    add_shortcode( 'polylang', 'polylang_shortcode' );
    

    3. Navigate to Appearance > Customize > Header > MISCELLANEOUS and add code below as your topbar content.

    
    [polylang]
    

    4. Add this in Custom > Edit Global CSS in the customizer.

    
    .my-flags {
       float:right;
       display:block;
    }
    
    .my-flags li {
       list-style-type:none;
       display:inline-block;
       vertical-align:middle;
       padding:5px;
    }
    

    Hope that helps

    #1343084
    Curcic
    Participant

    Ok, since I already made the form of the website, and it is not child theme, is there a way to copy-paste all the content from Xtheme to child theme , I’ve already done? Or I have to go all from the scratch, manually?
    Thanx

    #1343392
    Joao
    Moderator

    Hi There,

    You can copy the files from your original website to your Child Theme, this is extremely reccomendable in order that you do not lose your changes once you update your theme.

    Hope that helps

    Joao

    #1344391
    Curcic
    Participant

    Thanks a lot!
    Just one more question about the top menu, I need to remove social bar icons fro the top menu,
    also need to have transparent background.

    #1344423
    Curcic
    Participant

    Meanwhile, i resolved it all,
    thank you!!!

    #1344643
    Thai
    Moderator

    Glad you’ve sorted it out 🙂

    If you need anything else please let us know.

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