cskyleryoung
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Twenty Fourteen] Hide submenu items on mobile viewYou may be able to accomplish this using CSS. For example:
@media screen and (max-width: 320px) { #primary-menu .children { display: none; } }The above snippet is based on Twenty Fourteen default theme settings, and should hide sub menus for screens smaller than 320px. The
max-widthmay need to be adjusted if your mobile breakpoint is different.Forum: Themes and Templates
In reply to: [Dyad] Menu Drop DownAssuming you are using a Custom Menu, you can create a Custom Link for the drop down header, and set the URL to
#, which keep the link from actually leaving the page.If you further want to turn the pointer into a default cursor when hovering over this header link (so viewers don’t get confused and try to click on it), give it a class (for example
.my-header-link), and then add this to your css:.my-header-link > a { cursor: default !important; }Forum: Themes and Templates
In reply to: Want no header image for posts in TwentyElevenFor
target="_blank", I would try changing content.php, line 19, from:
<h1 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
to
<h1 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark" <?php if ( is_home() ) { echo 'target="_blank"'; } ?>><?php the_title(); ?></a></h1>Again, that’s untested, but it should work, and is a good starting point otherwise. I’m not used to working in older themes like this, and have no testing servers spun up to test at the moment :-/
Hope that helps though!
Forum: Themes and Templates
In reply to: Want no header image for posts in TwentyElevenThis CSS snippet may to the trick:
#branding > a { display: none; }That snippet should go in style.css.
Start with the CSS. However, if there are other links at the very top level of your header, it will hide those too. In that case you may need to edit header.php, line 99 by default, and change this:
if ( is_singular() && has_post_thumbnail( $post->ID ) &&To this:
if ( (is_page() || is_attachment()) && has_post_thumbnail( $post->ID ) &&That last snippet is untested, but should work. It’s a good starting point for plan B in any case.