• fearRacious

    (@fearracious)


    Hello guys,

    I was wondering how can I achieve this..In one of a sample site which was used a default 2010 theme..They have a slideshow on homepage but on other pages its a different banner(just only one banner)..

    I was trying to accomplish the same..But doesn’t know how with the default 2013 theme.

    Here is the sample site that I was trying to make the same https://www.dentistchilliwack.com..I already added our slideshow and just wondering how can I add our banner image in all pages but not in our homepage..
    Here is our site dev..
    https://cochranedentists.com/

    Any idea on how to do this??

    Cheers!

Viewing 5 replies - 1 through 5 (of 5 total)
  • CrouchingBruin

    (@crouchingbruin)

    It looks like you can do this by creating a child theme, making a copy of page.php into your child theme, and putting a DIV around the entry title with a background image. You’ll notice on the Chilliwack site that the banner on all of the pages (besides the home page and the blog page) is the same, it’s just the page title that changes on the banner.

    Thread Starter fearRacious

    (@fearracious)

    Hi..Yes, I have created the child theme..But I know that theres a code for that…Cause the homepage is an slideshows but on other pages its only a static page..

    CrouchingBruin

    (@crouchingbruin)

    From examining their source code, it looks like they installed the Easing Slider Lite plugin and are using that slider only on their home page. They probably just copied a shortcode to their main page or edited their front-page.php file to include the code for the slider (installation instructions here).

    Thread Starter fearRacious

    (@fearracious)

    yeah…I know…What I need is that how you can show slideshow on homepage and static banners in other pages…It seems they used some conditional statement..Which is I need..

    And the theme they used is not the default 2013 but the old theme default..Maybe 2011 or 2012..

    CrouchingBruin

    (@crouchingbruin)

    I’m going to guess, because I can’t really see their code, but the way I would do it is to add the code for the slideshow in front-page.php, which gets called when the home page is to be displayed. Since TwentyThirteen does not have a front-page.php, you can create one by copying page.php.

    Then add the static banner to page.php, which displays the individual pages.

    That’s how to get the slideshow to only appear on the home page. front-page.php, if present, gets called when the front page of the site is displayed. page.php gets called on all other, non-single-post pages. To read more about different page templates, see this.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Adding banner to the pages but different in homepage’ is closed to new replies.