• Resolved dgenc

    (@dgenc)


    Hello,

    My deskop topbar and mobile topbar different. Im add deskop topbar and mobile topbar [google-translator]

    But only 1 page coming . If i delete deskop topbar [google-translator] , opening mobile topbar. If i delete mobile topbar [google-translator], coming deskop topbar. how i see 2 topbar plugin shordcode

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author edo888

    (@edo888)

    Hi,

    It is hard to tell anything without seeing your website.

    Thanks! ๐Ÿ™‚

    Thread Starter dgenc

    (@dgenc)

    Plugin Author edo888

    (@edo888)

    Hi,

    I see that currently it is set into the header for mobile version. I would recommend placing the shortcode direcly into your theme in an appropriate location, so it is visible for both desktop and mobile versions:

    <?php echo do_shortcode('[google-translator]'); ?>

    I believe it should go into header.php file of your theme somewhere inside <div class="row topbar-row">. The file name can differ depending on your theme.

    Thanks! ๐Ÿ™‚

    Thread Starter dgenc

    (@dgenc)

    Hello,

    My theme header.php

    <?php
    /**
     * The Header for our theme.
     *
     * Displays all of the <head> section and everything up till <div id="content">
     *
     * @package Martfury
     */
    ?><!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
        <meta charset="<?php bloginfo( 'charset' ); ?>">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
    
    	<?php wp_head(); ?>
    
    </head>
    
    <body <?php body_class(); ?>>
    <?php martfury_body_open(); ?>
    
    <div id="page" class="hfeed site">
    	<?php if ( ! function_exists( 'elementor_theme_do_location' ) || ! elementor_theme_do_location( 'header' ) ) {
    		?>
    		<?php do_action( 'martfury_before_header' ); ?>
            <header id="site-header" class="site-header <?php martfury_header_class(); ?>">
    			<?php do_action( 'martfury_header' ); ?>
            </header>
    	<?php } ?>
    	<?php do_action( 'martfury_after_header' ); ?>
    
        <div id="content" class="site-content">
    		<?php do_action( 'martfury_after_site_content_open' ); ?>
    

    Which line should I add?

    Thread Starter dgenc

    (@dgenc)

    Hello,

    I am waiting for your help.

    Regards

    Plugin Author edo888

    (@edo888)

    Hi,

    It is hard to tell, you need to place it somewhere and see where it shows up then adjust it as needed. You can place some specific phrase like “language selector” and when you are happy where it appears you can replace it with our shortcode, which will show the language selector instead of “language selector” phrase.

    I cannot provide you specific instructions.

    Thanks! ๐Ÿ™‚

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.