• I’m building a small website with WordPress. Ran in to few problems, again. Would be really nice if some of you could help me out with few of these problems.

    1. The goal here is to keep the amount of stuff on the site in bare minimum. I just cant seem to figure it out, how can I do “pull down” type of menus. For example, like here https://lernen.scoutpress.de/ if you klick a link in the menu you’ll see how it’s reveals some sub categories. I would need to do this using a list of Pages.

    2. How can I have mixed list of Pages and Posts?
    Like this:

    PAGES ITEM
    PAGES ITEM
    PAGES ITEM
    POST ITEM

    So that, the Post item would look just the same as the Pages, with no gap or header between them. The goal for this is that, in this case, I need to have a list of “happenings” that I execute using Posts.

    WordPress cms, article is maybe handling these issues but I seem not be able to find it there.

    Thanks.

Viewing 8 replies - 1 through 8 (of 8 total)
  • 1. I don’t see any dropdowns on that siet you linked to

    2. Only if you edit/make that menu manually…

    On a second thought: Is “happenings” actually a category for your posts?

    Thread Starter hilj

    (@hilj)

    1. I don’t see any dropdowns on that siet you linked to

    Sorry, I should do my terminology home works better. What ever that list is called where you click an item and it reveals more items under it? Like here in the sidebar https://lernen.scoutpress.de/

    I’m trying to do this using Pages.

    I figured the second one.

    Thanks

    “Hierarchically” it might be under… but visually isn’t – that’s why it confused me.

    See if this helps:
    https://www.transycan.net/blogtest/2007/07/25/creating-a-two-level-menu-with-pages-part-1/

    Thread Starter hilj

    (@hilj)

    Thank you again!

    I still have on current_page_item problem.
    Something like this:

    PAGE ITEM1
    PAGE ITEM2
    SUB ITEM1
    SUB ITEM2

    I have set the current_page_item to be black, non actives are gray. But now when the PAGE ITEM2 is active, all the SUB ITEMs that appear under it have the current_page_item styling in them. How come is this?

    Thank you.

    I don’t know unless I see it. Did you check your source code to have an idea what exactly is the output of the code you applied?

    Thread Starter hilj

    (@hilj)

    It all looks good to me. The sub page items are class="page_item" and I can’t figure why the page_item doesn’t effect it.

    The css looks like this:

    .page_item a {
    	color: #c7baa3;
    	}
    
    .current_page_item a {
    	color: #333;
    	}
    
    .current_page_parent {
    	color: #333;
    	}

    And the browser shows the html like this:

    <li class="page_item current_page_item page_folder">
    <ul>
    	<li class="page_item">
    	</li>
    
    	<li class="page_item">
    	</li>
    	<li class="page_item">
    	</li>
    	<li class="page_item">
    	</li>
    	<li class="page_item">
    
    	</li>
    	<li class="page_item">
    	</li>

    thank you

    No, I don’t think that’s the exact output as you typed above…
    And you never said how did you build your menu, so I have no idea what’s happening on your site.

    Thread Starter hilj

    (@hilj)

    Hmm…
    This is the whole list as the browser puts it out. As you see the first <li>, doesn’t end until in the very end of the whole list, like it should be, as far as I know. But that makes also the SubItems to be exposed to the current_page_item styling. I dont know… how should this be built?

    <li class="page_item current_page_item page_folder">Item1
    <ul>
    	<li class="page_item">SubItem1
    	</li>
            <li class="page_item">SubItem2
    	</li>
    	<li class="page_item">SubItem3
    	</li>
    	<li class="page_item">SubItem4
    	</li>
    	<li class="page_item">SubItem5
            </li>
    	<li class="page_item">SubItem6
    	</li>
    </ul>
    </li>

    The list in my sidebar.php file, looks like this (theres also a list of categories and the abmin link):

    <li><h2><?php _e(); ?></h2>
    				<ul>
    				<?php wswwpx_fold_page_list  ('depth=2&sort_column=menu_order&title_li='); ?>
    				<?php wp_list_cats('depth=2&sort_column=menu_order&title_li='); ?>
    				</ul>
    			</li>
    			<li><h2><?php _e(); ?></h2>
    				<ul>
    					<small><?php wp_register(); ?></small>
    					<?php wp_meta(); ?>
    				</ul>
    			</li>

    But anyway, thanks a lot for your support so far.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘WordPress as cms, menus’ is closed to new replies.