• Resolved sara1086

    (@sara1086)


    I made subpages for my photos page, but I want it so that when I click on a subpage, the other subpages stay there and people won’t have to press “back” to see the other subpages.
    Anyone know how I can do this?

Viewing 15 replies - 1 through 15 (of 15 total)
  • I’m not sure, but my guess is that your pages have a markup and a part in your style.css and subpages don’t. Could you see if your theme has a pages.php and a sub_pages.php (or something similar)? Your pages.php has a subpage navigation:

    <!-- this displays the subpages - if any - in that red menu-->
    		    <div id="sub_page_menu">
                                        <ul>
    			            <li class="page_item"><a href="https://johnmorgan.ca/?page_id=77" title="Various Events">Various Events</a> </li>
    <li class="page_item"><a href="https://johnmorgan.ca/?page_id=69" title="Infrastructure">Infrastructure</a> </li>
    <li class="page_item"><a href="https://johnmorgan.ca/?page_id=67" title="Family">Family</a> </li>
    <li class="page_item"><a href="https://johnmorgan.ca/?page_id=68" title="On the Trail">On the Trail</a> </li>
    		            </ul>
                       	    </div>

    A subpage doesn’t, it only gives:

    <!-- this displays the subpages - if any - in that red menu-->
    		    <div id="sub_page_menu">
                        	    </div>

    Now that I look at the code, it can’t be the stylesheet (<div id="sub_page_menu"> refers to that part in the style.css), so I can only think of the sollution that you have something of a subpage.php which lacks the get_menu or whatever argument.

    So, have a look at the page.php and see what calls for the menu and check if you also have a php file for the subpages and see if you miss something.

    So this menu is actually called for in your header.php

    <!-- this displays the subpages - if any - in that red menu-->
    <div id="sub_page_menu">
    <?php if(wp_list_pages("child_of=".$post->ID."&echo=0")) { ?>
    <ul>
    <?php wp_list_pages("title_li=&child_of=".$post->ID."&sort_column=menu_order&show_date=modified&date_format=$date_format");?>
    </ul>
    <?php } ?>
    </div>

    What I don’t understand is why the submenu is not always called for. It seems like your subpages are treated like a page that has no subpages (which I can imagine). But I can’t tell you how to solve that. It can’t be too hard I guess, but a more ‘code-knowing-person’ would have to jump in and make a suggestion.

    Thread Starter sara1086

    (@sara1086)

    ok, thanks anyway

    Thread Starter sara1086

    (@sara1086)

    ANY “CODE-KNOWING” PEOPLE AROUND? haha

    He, no making fun of my expression! It was the best that I could come up with when typing my previous answer. I probably should have written “tech savvy”, but that’s an awfull term.

    Thread Starter sara1086

    (@sara1086)

    I’m not making fun, I’m actually asking if anyone can help me who is a “code-knowing” person. ??

    Hm, and bumping this thread doesn’t attract their attention either…
    Could you just for the sake of it, try to make subsubpages (empty if necessary) just to see what happens?

    Thread Starter sara1086

    (@sara1086)

    I was wondering if you could answer another question for me…
    last week, when i was having trouble uploading pictures onto my website, you told me to type
    <img src=”https://www.johnmorgan.ca/images/NameOfPicture.jpg&#8221; />
    into the text editor and go from there, since the drop-down menu with things like “Using Thumbnail”, etc. wasn’t working.
    Is there anything I could type that would allow people to click on the picture so that it opens into a bigger version?
    Right now no one is able to click on the pictures.

    Sure, that would be:
    <a href="https://www.johnmorgan.ca/images/NameOfPicture.jpg" target="_blank"><img src="https://www.johnmorgan.ca/images/NameOfPicture.jpg" /></a>
    This is just basic html. a href says “this is a link”, the address could be Google, a friend or just the address of the image on the server. Target blank means “open link in new window”. Then you get the code to tell the browser to display the image (image source is etc.) and at the end you close the “a” argument (a href) otherwise everthing coming after it will have the link to the image.
    These are things that you can even make with Frontpage or whatever, view the source and paste them in your editor.

    Thread Starter sara1086

    (@sara1086)

    Thanks so much! ??

    Too bad that nobody has any suggestions about that subpages thing.

    Thread Starter sara1086

    (@sara1086)

    Yes, i tried many times to get it working but i ran out of things to try.

    Thread Starter sara1086

    (@sara1086)

    …could you help me with another thing?
    I type in <img src=”https://www.johnmorgan.ca/images/NameOfPicture.jpg&#8221; /> if I want the picture to just appear on my website, and I type <img src=”https://www.johnmorgan.ca/images/NameOfPicture.jpg&#8221; />
    if I want it so that people can click on the picture and open up the picture on seperate page. How can I link a picture to a website?
    I’m trying to make an online photo album, because of the trouble I’m having with subpages, and I want to make it so that when someone clicks on a certain picture it will take them to that photo album.
    Can you help me out?

    Thread Starter sara1086

    (@sara1086)

    sorry I type something else if I want the picture to be linked to itself (you told me that yesterday) haha.

    Thread Starter sara1086

    (@sara1086)

    Never mind I figured it out ! ??

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Subpages for WP 2.0.11’ is closed to new replies.