/    Sign up×
Community /Pin to ProfileBookmark

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>

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@bpwdauthorJan 22.2014 — 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?
×

Success!

Help @bpwd spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...