Code Snippet: Hiding Images on Article Page

Gwen Heimburg 6/12/09 12:12 PM

0 page views

This comes into play when you upload a video to an Article Page, and want to tease the video on your home or section pages (especially useful in the Spotlight Element).

Step 1: Create an Article with a Video Element.

Step 2: Upload a related image to the Article under the "Main Image" area.

Step 3: Insert the following code snippet into an HTML Element on the article page:

<style>
div.imageRight,
div.imagetop{display:none;}
</style>

That's it! Now you can paste the Article into a Spotlight Element or Teaser and the associated image will be automatically pulled in to the element. You can check out this method live on the Daily Reveille.

Comments

Read all comments

Add comment