Forums

[resolved] get_footer ($name) isn't working for me... (5 posts)

  1. cmonk
    Member
    Posted 2 years ago #

    Hey all --

    I'm working on a website and having troubles with the home.php page. All of my other Pages on the site have a blue background, but the front page is white. When I do the normal get_footer command, I add a little rounded image to the bottom of the Content block, making it look nice.

    When, however, I do the command on the home.php page, it give me the blue where it should be white.

    I have created a new PHP page called footer-special.php and uploaded it correctly. The code inside is here.

    Now, on my home.php page, I changed the get_footer to:
    <?php get_footer ( $special ); ?>

    Nothing is changing for me.

    Also, in the style.css, I added a new value(?) entitled 'footerhome' where I change the location of the image to look correct.

    If you'd like to look at the site if I haven't described the problem well enough, you can find it here.

    Thanks a million for your help!

  2. kkarpieszuk
    Member
    Posted 2 years ago #

    <?php get_footer ('special'); ?>

  3. mirch
    Member
    Posted 2 years ago #

    thanks kkarpieszuk

  4. cmonk
    Member
    Posted 2 years ago #

    Thank you!

  5. jmbuytaert
    Member
    Posted 1 year ago #

    Does this also work for headers? like this:
    <?php get_header('special'); ?>

    Thanks for your help!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.