[Resolved] how to display social/email icons on top right of every page

Home Forums Support [Resolved] how to display social/email icons on top right of every page

Home Forums Support how to display social/email icons on top right of every page

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #1192375
    Sam

    Please help us add social/email icon links on top right of every page in GeneratePress theme.

    Please see as they appear on the mentioned URL.

    #1192379
    Leo
    Staff
    Customer Support

    Hi there,

    You can use the header widget area:
    https://docs.generatepress.com/article/header-widget/

    With lightweight social icons plugin:
    https://en-ca.wordpress.org/plugins/lightweight-social-icons/

    #1193383
    Sam

    Hi there,

    I followed your instructions and added the social icons plugin and the mobile css code from https://docs.generatepress.com/article/header-widget/

    However, I am facing 2 issues on mobile where:

    1. there is no vertical gap between logo and the social icons. In other words, they are too close to each other on mobile.
    2. There is too much gap between the social icons and the navigation menu button.

    Please help resolve.

    Thanks.

    #1193393
    Leo
    Staff
    Customer Support

    1. Edit this existing CSS:

    .header-widget {
        -webkit-box-ordinal-group: 3;
        -moz-box-ordinal-group: 3;
        -ms-flex-order: 3;
        -webkit-order: 3;
        order: 3;
        margin-left: auto;
        margin-right: auto;
    }

    to this:

    .header-widget {
        -webkit-box-ordinal-group: 3;
        -moz-box-ordinal-group: 3;
        -ms-flex-order: 3;
        -webkit-order: 3;
        order: 3;
        margin-left: auto;
        margin-right: auto;
        margin-top: 20px;
    }

    2. Add this:

    @media (max-width: 768px) {
        .inside-header>:not(:last-child):not(.main-navigation) {
            margin-bottom: 0;
        }
    }
    #1193395
    Sam

    Thank you – very close.

    There is still too much vertical gap between the social icons and the navigation menu button.

    Can we use a negative value for:

    margin-bottom: 0;

    #1193397
    Sam

    Btw, I tried both – adding and removing – the below css and it doesn’t do anything:

    @media (max-width: 768px) {
        .inside-header>:not(:last-child):not(.main-navigation) {
            margin-bottom: 0;
        }
    }
    #1193399
    Sam

    Ok, I was able to fix it by specifying:

    margin-bottom: -20px;

    #1193404
    Sam

    All good.

    #1193432
    Leo
    Staff
    Customer Support

    Instead of the negative margin, maybe try reducing the header padding with mobile toggle activated instead:
    https://docs.generatepress.com/article/header-padding/

    #1193948
    Sam

    Thank you.

    #1193970
    Leo
    Staff
    Customer Support

    No problem 🙂

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