Change "Navigate to Page" Text in Neo Mobile Menu

  • Terry

    #7799

    In the Neo options, I have opted to use the “<select> element for menu,” but I want to change the menu text from “Navigate to Page” to something else. Is this possible? My website is: http://www.greeleyweldcountycriminallawyer.com

    I use the Graphene theme for multiple sites, and just bought the Neo Mobile theme. I love it! Thanks for such an awesome theme.

    Admin

    Syahir Hakim

    #39401

    It is possible, but will require some coding.

    1. Create a functions.php file in the wp-content/uploads/gmneo-custom/ folder.

    2. Add this code into that functions.php file you’ve just created:

    <?php
    function gmneo_filter_gettext( $translated, $original, $domain ) {
    $strings = array(
    'Navigate to page' => 'Your replacement string here',
    );
    if ( ! empty( $strings[$original] ) ) {
    $translations = &get_translations_for_domain( $domain );
    $translated = $translations->translate( $strings[$original] );
    }
    return $translated;
    }
    add_filter( 'gettext', 'gmneo_filter_gettext', 10, 3 );

    Terry

    #39402

    Awesome, that worked perfectly! Thank you so, so much. 🙂

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.