Jump to content

How to block something from showing?


vinnier

Recommended Posts

Hi,

 

Here is the situation, I have php script implemented into 2 pages, on one page I need it the way it is cause it's the main page but on the other page I would like to use only a part of it, sort of a preview.

How do I block the text from showing? Just so I can copy,paste how of the text in the script and it won't show on the preview webiste.

 

Thanks in advance.

Link to comment
https://forums.phpfreaks.com/topic/195198-how-to-block-something-from-showing/
Share on other sites

I don't think I understand what you mean but could some of the content have a class (notonpreview or something) and then on the preview page you have a stylesheet which has display:none for that class?  As the main page doesn't have that stylesheet it would show all the content and ignore the class=notforpreview.

Looks like you understood me correctly :) Thanks for the reply and it would actually work and I was thinking about something similar myself but the problem with it is that the script is loaded from another site form the script provider so I can't edit it.

That's why I am looking for a way to block the plain text from preview...

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.