21 posts
  • Exclusive Author
  • Has been a member for 4-5 years
  • United States
Wex says

Well, if you’re concerned with having no Javascript, add this to your HTML :

<noscript>
<style type="text/css">
#nav li:hover ul { display: block; }
</style>
</noscript>

Make sure you keep the #nav li ul { display: none; } in your CSS as well.

20 posts
  • Bought between 10 and 49 items
  • Has been a member for 5-6 years
  • Netherlands
sillie83 says
Well, if you’re concerned with having no Javascript, add this to your HTML :
<noscript>
<style type="text/css">
#nav li:hover ul { display: block; }
</style>
</noscript>

Make sure you keep the #nav li ul { display: none; } in your  CSS  as well.

Ok I placed #nav li ul { display: none; } in my CSS en I see that the subnavigation is not showing anymore, but you say when peoply have nog actived javascript the will not see the subnavigation, thats why I have to place this code in my HTML

<noscript>
<style type="text/css">
#nav li:hover ul { display: block; }
</style>
</noscript>

Sorry but in wich HTML I have to place this? My index is index.php…

20 posts
  • Bought between 10 and 49 items
  • Has been a member for 5-6 years
  • Netherlands
sillie83 says
I think it is in this file, the name is highlight_filmstrip.php, I’m a beginner with php, sorry
$nav .= '<li><img src="wp-content/themes/FancyTheme/thumb.php?src='. get_post_meta($post->ID, "thumb", $single = true) .'&amp;h='. get_option('fancytheme_h1_thumb_height') .'&amp;w='. get_option('fancytheme_h1_thumb_width') .'&amp;zc=1&amp;q=80" alt="'. $post->post_title .'" /></li>';
Yeah I think your right, try replacing the above line with:
$nav .= '<li><img src="/wp-content/themes/FancyTheme/thumb.php?src='. get_post_meta($post->ID, "thumb", $single = true) .'&amp;h='. get_option('fancytheme_h1_thumb_height') .'&amp;w='. get_option('fancytheme_h1_thumb_width') .'&amp;zc=1&amp;q=80" alt="'. $post->post_title .'" /></li>';

Yeah!! This worked I love you guys!! ;)

20 posts
  • Bought between 10 and 49 items
  • Has been a member for 5-6 years
  • Netherlands
sillie83 says
Actually, there should be a pretty easy fix for your hover problem. I’d add this to your CSS : #nav li ul { display: none; }

What exactly do you need help with? It looks like you’ve figured out the image problem.

There is a bit of a problem with the Navigation, but you may have it under control. Your site looks like this on my browser (Google Chrome): Preview

New problem…. :crying: that I see because of your screenshot… When I make my browserscreen smaller the menu items are cropping and the last items are going to a secondline. Can anyone tell me what the reason is?

Thanks for all your help!

21 posts
  • Exclusive Author
  • Has been a member for 4-5 years
  • United States
Wex says

Put that <noscript /> bit in your header inside the <head /> tags, but make sure it’s underneath the stylesheet declarations.

As for the navbar problem, I dont’ see any problem in your nav code, so I’m assuming it’s somewhere else on your site. My recommendation is to get your code up to standards, and it should work. Use the w3 markup validator… here.

by
by
by
by
by
by