Hi
Your First Query : –
For use home page image in every Page,kindly use below code in page.php File. then save and check it.
<?php if($current_options['slider_image']!='') {?>
<div class="main_slider">
<img alt="webriti" class="slider_img busi_slider_image" src="<?php echo esc_url($current_options['slider_image']); ?>">
<?php } ?>
</div
Second Query : –
For use Diffrent background and diifrent images in all pages use this type code.
<?php
if (is_page('PageName1'))
{
echo "code here";
}
elseif (is_page('PageName2'))
{
echo "same code here";
}
elseif (is_page('PageName3'))
{
echo "different code here";
}
?>
Like :- if (is_page(‘training’))
{
echo “code here”;
}
For more information refer this LINK
LINK2
Thanks.
Thread Starter
mehar
(@hariharan-sairam)
Hi Imran,
Thanks for your help.
The code you gave me for placing header image in different page did not work.
The client requested me to use different header image for each page. To be more specific, the place where the image appears in the home page, the client needs different image in each page. So I did the following:
In banner-header.php:
I commented the the_title() function. This made the page title to disappear from banner header part of the page.
Next, I added the following code in page.php:
<?php
if (is_page(‘About’))
{
$bannerimg = ‘consulting.jpg’;;
}
?>
But I could not get the image in the banner header.
Please can you advise me on how to do the following?
a) Different header image for each page which should appear in the same place where the home page image appears
or
b) different image for each page which can appear below the banner header
Thanks
Hari
Theme Author
webriti
(@priyanshumittal)
For managing background on each pageor posts use the plugin.
https://wordpress.org/plugins/search.php?q=background+plugin
Thanks
Priyanshu