Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7180967
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T17:27:31+00:00 2026-05-28T17:27:31+00:00

Im writing a new wordpress theme. i added my css html and js code

  • 0

Im writing a new wordpress theme. i added my css html and js code samples. what is the problem ? the dropdown menus dont work. Could anyone help me ?

the css part is :

.HeaderContent #MainMenuBg {float:left; margin-top:10px; width:880px; height:30px; overflow:hidden;}
.HeaderContent #MainMenu {margin:0px; padding:0px;}
.HeaderContent #MainMenu li {display:block;  float:left; list-style-type:none; margin-right:10px; margin-top:7px; padding-right:10px;}
.HeaderContent #MainMenu li a {font-family:Tahoma; font-weight:bold; color:#ffffff; font-size:11px; text-decoration:none;}
.HeaderContent #MainMenu li a:hover {text-decoration:underline; color:#FFE212;}
.HeaderContent #MainMenu li ul { margin: 0; padding: 0; position: absolute; visibility: hidden; border-top: 1px solid white}
.HeaderContent #MainMenu li ul li { float: none; display: inline} 
.HeaderContent #MainMenu li ul li a { width: auto; background: #9F1B1B}
.HeaderContent #MainMenu li ul li a:hover { background: #7F1616}

The html part is:

<div id="MainMenuBg">
            <ul id="MainMenu">
                <li><a href="">Ana sayfa</a></li>
                <li><a href="">Güncel</a>
                     <ul>
                        <li><a href="#">Son haber 1</a></li>
                        <li><a href="#">Son haber 2</a></li>
                        <li><a href="#">Son haber 3</a></li>
                        <li><a href="#">Son haber 4</a></li>
                        <li><a href="#">Son haber 5</a></li>
                    </ul>
                </li>
                <li><a href="">Siyaset</a></li>
                <li><a href="">Ekonomi</a></li>
                <li><a href="">Politika</a></li>
                <li><a href="">Kadın</a></li>
                <li><a href="">Magazin</a></li>
                <li><a href="">Otomobil</a></li>
            </ul>
        </div>

JS part is:

$(document).ready(function () { 

    $('#MainMenu li').hover(
        function () {
            //altmenuler
            $('ul', this).slideDown(100);

        }, 
        function () {
            //altmenugizle
            $('ul', this).slideUp(100);         
        }
    );


});

What sould i do it works? Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T17:27:32+00:00Added an answer on May 28, 2026 at 5:27 pm

    The code is actually working fine but you are not able to see may be because of the css.
    The text color of the menu is white in your css and the visibility of menu is hidden. Correct the belwo two css rules it should work fine.

    Change

    .HeaderContent #MainMenu li ul { 
        margin: 0; 
        padding: 0; 
        position: absolute;
        visibility: hidden; 
        border-top: 1px solid white
    }
    

    to

    .HeaderContent #MainMenu li ul { 
        margin: 0; 
        padding: 0; 
        position: absolute;
        display: none;/*Changed to display:none becase slideDown/Up do not manipulate visiblity*/
        border-top: 1px solid white
    }
    

    Change (This will not be the issue if your page background is not white)

    .HeaderContent #MainMenu li a {
        font-family:Tahoma; 
        font-weight:bold; 
        color:#ffffff; 
        font-size:11px; 
        text-decoration:none;
    }
    

    to

    .HeaderContent #MainMenu li a {
        font-family:Tahoma; 
        font-weight:bold; 
        color:#0000ff;/*Changed to some other color than white */
        font-size:11px; 
        text-decoration:none;
    }
    

    Working Demo

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing a wordpress theme, and have run into a fairly basic problem.
Typically when writing new code you discover that you are missing a #include because
I am writing some new code that will throw a custom exception - I
I am brand new at writing Wordpress plugins, so to start I am trying
My website used to work on wordpress engine but now I'm writing my own
Hi i have a strange problem with a WordPress plugin that i am writing,
We perform updates of large text files by writing new records to a temp
When writing a new jQuery plugin is there a straightforward way of checking that
I'm writing a new daemon, which will be hosted on Debian Linux. I've found
I’m writing a new iPhone app which doesn’t depend on any of the 3.0

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.