21 posts
  • Has been part of the Envato Community for over 4 years
  • Sells items exclusively on Envato Market
  • Located in 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
  • Has been part of the Envato Community for over 6 years
  • Has collected 10+ items on Envato Market
  • Located in 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
  • Has been part of the Envato Community for over 6 years
  • Has collected 10+ items on Envato Market
  • Located in 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
  • Has been part of the Envato Community for over 6 years
  • Has collected 10+ items on Envato Market
  • Located in 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
  • Has been part of the Envato Community for over 4 years
  • Sells items exclusively on Envato Market
  • Located in 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.

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by