• mehar

    (@hariharan-sairam)


    Hi,

    My name is Hari, I have recently started usiong Busiprof theme to build a website for my friend. Sitename is https://www.bxpertz.com

    Theme is awesome, except for few issues. Please can you tell me how to do the following?

    a) Home page image should be displayed in all pages. How do I do? If this is not possible then I would like to display an image for each page. Please tell me how I can do this?
    b) I would like to use different background colour and image for different pages. Please can you advise how to do?

    I will let other queries to fly as and when I come across

    Thanks

    Hari

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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://www.ads-software.com/plugins/search.php?q=background+plugin

    Thanks
    Priyanshu

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘BusiProfTheme-Queries’ is closed to new replies.