WordPress.org

Ready to get started?Download WordPress

Forums

Help adding Slider/Rotator (4 posts)

  1. ps1
    Member
    Posted 1 year ago #

    Hi,

    I am building a custom Twenty Eleven Child theme. Going good so far. I have a right sidebar and the content area. I have a image in the header and have successfully inserted a slider/rotator between the header image and the navigation bar. I now want to place a rotator/slider below the navigation bar but above the side bar and content section. I want it to be as wide as the header (1000px). I am using the posts page as the front page and only want this new slider/rotator to appear on the frontpage.

    I need some help as to what file and where I have to place the slider/rotator code to to this.

    Cheers

  2. LastForOne
    Member
    Posted 1 year ago #

    you can place it just after calling the get_header(); in index.php and give it an if(is_home()); that will display it only if its home.

    Note: if the content wrap starts in the header.php then you'll have to include the file before that wrap.

    Peace,
    LastForOne

  3. ps1
    Member
    Posted 1 year ago #

    Hi,

    Thanks for the reply. I have changed my mind in that I would now like the slider to be in the main content section side by side with the sidebar and not above it. With this on the posts frontpage only.

    I have tried using the above you have suggested but it did not work for me. I have no doubts I am doing something wrong as I just fudge code here and there without any real control or skill.

    I am using wow slider and this is the code I use

    [wowslider id="20"].

    In what file and where do I insert it?

    Thank you

  4. LastForOne
    Member
    Posted 1 year ago #

    thats a shortcode it will not work if you directly paste it in .php files go through the wowslider FAQ or Wiki and find out how to output your slider from within php files..

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.