thejordany
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Twenty Seventeen] Front Page Sections: Display Partial PageActually <!–more–> tags worked!
Forum: Themes and Templates
In reply to: [Twenty Seventeen] social links menu in headerYeah adding that ^ z-index to screens smaller than 768px fixed it.
Thank you!
Forum: Themes and Templates
In reply to: [Twenty Seventeen] social links menu in headerNoticing that this has presented a new issue. The main navigation no longer works or is visible on the front page when the screen is less than 768px in width. Any ideas why? I am going to play around a bit.
Thanks!
Added the following to fix
.navigation-top { z-index: 3; }- This reply was modified 8 years, 4 months ago by thejordany.
Forum: Themes and Templates
In reply to: [Twenty Seventeen] social links menu in headerThanks! That seems to have done the trick.
I had to remove this though or the header image disappeared at less than 767px in width. ¯\_(ツ)_/¯
.custom-header .social-navigation, .custom-header-media, .site-header, .site-content-contain { position: relative; }Forum: Themes and Templates
In reply to: [Twenty Seventeen] social links menu in header.custom-header-media { z-index: 1; }That got the links to work, but that^ covers the entire front page with the header media, so you can’t see the content.
Forum: Themes and Templates
In reply to: [Twenty Seventeen] social links menu in headerOK. I’ve got it there by putting it in the header-image.php located in the template-parts, just above the header-media.
<div class="custom-header"> <?php if ( has_nav_menu( 'social' ) ) : ?> <nav class="social-navigation social-header" role="navigation" aria-label="<?php esc_attr_e( 'Footer Social Links Menu', 'twentyseventeen' ); ?>"> <?php wp_nav_menu( array( 'theme_location' => 'social', 'menu_class' => 'social-links-menu', 'depth' => 1, 'link_before' => '<span class="screen-reader-text">', 'link_after' => '</span>' . twentyseventeen_get_svg( array( 'icon' => 'chain' ) ), ) ); ?> </nav><!-- .social-navigation --> <?php endif; ?><!-- social links menu --> <div class="custom-header-media">I am still getting the same issue. Everything works fine on the front page, but the links don’t work on the other pages, even when you change to float:none.
- This reply was modified 8 years, 4 months ago by thejordany.
OK I found a work around. So they still link to their page, but now the page can display a limited number of posts with the option to view all.
This plugin is superior to the Display Posts used previously because it offers pagination: https://wordpress.org/plugins/list-category-posts/
Forum: Themes and Templates
In reply to: [Twenty Seventeen] social links menu in headerThis is the site I am working on. On the front page the social links menu in the header works fine. When you go to another page and the header changes, the social links menu shows up, but it does not work as a link. Currently trying to work out why this is happening and how to fix it.
The social links work fine on mobile on the non-front pages, however it displays on a white background, pushing the header media down, which is not ideal.
- This reply was modified 8 years, 4 months ago by thejordany.
Forum: Themes and Templates
In reply to: [Twenty Seventeen] social links menu in headerI added another class to differentiate it from the footer social links menu, and got it to show up using this.
.social-navigation.social-header { position: relative; z-index: 1; }However, the hovering and links only work on the front page of the site, and I still need to get it into a good position, on desktop and mobile.
Forum: Themes and Templates
In reply to: [Twenty Seventeen] social links menu in headerOK I seem to have gotten it to the right place. This may not have been the best way to do it, but it’s there.
Using a child theme, I stuck the PHP from the footer.php social links menu into the header.php just above the header image.<header id="masthead" class="site-header" role="banner"> <?php if ( has_nav_menu( 'social' ) ) : ?> <nav class="social-navigation" role="navigation" aria-label="<?php esc_attr_e( 'Footer Social Links Menu', 'twentyseventeen' ); ?>"> <?php wp_nav_menu( array( 'theme_location' => 'social', 'menu_class' => 'social-links-menu', 'depth' => 1, 'link_before' => '<span class="screen-reader-text">', 'link_after' => '</span>' . twentyseventeen_get_svg( array( 'icon' => 'chain' ) ), ) ); ?> </nav><!-- .social-navigation --> <?php endif; ?> <!-- social links menu --> <?php get_template_part( 'template-parts/header/header', 'image' ); ?>Now I just need to play with the CSS.