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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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