• Resolved lutetia

    (@lutetia)


    Hi all,

    My site has a blog component as well as an extensive collection of static pages (nearly 300).

    I currently have a hand-coded drop down menu showing selected pages in my top-of-page navigation menu.

    I created this as a work-around since my theme (Prosense) does not have native support for menus and my attempts at adding native support were unsuccessful.

    I’m ready for a new theme and am now trying out different ones, but when I select “preview” every single page on my site (nearly 300) appears in the menu.

    For example, this is the case with 2011, atahualpa, and other themes I’ve tried.

    I have not assigned any “parent” attributes to any pages, and I do not wish to designate subpages and end up with a huge “cascading” menu of pages and subpages.

    I just want to have 15-20 selected pages in my menu as standalone links.

    What do I need to do so that when I try out new themes (and make the switch) only the selected pages appear in the menu?

    My site is here

    Any advice would be most appreciated.

Viewing 6 replies - 16 through 21 (of 21 total)
  • Thread Starter lutetia

    (@lutetia)

    OK, I’m making progress. I reinserted the correct code in the header and only the pages in my menu appear.

    But just as a tiny vertical list on the left hand side. Not as a horizontal menu.

    Looks like I’ll have to leave it like that for preview to work, so I guess I have to put the site in maintenance mode to try different themes.

    Thanks to both of you for your help with this.

    Yeah, to get proper display, you would need to add css to your theme. When originally setting this up, I just swiped the css from twentyten to start with

    But if you are switching themes, no reason to develop css I would think

    Thread Starter lutetia

    (@lutetia)

    I don’t have much experience customizing things with CSS… so I’d probably end up with another mess to fix.

    Or perhaps I could just use the CSS I currently have for my hand-coded menu?

    One of the reasons I’m looking for a new theme is that my current menu doesn’t render consistently. In some browsers the submenus drop down, and it others they expand horizontally.

    Well, what I did was simply copy/paste the bit of code for the menu from functions.php/header.php/style.css from twentyten to my theme when the menus first came out.

    That worked perfectly. I could then edit as I saw fit once I had everything working. Using your current css may not work well, as WP outputs it’s own classes, etc

    Thread Starter lutetia

    (@lutetia)

    I’ve uploaded some newer themes (platform, yoko) to my site for previewing and the menu feature is now behaving correctly in preview, i.e. only designated pages appearing in menu, without the menu I created actually being added live on my site. And no need to use maintenance mode. Interestingly, the problem persists in the Atahualpa theme (all pages showing up in menu), so there may be a glitch or incompatibility issue with that one.
    So this has been very helpful. Thanks again.

    I was messing around with the preview myself to see what worked. Some themes do, some do not. I wonder if it has to do with what name the menu is registered as or something.

    Either way, I’m glad it’s working out for you

Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘How to control which pages appear in menu’ is closed to new replies.