Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Feb 2011
    Posts
    40
    Member #
    26969
    Liked
    1 times
    I am setting up biography pages on my website for each exhibitor of the event I am involved with.

    Here is an exhibitors page: http://www.circus11.com/wordpress/?page_id=146

    On the main website sections 'HOME, LINE-UP, ABOUT' etc I want the alternating header images to stay, but on each exhibitors page I want to be able to select a certain header image to display the exhibitor's work.

    Does anyone know how I can do this? I think I may have to edit or input some code into the function.php

    Code:
        // Your changeable header business starts here
        define( 'HEADER_TEXTCOLOR', '000' );
        // No CSS, just an IMG call. The %s is a placeholder for the theme template directory URI.
        define( 'HEADER_IMAGE', '%s/images/headers/header_hoh.jpg' );
    
        // The height and width of your custom header. You can hook into the theme's own filters to change these values.
        // Add a filter to coraline_header_image_width and coraline_header_image_height to change these values.
        define( 'HEADER_IMAGE_WIDTH', apply_filters( 'coraline_header_image_width', 990 ) );
        define( 'HEADER_IMAGE_HEIGHT', apply_filters( 'coraline_header_image_height', 320 ) );
    
        // We'll be using post thumbnails for custom header images on posts and pages.
        // We want them to be 940 pixels wide by 198 pixels tall.
        // Larger images will be auto-cropped to fit, smaller ones will be ignored. See header.php.
        set_post_thumbnail_size( HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT, true );
    
        // Add a way for the custom header to be styled in the admin panel that controls
        // custom headers. See coraline_admin_header_style(), below.
        add_custom_image_header( 'coraline_header_style', 'coraline_admin_header_style', 'coraline_admin_header_image' );
    
        // ... and thus ends the changeable header business.
    
        // Default custom headers packaged with the theme. %s is a placeholder for the theme template directory URI.
        register_default_headers( array(
            'hoh' => array(
                'url' => '%s/images/headers/header_hoh.jpg',
                /* translators: header image description */
                'description' => __( 'HOH', 'coraline' )
            ),
            'girl-dog' => array(
                'url' => '%s/images/headers/header_girl_dog.jpg',
                /* translators: header image description */
                'description' => __( 'London Fashion Week', 'coraline' )
            ),
            'lilli' => array(
                'url' => '%s/images/headers/header_lilli.jpg',
                /* translators: header image description */
                'description' => __( 'London Fashion Week', 'coraline' )
            ),
            'icecream' => array(
                'url' => '%s/images/headers/header_icecream.jpg',
                /* translators: header image description */
                'description' => __( 'London Fashion Week', 'coraline' )
            ),
            'olivia01' => array(
                'url' => '%s/images/headers/header_olivia01.jpg',
                /* translators: header image description */
                'description' => __( 'London Fashion Week', 'coraline' )
            ),
            'olivia02' => array(
                'url' => '%s/images/headers/header_olivia02.jpg',
                /* translators: header image description */
                'description' => __( 'London Fashion Week', 'coraline' )
            ),
            'gold' => array(
                'url' => '%s/images/headers/header_gold.jpg',
                /* translators: header image description */
                'description' => __( 'London Fashion Week', 'coraline' )
            ),
            'cushions' => array(
                'url' => '%s/images/headers/header_cushions.jpg',
                /* translators: header image description */
                'description' => __( 'London Fashion Week', 'coraline' )
            ),
            'silk01' => array(
                'url' => '%s/images/headers/header_silk01.jpg',
                /* translators: header image description */
                'description' => __( 'London Fashion Week', 'coraline' )
            ),
            'silk02' => array(
                'url' => '%s/images/headers/header_silk02.jpg',
                /* translators: header image description */
                'description' => __( 'London Fashion Week', 'coraline' )
            ),
            'rosita' => array(
                'url' => '%s/images/headers/header_rosita.jpg',
                /* translators: header image description */
                'description' => __( 'London Fashion Week', 'coraline' )
            ),
            'new_eng02' => array(
                'url' => '%s/images/headers/header_new_eng02.jpg',
                /* translators: header image description */
                'description' => __( 'London Fashion Week', 'coraline' )
            )
        ) );
    }
    endif;

  2.  

  3. #2
    Member
    Join Date
    Feb 2011
    Posts
    40
    Member #
    26969
    Liked
    1 times
    :alien:

  4. #3
    WDF Staff AlphaMare's Avatar
    Join Date
    Oct 2009
    Location
    Montreal, Canada
    Posts
    4,570
    Member #
    20277
    Liked
    878 times
    Quote Originally Posted by Oliver, post: 223290
    :alien:
    Oliver - that's where conditionals come into play - here's a video explaining how they work, from WordCamp Montreal 2011.
    Good design should never say "Look at me!"
    It should say "Look at this." ~ David Craib


    http://digitalinsite.ca ~ my current site . . info@digitalinsite.ca ~ my email

    If you feel that someone's post helped you fix your problem, answered your question, or just made you feel better, feel free to "Like" their post. The "Like" link is at the bottom right of each post, along side the "reply" link. And if you are being helped here, try to help someone else - pass it on!


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 11:33 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com