Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • oops, tpyo. found it – Thanks.

    Yes, I’ve been successful at changing id and style of menu-two just can’t seem to keep it contained and functioning in the mobile menu view? When I found this post thought it was relevant to the js file? Thanks again for the feedback.

    Thanks, looks to me like that adds a second menu that changes the <nav id=”second-navigation” yet leaves the class=”main-navigation” and ‘menu_class’ => ‘nav-menu’ unchanged (pardon my shorthand) so they share the same css.

    How to make the changes to the js file that creates two independent navigation menus, each with their own unique style css and locations? And… both work in the twenty twelve mobile menu view?

    Think you left an extra ) in your tutorial when registering the second nav in functions.php

    Mind sharing the recipe you used for proper queue of the new js file?

    Thread Starter gr8

    (@gr8)

    Asking the correct question was the answer. This adds an additional linked “page title” (not entry title) that returns to the page where the images are attached. In the attachment image template php of my twenty twelve child theme I added:

    <?php if ( ! empty( $post->post_parent ) ) : ?>
    					<p class="page-title"><a href="<?php echo get_permalink( $post->post_parent ); ?>" title="<?php esc_attr( printf( __( 'Return to %s', '' ), get_the_title( $post->post_parent ) ) ); ?>" rel="gallery"><?php
    						printf( __( '<span class="meta-nav">←</span> %s', '' ), get_the_title( $post->post_parent ) );
    					?></a></p>
    				<?php endif; ?>
Viewing 5 replies - 1 through 5 (of 5 total)