[Resolved] Social Media Secondary Menu

Home Forums Support [Resolved] Social Media Secondary Menu

Home Forums Support Social Media Secondary Menu

  • This topic has 15 replies, 3 voices, and was last updated 6 years ago by Tom.
Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #537862
    elsa

    Hi, how to make social media secondary menu similar to this site, both on desktop and mobile?

    #537935
    Tom
    Lead Developer
    Lead Developer

    That site is using the Secondary Navigation set to float right.

    Then they added icons to the menu using this method: https://docs.generatepress.com/article/adding-icons-to-menu-items/

    #538194
    elsa

    Hi Tom, how to make it 2 rows in desktop?

    While on mobile, how to make it appear in 1 row below header, since I already use slideout menu.

    #538248
    Tom
    Lead Developer
    Lead Developer

    Can you show me what you mean by 2 rows? Any examples?

    #538393
    elsa

    As follow,
    Menu 2 Rows

    While in mobile, how to put it 1 row below header.

    #538395
    elsa

    2_Rows

    #538396
    elsa

    This is 1 row below header

    1_Row

    #539230
    Tom
    Lead Developer
    Lead Developer

    I wonder if it would be better to use a plugin like Lightweight Social Icons inside the Header widget area?

    That way you should get two rows automatically.

    #539256
    elsa

    Hi Tom,
    Thanks I’ve already use the plugin and insert within the widget. I still haven’t found out how to make it 2 rows, there is no setting option in the plugin. Also how to make it appear on mobile phone?

    #539297
    Tom
    Lead Developer
    Lead Developer

    You can set the header widget width to make them appear in rows. The width depends on the number of items:

    .header-widget {
        max-width: 150px;
    }

    Where would you like them to appear on mobile?

    #539384
    elsa

    Hi Tom,
    I’d like to put it under header on mobile phone.

    #539904
    Leo
    Staff
    Customer Support
    #540014
    elsa

    Hi Leo,
    It moved the logo, but the widget didn’t appear.

    #540505
    Tom
    Lead Developer
    Lead Developer

    Since you’re using the mobile header, you’ll likely need to create a separate widget for it.

    1. Install and activate this plugin: https://en-ca.wordpress.org/plugins/widget-shortcode/

    2. Add a new Lightweight Social Icons widget to the area it creates, and grab the shortcode.

    3. In GP Hooks, do this in the “After Header” hook:

    <div class="mobile-social-icons hide-on-desktop hide-on-tablet">
        SHORTCODE IN HERE
    </div>
    #541036
    elsa

    Cool! working like a charm!

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