Join the Soledad Facebook Users Group here
for Share, assistance, discussion, and Updates related to Soledad WordPress Theme.

If you can't create a new ticket - you can send us an email via our contact form and we will get back to you.

Okay
  Public Ticket #4530121
Main Bar Primary Menu
Open

Comments

  •  12
    LillaGreen started the conversation

    Hi there,

    I’m trying to add my GTranslate language switcher (via shortcode) into my menu. What I want is to position the language switcher next to the search icon and cart icon, so that on mobile it stays fixed at the top while scrolling.

    How can I make this? See the screenshot for the position i mean.

    Thank you in advance! Tsvete

    Attached files:  Bildschirmfoto 2025-12-31 um 14.19.32.png

  •  3,040
    PenciDesign replied

    Hi,

    You should paste this code into the function.php of the child theme or via the CodeSnippet plugin here: https://wordpress.org/plugins/code-snippets/

    add_action( 'penci_header_extra_icons', function() {
    	echo do_shortcode( 'insert the shortcode at this line' );
    }, 1 );

    After adding this code, you will also need to add some additional CSS to ensure it displays correctly.

    #navigation .gtranslate_wrapper {
      float: right;
      width: auto;
      vertical-align: middle;
      margin: 20px 10px 0 10px;
    }
    .is-sticky #navigation .gtranslate_wrapper {
      margin: 10px 10px 0 10px;
    }

    Regards,
    PenciDesign.