Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #564554

    Hello Enfold,

    Please help me stick to the bottom a color section.
    This will move with the page (being always in the visible page bottom) when someone scrolls down!
    We want to use this to improve conversions!

    Thank you!

    #564620

    Hey!

    Try adding this at the very end of your theme / child theme functions.php file:

    add_action('wp_footer', function() {
    	?>
             <div class="sticky_content">Content</div>
            <?php
    });

    And add this to Quick CSS:

    .sticky_content{
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 30px;
    }

    Cheers!
    Josue

    #564839

    Hello,

    Thank you for replying. I don’t know code but I guess your solution won’t help me. I need to stick to bottom some color sections which I will select.
    How can I make a specific color section to stick to bottom.

    Thanks!
    Alexandru

    #564861

    Hey!

    Would you like to make a Color Section element sticky? If so, please edit it and give it a unique ID – http://kriesi.at/documentation/enfold/wp-content/uploads/sites/2/2013/12/color-section-ID.png and then change the code to following one

    #your-custom-id {
    position: fixed;
    bottom: 0;
    width: 100%;
    }

    Cheers!
    Yigit

    #565271

    Hey :)

    Thank you. Is almost good. I guessed i don’t need anymore to modify functions.php.
    Is working your solution but is displayed under other content (many times is not visible). I need it to be over any other content.

    Thanks!

    Alexandru

    #565273

    Hey!

    Try adding z-index:

    #your-custom-id {
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index:100;
    }

    Best regards,
    Josue

    #565276

    Perfect, Thank you!

    #565278

    You are welcome, glad we could help :)

    Regards,
    Josue

    #565301

    Sorry, last questions.

    I need to keep it up to footer and socket. So, when you scroll down to bottom it should stop until footer.
    Otherwise, socket and footer are not visible.

    How to make full screen layer slider to be on top of this section?

    Thank you!!

    • This reply was modified 8 years, 10 months ago by AlutermGroup.
    #565699

    Hi!

    Can you please post the link to your page? I checked your pages in your main menu but could not find the correct page

    Best regards,
    Yigit

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.