Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other WordPress custom drop-down menu problem

  • This topic is empty.
Viewing 15 posts - 1 through 15 (of 39 total)
  • Author
    Posts
  • #35079
    tobeeornot
    Member

    Hi

    I am looking to build a customisable drop-down menu, where the user is able to add and subtract page headings to the drop downs by creating categories on the WP menu page. So far I have managed to do this for a more straight forward sub-navigation menu and pointing the code to that, as follows:

    The same code is not picking up the styles for the main-navigation drop-downs and I would like some help as to why this is so. Many thanks in advance.

    #90286
    TheDoc
    Member

    This piece of code will ONLY link to your style.css file.

    #90289
    tobeeornot
    Member

    What code would then link to nav.css on the same path?

    #90290
    chrisburton
    Participant

    @tobeeornot is there a problem using @import?

    Also, in the future please keep your explanation to a strong minimum. A lot of people tend to shy away from problems that look like a book of description.

    #90291
    fectio1
    Member

    Try this code for you style sheet. Place it below your original one



    #90292
    tobeeornot
    Member

    Thanks Fectio1.

    I’ll give that a go now.

    #90294
    tobeeornot
    Member

    Apologies Chris – I’ll be sure to keep it brief in future and display more patience.

    I’m not sure what you mean by @import though…

    #90299
    chrisburton
    Participant
    #90304
    tobeeornot
    Member

    @Chris thanks for the link. That is an interesting method but I would like to use the php code just so I know how it is done. I also edited my original questions above.


    @fectio1
    if I need the styles to apply to the whole site do I need to specify the page as

     

    ?

    #90319
    tobeeornot
    Member

    @Fectio1 – many thanks, your solution worked well. I simply used this code:

    Does anyone have ideas regarding the drop-down menu problem?

    #90336
    TheDoc
    Member

    Do you have a link to the site? I guess I don’t really understand what you’re trying to do exactly!

    #90339
    tobeeornot
    Member

    Hi Doc,
    Sorry it is installed locally at the moment so I don’t have a link I can share.

    I am trying build a drop-down menu where the headings link to the WP menu option to enable a user to customise the categories. I have created the relevant categories in WP menu and saved it as ‘main navigation’ but the problem appears that the dropdown menu isn’t linking to the css styles and I am not sure why.

    #90348
    TheDoc
    Member

    Unfortunately without seeing any code or preferably a working link, not much I can suggest!

    #90357
    tobeeornot
    Member

    I can plug in the code but I didn’t want to overwhelm people with too much stuff. Is it ok with you?

    #90361
    TheDoc
    Member

    Totally. Just paste the HTML code that is relevant (the menu) and the CSS that is relevant (the menu styles).

Viewing 15 posts - 1 through 15 (of 39 total)
  • The forum ‘Other’ is closed to new topics and replies.