Jump to content

Code to echo link title on page?


linkjg

Recommended Posts

Hello,

This is my first post to the board and I'm a newbie with PHP!

I have a menu in navigation.php that is called in index.php by:

<?php include("navigation.php"); ?>

I have a spot on my index.php that I would like the name of the link to also appear on that corner of the page, like a page header.  So, if the "Home" link is selected, "Home" appears above the welcome article.

Is there a PHP method for placing the link name also on a specified corner of the index page?

Thanks for your help!
Link to comment
Share on other sites

I guess it depends on how your layout is done.

When you want to add 'Home' to your header.  Do you mean you have a navigation bar at the top?  Or a bread crumb type trial?

Are you using a column type layout? 2-column or 3-column layout?


Link to comment
Share on other sites

Hi Sharkbait,

I have a 2 column layout... header top, footer bottom, menu left, content right.

The menu has something like:

Home
Stuff 1
Stuff 2

I have a blank row over the content on the right which is blank. When a user clicks on the link "home", I'd like the text "home" to appear in the empty bar.

Thanks for your help!
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.