Site logo

[Resolved] Social Share buttons only in post and fixed in sidebar

Home Forums Support [Resolved] Social Share buttons only in post and fixed in sidebar

Home Forums Support Social Share buttons only in post and fixed in sidebar

Viewing 15 posts - 16 through 30 (of 35 total)
  • Author
    Posts
  • #830874
    David
    Staff
    Customer Support

    Ok, so these next steps:

    1. Go to Appearance > GP Social Settings –> Settings Tab. And Click Disable Hook.
    2. Add this CSS:

    
    #gp-social-share {
        position: sticky !important;
        position: -webkit-sticky !important;
        flex-direction: column;
        margin-left: -45px !important;
        top: 80px;
    }
    .single-post .entry-header {
        margin-top: -128px;
    }
    
    .single-post.separate-containers .inside-article {
        padding-left: 60px;
    }
    @media (max-width: 768px) {
        .single-post.separate-containers .inside-article {
            padding-left: 60px;
        }
    }
    #830890
    Santa

    Thanks!

    It made them vertical, thats great!
    When adding the CSS it shows (!) where the sticky is written.
    It also appears that when its -128 the site text is too high.
    Can the icons be changed from sticky to fixed? But when scrolled to top, they could stop scrolling where the white background ends? Is it possible and how hard could it be to do it?

    Thank you for your help!

    #830903
    David
    Staff
    Customer Support

    I am getting Server Unreachable again….

    #833912
    Santa

    Thanks for letting me know. I have added a domain name, it should be possible to reach it now.

    #833917
    David
    Staff
    Customer Support

    Can you add back the code etc…
    The ! beside the Sticky property in Additional CSS can be ignored. The Customizers lint (code checker) doesn’t support 100% of CSS3 properties but it works.

    #833927
    Santa

    Thanks, yes the code works. How to make it sticky and more on left?

    #833930
    David
    Staff
    Customer Support
    #833942
    Santa

    Thank you very much!
    I guess the comments box is fine and will stay the same.

    Thank you for helping!

    #833956
    David
    Staff
    Customer Support

    you’re welcome.
    Sorry missed the comments request – making sidebars appear before it on mobile is really really difficult it would require serious custom development… sorry

    #834643
    Santa

    Hi! Maybe you can help with one more question.

    I have an image on the right sidebar that I would like to be sticky as well when scrolled down.
    How to do it? And how to remove website field from comments?

    Thank you!

    #834684
    David
    Staff
    Customer Support

    Tricky one to make image stick as well – but try this:

    @media (min-width: 1024px) {
        .site-content {
            position: relative;
        }
    
        #right-sidebar {
            position: absolute;
            top: 0;
            right: 0;
            bottom: 0;
        }
    
        .inside-right-sidebar {
            height: 100%;
        }
    
        .inside-right-sidebar>p {
            position: -webkit-sticky;
            position: sticky;
            top: 80px;
        }
    }

    Remove comments URL field – Tom provides a PHP snippet here:

    https://generatepress.com/forums/topic/how-to-remove-url-field-from-wordpress-comment-form/#post-589904

    #834777
    Santa

    Thank you, it works!

    #834784
    David
    Staff
    Customer Support

    You’re welcome

    #914567
    JUAN JOSE GONZALEZ

    Hello! I am interested in the same solution.. I´d like something like this in one of the Generatepress´s themes: https://generatepress.com/site-library/

    To be more specific, I am using GP´s Merch template. I am trying to get it through GP Social Settings, but I don´t get it.

    Could you please help me with this issue? Thanks in advance

    #914573
    JUAN JOSE GONZALEZ

    I am trying that social share buttoms be situated in the same place as in GP´s Liberte theme posts, but using GP´s Merch template. Is it that possible?

Viewing 15 posts - 16 through 30 (of 35 total)
  • The topic ‘Social Share buttons only in post and fixed in sidebar’ is closed to new replies.