Support » Theme: OceanWP » Weglot mobile menu

  • Resolved cars111

    (@cars111)


    Hi I have installed weglot and the desktop website is working well but it isnt showing on mobile. How can I get it to show the language toggle on tablet and mobile? The weglot guys said to add this <div class=« weglot_here »></div in the source code but not sure how to access it or if it is even the best way of achieving the functionality. Thanks

Viewing 6 replies - 16 through 21 (of 21 total)
  • Hi thanks so much for all the help, i have added the code but it will not allow me to save it says: nonce_failure

    i pasted this into the function file

    function weglot_mobile() { ?>
    <div class=« weglot_here »></div>
    <?php
    }
    add_action( ‘ocean_after_nav’, ‘weglot_mobile’ );

    Thanks

    Theme Author oceanwp

    (@oceanwp)

    Have you removed the other weglot_mobile() function?

    Hi this is the only code I have in the function file:

    function oceanwp_child_enqueue_parent_style() {
    // Dynamically get version number of the parent stylesheet (lets browsers re-cache your stylesheet when you update your theme)
    $theme = wp_get_theme( ‘OceanWP’ );
    $version = $theme->get( ‘Version’ );
    // Load the stylesheet
    wp_enqueue_style( ‘child-style’, get_stylesheet_directory_uri() . ‘/style.css’, array( ‘oceanwp-style’ ), $version );

    }
    add_action( ‘wp_enqueue_scripts’, ‘oceanwp_child_enqueue_parent_style’ );

    function weglot_mobile() { ?>
    <div class=« weglot_here »></div>
    <?php
    }
    add_action( ‘ocean_after_nav’, ‘weglot_mobile’ );

    Thanks

    Theme Author oceanwp

    (@oceanwp)

    That weird, can you open a pre-purchase ticket?
    https://oceanwp.org/pre-purchase-question/
    I will ask you information that you cannot add here.

    Hi I have signed up thanks

    Theme Author oceanwp

    (@oceanwp)

    Problem solved 🙂
    I added the div after the navigation so when the navigation is hidden and the mobile menu is showed, you still have the switcher.

Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘Weglot mobile menu’ is closed to new replies.