• Resolved jasonvincik

    (@jasonvincik)


    I am a total idiot when it comes to PHP, and especially the inner-workings of the WordPress loop.

    I want to replace my header image with the slider, but just can’t figure out where in header.php to do this. It seems as though I’ve tried everything, but my old header image appears along with the promotion slider ??

    Header.php code located here: https://pastebin.com/BqC9nhkc

    Any help would be much appreciated!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Micah Wood

    (@woodent)

    Without seeing the actual layout of the site, I am not entirely sure what element(s) needs replacing.

    Thread Starter jasonvincik

    (@jasonvincik)

    Plugin Author Micah Wood

    (@woodent)

    Turns out you are looking at more than just ‘replacing’ an element. To remove the current image from your header, you will have to change your CSS file to disable the background image for the #header element.

    Next, you will want to add this to line number 66 of your header.php file:

    <?php echo do_shortcode('[promoslider id="header_slider" category="header-slider" width="975px" height="300px"]'); ?>

    You will then need to make further adjustments to your CSS to get the promotion slider to appear in the proper flow on the page.

    Finally, you will want to create a category called ‘Header Slider’ and assign any slider items to want to appear in the header to that category. If you don’t create the category, all the slider items will appear by default.

    Thread Starter jasonvincik

    (@jasonvincik)

    Genius! Thank you, it’s working and I was able to adjust the CSS and position it correctly.

    I sincerely appreciate your prompt assistance.

    I am having a similar problem…. my current header has a nivo slider installed into it, but my version of wordpress doesn’t support nivo slider, so I would like to replace that with the promotional slider.

    My header.php file’s present code is `

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Could u please help me how to edit it so that the promotional slider replaces either Nivo or any other option…

    Thanks

    Plugin Author Micah Wood

    (@woodent)

    Sorry, your code was moderated. Please paste a link to the code on pastebin. Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: Promotion Slider] How do I code this into my header?’ is closed to new replies.