Tangler Discussion Forums

Discuss

Topics

Click a Topicto start discussing

    Hi - using the Silver theme, I'd like to hide the subpages - make them dropdowns, or at least not appear on the main nav menu across the top of the page. Am using PageMash, and it works on the widget, but not on the tab menu. Do I really have to go and edit something backstage to make this work? PageMash is invaluable on my other sites... thanks!

    2009-01-27 02:58:49.0

    Hi there. Open up the header.php file in the theme, and replace dp_list_pages() with wp_list_pages(). Then your plugin might work if that's what it was changing.

    2009-01-28 19:58:15.0

    Hi - tried that, and got a bizarre result: the top menu has been split into three levels, with lots of blank tabs here and there... I'm leaving it that way so you can see it if you'd like... http://www.kaypraptaa.com/eatndrink/

    2009-02-03 01:01:00.0

    Well, the the navigation bar doesn't have space for subpages, so you're going to have to do some work. Either don't use subpages, hard code the links to the pages you want in the navigation instead of listing them all, change the dp_list_pages function to list the pages you want, or try to integrate one of the plugins that does dropdown menus.

    2009-02-03 14:38:13.0

    It's not that I so much want the dropdown subpages, just to hide them - and others. I'll try some of the other solutions and let everyone know what works.

    2009-02-03 20:56:21.0

    Tried to change dp_list_pages to wp_list_pages to see if that would work (it seems that plugins don't like dp_list_pages... why that choice, out of curiosity?) But I get an error saying it cannot "redeclare" the function that has already been declared in "includes". I'm getting a bit frustrated with the templates, as they don't respond to common Wordpress plugins as they should. Is there some way I can make them more compatible? Thanks...

    2009-02-17 03:35:16.0

    By the way, the plugins I'm having trouble with all relate to pages, so far. And I can't figure out how to change the dp_list_pages function, as the instructions for the wp_list_function in Wordpress don't use the same syntax...

    2009-02-17 03:44:26.0

    And a search for dp_list_pages on Wordpress.org doesn't turn up ANYTHING.

    2009-02-17 03:46:15.0

    It's a function provided by the theme you're using (either silver or green), in its functions.php, it's not a wordpress function. It was just to reduce the amount of CSS needed for the menu in that theme. You don't have to use it, and the other themes don't use it.

    2009-02-20 09:05:38.0

    So if I want to use the plugins that call "wp_list_pages" function, I can't use the silver or green themes? I imagine that if dp_list_pages was used to simplify the css, deleting it will just make everything go all wacko... I apologize, but I'm not familiar enough with .php to know the consequences of messing with the code - and my internet connection isn't fast enough for me to feel like trying stuff and starting over with a fresh install if it doesn't work...

    2009-02-21 02:25:07.0

    Perhaps you should try downloading XAMPP or WAMP so that you can run WordPress right on your own PC, and see the effects of changes in realtime without uploading anywhere.

    2009-02-22 12:44:26.0

    OK, might do that. But meanwhile, when you say "you don't have to use it" (dp_list_pages) what do I do to get rid of it and still use the silver theme? Deleting it doesn't work, changing it to wp_list_pages doesn't work. Forgive me for the repeated questions, but I've googled "dp_list_functions" and wordpress, and can't find any help at all.

    2009-02-22 20:05:28.0

    Use wp_list_pages instead, you will just have to modify the page hierarchy or the CSS to make it fit the design.

    Alternatively, don't use that theme, use a different one.

    Alternatively, hard code the page links you want into the menu (header.php) instead of using any code.

    2009-02-24 00:50:03.0
To send a message, Join Now (it's quick and free) or Sign In
Edit Topic
Delete Topic
Are you sure you want to delete the topic