• Resolved webcre8wpthemes

    (@webcre8wpthemes)


    Hello

    I would like to move the Social Networking Menu to the bottom of the page to where I want it (my measurement) probably above the .site footer container. Some advise please? How Ive done it in the past is delete the coding from the page at the top and paste it down to the bottom. You may have an easier way??

    WP8

Viewing 13 replies - 1 through 13 (of 13 total)
  • Theme Author Shaped Pixels

    (@shaped-pixels)

    Depends on where at the bottom?

    Thread Starter webcre8wpthemes

    (@webcre8wpthemes)

    To before the footer menu or above four bottom boxes, which ever I feel looks best. …. if poss ??

    It depends on which theme you are using if your theme have option Footer widget area you can simply place widgets in that widgets area respectively, or else if you are little bit idea about coding you can register widgets area in your child theme function.php and call it in footer.php file.

    Here Is link will help you: https://codex.www.ads-software.com/Function_Reference/register_sidebar

    Thread Starter webcre8wpthemes

    (@webcre8wpthemes)

    Im using Longevity theme

    Theme Author Shaped Pixels

    (@shaped-pixels)

    Assuming you are using a child theme because for this kind of change, you need to so you can keep getting theme updates and not lose changes.

    Copy the footer.php file into the child theme.

    Paste this code after:

    <?php // Social links
    if ( has_nav_menu( 'social' ) ) :
    echo '<div id="social-wrapper"><nav class="social-menu" role="navigation">';
    wp_nav_menu( array(
    'theme_location' => 'social',
    'depth'         => 1,
    'container'	=> false,
    'menu_class'    => 'social',
    'link_before'   => '<span class="screen-reader-text">',
    'link_after'    => '</span>',
    ) );
    echo '</nav></div>';
    endif;
    ?>

    …after this line:
    <footer id="colophon" class="site-footer" role="contentinfo">

    You will then probably need to adjust the CSS for this. One thing you will need is to change the text align from right to center.

    .social-menu {
        text-align: right;
    }

    Don’t forget to remove the social menu code from the header.php if you don’t want that there.

    Thread Starter webcre8wpthemes

    (@webcre8wpthemes)

    Thank you both. I will have a go and advise.

    Thread Starter webcre8wpthemes

    (@webcre8wpthemes)

    yes, thanks. It has moved my social bar down to the bottom, I just wish I could put a measurement (top margin) or something so I had more control over it, otherwise it is good.

    Theme Author Shaped Pixels

    (@shaped-pixels)

    You can always add margins, paddings, etc to elements. However, good to hear this one worked for you.

    Thread Starter webcre8wpthemes

    (@webcre8wpthemes)

    yes, Im getting the gist of it. What coding is this, cos it not the html that I am used to, sorry my ignorance as a matter of interest.

    Theme Author Shaped Pixels

    (@shaped-pixels)

    No worries, and no need to say sorry for anything… it took me a while to get into coding when I first got into web design. But when you do it enough, it does get easier. I’ve been doing this for many years, and I’m still learning things and always refining my theme code.

    Thread Starter webcre8wpthemes

    (@webcre8wpthemes)

    Thanks and Yes, I agree. I was going to get into web design, hence the name but have not in fact. I am only helping out my niece to do hers. It’s a great theme and I can see the absolute need for the child theme PRO which I will be purchasing, ill just try doing one inside page, but it looks good to go. Is this coding php???

    Thread Starter webcre8wpthemes

    (@webcre8wpthemes)

    I see it says so in a few places. How come you dont use html!!!

    Theme Author Shaped Pixels

    (@shaped-pixels)

    Themes in general are a mix of HTML, PHP, CSS, and sometimes Javascript. WordPress itself is based on PHP.

    As for my themes, if you look closely at many of the files, you will see HTML integrated with PHP (and vice versa). When I make a theme, I will always start off with HTML to get a layout, and then I begin adding PHP elements so it works with WordPress.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Move Social Networking Menu to bottom of page’ is closed to new replies.