Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #983317
    charliesa
    Participant

    I added social buttons to the right of the navbar like this:

    <?php

    // =============================================================================
    // VIEWS/GLOBAL/_NAVBAR.PHP
    // —————————————————————————–
    // Outputs the navbar.
    // =============================================================================

    $navbar_position = x_get_navbar_positioning();
    $logo_nav_layout = x_get_logo_navigation_layout();
    $is_one_page_nav = x_is_one_page_navigation();

    ?>

    <?php if ( ( $navbar_position == ‘static-top’ || $navbar_position == ‘fixed-top’ || $is_one_page_nav ) && $logo_nav_layout == ‘stacked’ ) : ?>

    <div class=”x-logobar”>
    <div class=”x-logobar-inner”>
    <div class=”x-container max width”>
    <?php x_get_view( ‘global’, ‘_brand’ ); ?>
    </div>
    </div>
    </div>

    <div class=”x-navbar-wrap”>
    <div class=”<?php x_navbar_class(); ?>”>
    <div class=”x-navbar-inner”>
    <div class=”x-container max width”>
    <?php x_get_view( ‘global’, ‘_nav’, ‘primary’ ); ?>
    <div class=”custom-social”><?php x_social_global(); ?></div>
    </div>
    </div>
    </div>
    </div>

    <?php else : ?>

    <div class=”x-navbar-wrap”>
    <div class=”<?php x_navbar_class(); ?>”>
    <div class=”x-navbar-inner”>
    <div class=”x-container max width”>
    <?php x_get_view( ‘global’, ‘_brand’ ); ?>
    <?php x_get_view( ‘global’, ‘_nav’, ‘primary’ ); ?>
    <div class=”custom-social”><?php x_social_global(); ?></div>
    </div>
    </div>
    </div>
    </div>

    <?php endif; ?>

    The issue I have is I can’t make the color change when I hover over the buttons.

    These are the social buttons to the right of the Uber menu Navbar.

    #983321
    charliesa
    Participant

    URL: http;charliesandner.com

    #983322
    charliesa
    Participant
    #983495
    Prasant Rai
    Moderator

    Hello There,

    Thanks for writing in!

    You can add this under Custom > CSS in the Customizer:

    .custom-social .x-social-global a:hover {
        color: #ddd !important;
    }

    Please change color code as per your requirement.

    Thanks.

    #983606
    charliesa
    Participant

    I suspect this would work fine, except I’m using Uber Menu here. This CSS does NOT work.

    #983654
    Lely
    Moderator

    Hi There,

    Please also update this:

    .custom-social {
        display: block;
        position: absolute;
        right: 0;
        margin-top: -30px !important;
     }

    To this:

    .custom-social {
        display: block;
        position: absolute;
        right: 0;
        margin-top: -30px !important;
        z-index: 999;
    }

    The social buttons is covered by ubermenu container. Above change will make it forward and then the hover will work.

    Hope this helps.

    #983669
    charliesa
    Participant

    Thank you (stack order…so I’m stupid). At any rate, thanks again.

    Works perfectly.

    #983697
    Lely
    Moderator

    You’re welcome Charlie!

    Cheers!

  • <script> jQuery(function($){ $("#no-reply-983317 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>