Support » Themes and Templates » Twenty Eleven header image to a slider

  • Resolved YoussefSiblini

    (@youssefsiblini)


    Hi,
    I am new to WordPress, I want to change the top image in the showcase page to a slider, but if I changed that in the header.php the changes happens to all pages, how can I limit that changes to the showcase.php only?

    Jo

Viewing 10 replies - 1 through 10 (of 10 total)
  • esmi

    (@esmi)

    Forum Moderator

    Do not edit the Twenty Eleven theme. It is the default WordPress theme and having access to an unedited version of the theme is vital when dealing with a range of site issues. Create a child theme for your changes. Once your child theme is active, we should be able to help with the customisation.

    Hi,
    Thank you for your reply,
    I created a child theme and name it kabbanilifestyle.
    Inside this folder I created a style.css file and added inside it:

    [CSS moderated as per the Forum Rules. Please just post a link to your site.]

    but how will I achieve my goal by changing the header in the home page only (replacing the header image with a slider without effecting the other pages).

    Jo

    esmi

    (@esmi)

    Forum Moderator

    By creating a custom header.php template file in your child theme.

    Wouldn’t all the pages dynamically pick it and the original one.

    Sorry I am quite newb with all this.

    Jo

    I meant like the original one.

    esmi

    (@esmi)

    Forum Moderator

    Wouldn’t all the pages dynamically pick it and the original one.

    No. That’s how child themes work. The templates in the child are used first.

    OK, Just one last question and I can do it, Is there a way to tell the header.php that if it come from the static page do this else do some thing different.
    like:
    if(staticpage)
    {
    do this
    }
    else // which will be the other pages
    {
    do some thing else.
    }

    Jo

    esmi

    (@esmi)

    Forum Moderator

    THANK YOU, It is working, thank you sooooooo much, you are so helpful.

    Jo

    esmi

    (@esmi)

    Forum Moderator

    Glad I could help 🙂

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Twenty Eleven header image to a slider’ is closed to new replies.