• Resolved gobeyond

    (@gobeyond)


    Hello,

    I am building a web site that has 10 pages. I would like to have one unique picture as the banner picture for each page. I want to implement this outside the Loop so I don’t need to specify the picture inside the post. Do I need to use a custom field, and if so, how? Are there other ways to do this?

    Thanks in advance for your help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Well I guess an simple way would be like so:

    <img src="uploads/<?php the_title(); ?>-banner.jpg" alt="<?php the_title(); ?> banner" />

    that will produce:

    <img alt="About banner" src="uploads/About-banner.jpg"/>

    If on the page “About”.

    So you could make an image for each page and name them “the page name – banner” and upload them to the uploads folder.

    make sense?

    Thread Starter gobeyond

    (@gobeyond)

    Hi tugbucket,

    Thanks so much for the help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Customized Page Banner for Every Page’ is closed to new replies.