Viewing 7 replies - 1 through 7 (of 7 total)
  • You could use the Real-Time Find and Replace plugin to modify the HTML/text before it’s delivered to the user’s browser. It works without modifying theme files or database content. I created this plugin just for this sort of situation.

    Thread Starter dessy.raza

    (@dessyraza)

    This seems like a good plugin. I played around with it but I still don’t see how I can remove the text from one page but keep it on another. Any ideas?

    Find the snippet of code on each page that generates the message you want to remove. The code is slightly different on each page so with the plugin specify the version you don’t want in the Find box and leave the Replace box empty.

    Once you save the rule, view the 2 pages to make sure things are working as expected.

    Why not use something like;

    <?php if(is_page(“about”) { ?>
    Show some special text here for about page
    <?php } else { ?>
    Show text here for all other pages
    <? } ?>

    Something like so would work too.

    The less plugins you use the better, the least something will break in future and website will be faster.

    Thread Starter dessy.raza

    (@dessyraza)

    I guess the problem is when I go to the “Our People” page, I don’t see any coding. I can pull up the source and see everything but am not sure where to go to edit it. I’ve tried going to the editor and can’t find it.

    @dessy.raza Sorry since CureWP joined the conversation I can’t tell if you’re asking me the question or CureWP. Could you clarify for which approach you’d like additional detail?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Removing Text from One Page but Keeping It on Another’ is closed to new replies.