Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1204573
    Draxion
    Participant

    Hi again,

    I’m wondering, how would I go about doing the following:

    1) center the footer menu
    2) Move social icons below the menu (instead of the top)

    Thanks!
    S

    #1204574
    Draxion
    Participant
    This reply has been marked as private.
    #1204592
    Prasant Rai
    Moderator

    Hello There,

    Thanks for writing in!

    1) To center footer menu, you can add this under Custom > CSS in the Customizer:

    ul#menu-main-2 {
    float: none !important;
    }

    2) To change footer social icon position will requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released.

    After that add following code in child theme function.php file:

    <?php if ( x_get_option( 'x_footer_social_display' ) == 1 ) : ?>
              <?php x_social_global(); ?>
            <?php endif; ?>

    Let us know how it goes.

    Thanks.

    #1204606
    Draxion
    Participant

    Thank you!

    The CSS worked perfectly. So thank you again.

    The code however, doesn’t seem to work or I’m doing something wrong… I’ve copied and pasted it into my x-child’s function.php file, but now the page won’t load. I can simply add that code straight to the file?

    Any ideas? thanks

    #1204639
    Rupok
    Member

    Hi there,

    It should work fine. However you can try to achieve this with CSS only. Let’s add this CSS :

    .x-colophon.bottom .x-nav {
      float: none;
      margin-top: -70px;
    }
    
    .x-colophon.bottom .x-social-global {
      margin-top: 30px;
    }

    Let’s take off the PHP code from functions.php

    Cheers!

    #1204652
    Draxion
    Participant

    Perfect… that worked. I like this solution better as it seems to be easier to adjust the spacing between the menu and social icons.

    Thanks again!
    S

    #1204671
    Rue Nel
    Moderator

    You’re welcome! We’re happy to help you out.
    If you need anything else we can help you with, don’t hesitate to open another thread.

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