Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #48781
    Boaz
    Member

    Hi, in the mobile display, the box menu has a title “Menu”, where does one translate it ?
    also, in mobile RTL display the box menu arrow and 3 lines have a gap between them, is there a css fix for this ?
    thanks
    see here:
    http://www.yogalove.co.il/

    #48803
    Sakin
    Keymaster

    @Boaz: To change that Menu to different text, you can change the header. Just replace the text Type-in-new-label in the following script and then add it in “Appearance => Theme Options => Webmaster Tools => Header and Footer Codes => Code to display on Footer” box:

    <script type="text/javascript">
    jQuery(window).load(function() {
    
    //Remove Old Primary Menu 
    jQuery( "#tinynav1" ).remove();
    //Remove Old Footer Menu
    jQuery( ".sb-holder" ).remove();  
    
    // Add New Primary Menu Label
    jQuery('#access .menu').tinyNav({
    	active: 'current-menu-item',
    	header: 'Type-in-new-label' 
    });
    jQuery(".tinynav2").selectbox();
    
    });
    </script>

    Sorry I don’t understand your next question.

    #48884
    Boaz
    Member

    Great, it works
    even though im getting a
    undefined it not a function, on this line
    jQuery(".tinynav2").selectbox();

    regarding the next question – there is a black arrow aligned to the left, i thought it was not properly positioned but i guess its the design is supposed to be.
    Thanks

    #48955
    Sakin
    Keymaster

    @Boaz: Oh Sorry you don’t need that line in Catch Evolution Pro theme. Replace the previous JS script with the following one:

    <script type="text/javascript">
    jQuery(window).load(function() {
    
    //Remove Old Primary Menu 
    jQuery( "#tinynav1" ).remove();
    //Remove Old Footer Menu
    jQuery( ".sb-holder" ).remove();  
    
    // Add New Primary Menu Label
    jQuery('#access .menu').tinyNav({
    	active: 'current-menu-item',
    	header: 'Type-in-new-label' 
    });
    
    });
    </script>

    Ok you can add the following css in “Appearance => Theme Options => Custom CSS” box to change that arrow:
    .tinynav { background-position: left center; }

    #55439
    vigilant_spb
    Participant

    can it be edited directly in code, may be I can copy some php to my child theme or whatever?
    code is working but for second or to you see old “Menu” label and it’s not good

    #55444
    vigilant_spb
    Participant

    it’s in catchbox-allmenu-min.js for edit directly
    can it be transferred to child theme or not?

    #55554
    Sakin
    Keymaster

    @vigilant_spb: To change that to child theme, you need to dequeue and enqueue it. First, you need to copy catchbox-allmenu-min.js to your child theme js directory and then add the following code in your child theme functions.php file.

    function catchbox_child_scripts() {
        wp_dequeue_script( 'catchbox-allmenu' );
        wp_enqueue_script('catchbox-child-allmenu', get_stylesheet_directory_uri() . '/js/catchbox-allmenu-min.js', array('jquery'), '201301503', true);
    }
    add_action( 'wp_enqueue_scripts', 'catchbox_child_scripts', 20 );
Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘translate responsive box menu "menu" title’ is closed to new replies.