If i use this kind of technique to pull in links on my page would this hurt any SEO efforts or would it not have any negative impact? This is what i am going to use to pull in links on a bunch of pages for saving time and effort with updating articles and such. Thanks.
That would output as html, the php tags wouldn't be seen. But, I think I know what your trying to do and theirs a better way of doing it. Put your links in a file in html format, and wherever you want those links to appear simply put: <? include("file.php") ?>
If you are using PHP , then use the Include command instead of echo . The output is anyway a final PHP page which has the link written in simple html so it shouldn't hurt using ECHO either . Although with INCLUDE you can change the navigation by changing one file only. If that link is not in navigation , then I think you can use echo because it also "writes" the text/ html to the final page ... Just a moment late...Almost the same post. Regards Jeet
Well, it is not intended for main menu navigation but as an extra to point to other news stories. @Mdvaldosta So i can make a php file that holds for example this kind of coding: file.php and then place this code whereever i want to pull in the links on my page: Just to be sure
BTW, how should the code look like if i want the text to appear in bold and fontsize arial and fontsize 8? Oh yeah and color of my choosing?
No it wouldn't. Whatever you put in that file and call with a php includes will be output in html just like you put it there yourself. For ease of maintenance, I build my sites somewhat like this: doc type <title>my title</title> meta tags <? include("header-navigation.php") ?> my page content, blah blah <? include("footer.php") ?> Now, when I need to update my footer or add another navigation link or change my logo... I do it in 1 file only. Hell, I could change my whole design for a site with 10,000 pages editing just a couple files.
It's as simple as what you'd do if you put the links there yourself. For more clarification, what I do when I design a site is build the whole site in html. Then, I chop it up into a header, footer, navigation, and what's left is my content. Put them all in separate files. Then, I just build new content pages and call the header, footer, and navigation.