Welcome to WebmasterWorld Guest from

Forum Moderators: not2easy

Message Too Old, No Replies

Same text on multiple pages

Change text on multiple pages at the same time

8:57 pm on Apr 18, 2014 (gmt 0)

Preferred Member

10+ Year Member

joined:Apr 1, 2005
posts: 369
votes: 0

Greetings to the coolest webmasters in town.

It's been a long, difficult winter (my computer was down for most of it), but I'm starting to work on updates for my website again.

Here's the current situation. It's necessary for some of the pages to have the same text (paragraphs) on them. The anchors are different, but the text on several of the pages is the same.

What I'd like to do is update all of the same text pages at once, as opposed to doing a copy and paste on each of them one by one.

Or in other words, I'd like to update one page, and have that carry to the other pages that need the same text.

Is there a way to do that?

9:11 pm on Apr 18, 2014 (gmt 0)

Moderator This Forum from US 

WebmasterWorld Administrator 5+ Year Member Top Contributors Of The Month

joined:Dec 27, 2006
votes: 48

There are ways to do that, yes. How - depends on your site and settings and hosting environment. I use little php includes on static html pages to keep thing fresh or to show information like navigation on unix type hosts.

To get the right kind of help for your specific situation, people would need to know those details. I couldn't help with IIS server hosting, but someone else could.
9:48 pm on Apr 18, 2014 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time Top Contributors Of The Month

joined:Apr 9, 2011
votes: 244

Since you posted in the CSS forum:

Yes, you can do it in CSS using the "content: " element. But this definitely involves using CSS in ways that God never intended-- a behavior that should be limited to me and javascript ;)

Reading between the lines, you don't currently use php. This is OK, because php has a wonderfully shallow learning curve. That is, you can learn two words of php, use it to do one thing, and defer the whole rest of the language until you need it.