Special slider in hero section

Support Area Forums Finesse Special slider in hero section

Viewing 2 posts - 1 through 2 (of 2 total)
URL to the page in question: http://new.anderson-seo.com/
  • Author
    Posts
  • #35915
    Avatar photoJoe Anderson
    Participant

    Hi Bill,

    Question in regards to a slider revolution that I have on this site I am building for a client.
    Is there any way to take the slider shortcode and enter it in place of where the hero section is?
    Meaning I want to use this slider and not the hero slider but I want it to be all the way at the top behind the navigation menu like the normal hero section would be.

    Thanks for your time and help.

    Cheers
    Joe Anderson

    #35917
    Bill Robbins
    Moderator

    Hi Joe,

    You could probably do that. I would suggest making a child theme to place this change in to help with future theme updates. The file we need to change is header.php so you’d copy that file and add it to the child theme. Then edit it and find this spot (line 151):

    
    <?php if ( is_search() ) { ?>
    

    Right below that add this:


    (see support site for code to copy)

    You’ll need to place your slider shortcode inside the quotes where it says:

    
    do_shortcode( '' )
    

    so it’s something like this:

    
    do_shortcode( '[slider id="528"]' )
    

    or whatever the actual shortcode is and save your changes.

    This will only impact the home page. You’ll still need to select to include the hero on that page as well as the height as they will be taken into account.

    Hope that helps out,
    Bill

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Special slider in hero section’ is closed to new replies.