1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Word Press Blog Programming Help

Discussion in 'Blogging' started by billyh7, Oct 20, 2009.

  1. billyh7

    billyh7 Junior Member

    Joined:
    Dec 18, 2008
    Messages:
    162
    Likes Received:
    2
    On my blog I have my main tool bar and it has 5 categories across the top


    This is how its programmed

    <li class="page_item page-item-4"><a href="http://www.mysite.com/cat3" title="cat3">cat3s</a></li>

    I want to make sub categories off this so when you scroll over cat3 a sub menu pops up with 4 choices that go to 4 other pages in my blog.

    I've tried everything. What is the proper coding to do this???

    PLEASE HELP....
     
  2. kanshu

    kanshu Regular Member

    Joined:
    Sep 11, 2009
    Messages:
    212
    Likes Received:
    28
    Occupation:
    Computer programmer
    Location:
    Cebu City, Philippines
    Home Page:
    I think you need JavaScript to do that.

    To get one, just look for a web page with the particular feature you're looking for. Then, look at the source. If the JavaScript code is embedded on the page, you can just copy it. If it's hosted on the server, just get the link (it is .js file) and put the address on your browser.
     
  3. mbceo

    mbceo Junior Member

    Joined:
    Feb 9, 2009
    Messages:
    164
    Likes Received:
    25
    Defintely js is needed for this.

    Check out the mimbo wordpress theme. They have the exact thing you are looking for. Maybe download this theme, and get the code from it.
     
  4. billyh7

    billyh7 Junior Member

    Joined:
    Dec 18, 2008
    Messages:
    162
    Likes Received:
    2
    So i just need a java script plug in and then I can add sub menus??
     
  5. kanshu

    kanshu Regular Member

    Joined:
    Sep 11, 2009
    Messages:
    212
    Likes Received:
    28
    Occupation:
    Computer programmer
    Location:
    Cebu City, Philippines
    Home Page:
    No plug-in needed for users. JavaScript is a client-side script. You just need to enable it in your browser.

    But you need to put the JavaScript files in your server together with your web page or PHP scripts. You can also embed them with the HTML file, but better to keep them in separate .js files.

    As mbceo mentioned, you can just download a theme with some feature you want and just get the JavaScript from there.
     
    Last edited: Oct 21, 2009
  6. insider

    insider Regular Member

    Joined:
    Jul 5, 2009
    Messages:
    344
    Likes Received:
    134
    Location:
    Europe
    If you want to add it to your current theme you can check out this jquery plugin

    Code:
    http://www.dynamicdrive.com/style/csslibrary/item/jquery_multi_level_css_menu_horizontal_blue/