www.webdeveloper.com
Results 1 to 2 of 2

Thread: Help changing dynamic php code in wordpress theme customization

  1. #1
    Join Date
    Jan 2014
    Location
    California
    Posts
    4

    Help changing dynamic php code in wordpress theme customization

    Hi.

    I am trying to edit several pages to have different header images in them. For example I want the home page to display the code listed below but I want the about page to display a different image in the logo-area. This needs to happen for several different page/image combinations and I don't have the time to learn php before my deadline. Can anyone help me with this?

    I have tried overwriting the code with plain html and it isn't working. I also tried removing the dynamic data call and replacing it with a direct image link. Ugh. I am stuck any ideas?

    This is an elegant theme template and they will not help with this. I tried that already. :| Please help.



    <div class="container">
    <div id="logo-area"<?php if ( 'on' == $use_header_banner ) echo ' class="header_banner clearfix"'; ?>>
    <a href="<?php echo esc_url( home_url( '/' ) ); ?>">
    <?php
    $color_scheme = et_get_option( 'lucid_color_scheme', 'Orange' );
    $color_scheme = ( 'Orange' == $color_scheme ) ? '' : '-' . strtolower( $color_scheme );
    $logo = ( ( $user_logo = et_get_option('lucid_logo') ) && '' != $user_logo ) ? $user_logo : get_template_directory_uri() . "/images/logo{$color_scheme}.png";
    ?>
    <img src="<?php echo esc_url ( $logo ); ?>" alt="<?php echo esc_attr( get_bloginfo('name')) ; ?>" id="logo"/>
    </a>

    <?php if ( 'on' == $use_header_banner ){ ?>
    <div id="top_banner">
    <?php
    if ( ( $lucid_468_header_adsense = et_get_option('lucid_468_header_adsense') ) && '' != $lucid_468_header_adsense ) echo( $lucid_468_header_adsense );
    else { ?>
    <a href="<?php echo esc_url(et_get_option('lucid_468_header_url')); ?>"><img src="<?php echo esc_attr(et_get_option('lucid_468_header_image')); ?>" /></a>
    <?php } ?>
    </div> <!-- end #top_banner -->
    <?php } ?>
    </div>
    </div>

  2. #2
    Join Date
    Jan 2014
    Location
    California
    Posts
    4
    Okay... Maybe I am asking the wrong question. Is there anyone available and willing to look at the site I am building and help me make the changes I am trying to make?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles