Viewing 9 replies - 1 through 9 (of 9 total)
  • I checked the home page, and the Become a Member link worked fine, linking to:

    http://tapc.ca/become-a-member/

    Thread Starter erika_conn

    (@erika_conn)

    What I meant was, without opening a new window. In other words, click “Become a member” and the document opens. Is there a way to do that?

    Try this.

    Open header.php of your theme (or the file where you have the menu list), and hard code the link to the document.

    So, instead of having

    <li class="page_item page-item-407 current_page_item"><a href="http://tapc.ca/become-a-member/" title="Become a Member">Become a Member</a></li>

    you will have

    <li class="page_item page-item-407 current_page_item"><a href="http://tapc.ca/wp-content/uploads/2008/11/appform1.pdf" title="Become a Member">Become a Member</a></li>

    That should open up the pdf file right away, when clicking on the button, instead of taking you to the become a member page.

    Thread Starter erika_conn

    (@erika_conn)

    I feel like a fool but I can’t seem to find anything resembling what you typed. I don’t think I have a menu. the only thing I can find that even has the word “menu” in it is Page Template:
    <?php get_header();?>
    <div id=”main”>
    <div id=”content”>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <?php if(function_exists(‘wp_print’)) { print_link(); } ?>
    <div class=”post” id=”post-<?php the_ID(); ?>”>
    <h2 class=”title”>” rel=”bookmark”><?php the_title(); ?></h2>
    <div class=”meta”>
    <p>Published by <?php the_author_posts_link() ?> <?php edit_post_link(); ?></p>
    </div>
    <div class=”entry”>
    <?php the_content(__(‘Continue Reading »’)); ?>
    <?php wp_link_pages(); ?>
    <?php $sub_pages = wp_list_pages( ‘sort_column=menu_order&depth=1&title_li=&echo=0&child_of=’ . $id );?>
    <?php if ($sub_pages <> “” ){?>
    <p class=”meta”>This page has the following sub pages.</p>

      <?php echo $sub_pages; ?>

    <?php }?>
    </div>

    </div>
    <?php endwhile; else: ?>
    <p><?php _e(‘Sorry, no posts matched your criteria.’); ?></p>
    <?php endif; ?>
    <p align=”center”><?php posts_nav_link(‘ – ‘,’« Prev’,’Next »’) ?></p>
    </div>
    <?php get_sidebar();?>
    <?php get_footer();?>

    I’ve looked and looked. I don’t know where any of the pages would be entered, come to think of it.
    Where else can I look?

    @erika

    Let me look at your theme and I will find out.

    OK, in header.php of the seashore folder in your themes, you will find

    <div id="menu">
    		<ul>
    			<li <?php if(is_home()){echo 'class="current_page_item"';}?>><a href="<?php bloginfo('siteurl'); ?>" title="Home">Home</a></li>
    	     <?php wp_list_pages('title_li=&depth=1');?>
    		</ul>
    	</div>

    Then, hard code the link to the external pdf file, to create another menu tab like this

    <div id="menu">
    		<ul>
    			<li <?php if(is_home()){echo 'class="current_page_item"';}?>><a href="<?php bloginfo('siteurl'); ?>" title="Home">Home</a></li>
    <li class="page_item page-item-407 current_page_item"><a href="http://tapc.ca/wp-content/uploads/2008/11/appform1.pdf" title="Become a Member">Become a Member</a></li>
    	     <?php wp_list_pages('title_li=&depth=1');?>
    		</ul>
    	</div>

    Check the tabs, and if you see a double “become a member” tab, make sure the one with the pdf works, and then unpublish the ‘become a member’ page, to take it off the menu list.

    See if this works for you.

    Thread Starter erika_conn

    (@erika_conn)

    Oh, how wonderful of you. It works like a charm. Just beautifully.
    Thank you so very much for all your help and patience.

    Thread Starter erika_conn

    (@erika_conn)

    I hate to bother you again. I have to do the same as before but with a different Page heading. This time it’s “Events”

    I tried doing what I did before but only managed to screw it up.

    http://tapc.ca

    If you click on Events, you will see there is nothing there. I need to have it open with another .pdf file.

    Can you help me again?

    Thread Starter erika_conn

    (@erika_conn)

    Update, update. Never mind. I figured it out.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Turn Page Title into Link’ is closed to new replies.