homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: not2easy

CSS Forum

Same text on multiple pages
Change text on multiple pages at the same time

5+ Year Member

Msg#: 4664273 posted 8:57 pm on Apr 18, 2014 (gmt 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?




WebmasterWorld Administrator 5+ Year Member Top Contributors Of The Month

Msg#: 4664273 posted 9:11 pm on Apr 18, 2014 (gmt 0)

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.


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

Msg#: 4664273 posted 9:48 pm on Apr 18, 2014 (gmt 0)

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.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved