This topic has 4 replies, 2 voices, and was last updated 9 years by cg.

  • Author
  • #86307
     cg
    Participant

    Is it possible to create a sticky socket – standard or transparent? I would like to use for email opt-in.  

    #86450
     Radu
    Moderator

    Hi,

    You can do socket sticky like this

    COPY CODE
    
    div#socket {
        position: fixed;
        bottom: 0;
        text-align: center;
        margin: 0 auto !important;
        width: 100%;
        z-index: 99;
    }
    

    If you want to have socked with transparency use opacity

    COPY CODE
    
    div#socket {
        position: fixed;
        bottom: 0;
        text-align: center;
        margin: 0 auto !important;
        width: 100%;
        z-index: 99;
        opacity: 0.6;
    }
    

    Add snippet to wp-admin -> theme options -> general options -> quick css

    Regards

    Radu

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #86518
     cg
    Participant
    This reply has been set as private.
    #86647
     Radu
    Moderator

    Hi,

    Please use this css

    COPY CODE
    
    @media (max-width: 600px) {
        div#socket {
            color:red !important;
            height:70px !important;
            position: fixed;
            display:none !important;
            bottom: 0;
            text-align: center;
            margin: 0 auto !important;
            width: 100%;
            z-index: 99;
        } 
    }
    

    Under 600px the next css rule will be applied, replace height:70px !important; with your adapted needs.

    Cheers

    Radu

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #87230
     cg
    Participant

    Thank you so much!!

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?