• rshaw876

    (@rshaw876)


    hi i would like to know how to add a admin login to the footer section of any wordpress theme instead of using the /wp-admin login url. Any help will be appreciate thanks in advance.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Brett

    (@bdeaton108)

    You can add a login/out link by using this template tag:

    <?php loginout(); ?>

    Thread Starter rshaw876

    (@rshaw876)

    k thanks. i am using the vantage theme is there a special place in the footer.php file that i am supposed to insert the code. because after i inert the code i get an error message on my page these are codes contained in my footer

    <?php do_action( ‘vantage_main_bottom’ ); ?>
    </div><!– .full-container –>
    </div><!– #main .site-main –>

    <?php do_action( ‘vantage_after_main_container’ ); ?>

    <?php do_action( ‘vantage_before_footer’ ); ?>

    <?php get_template_part( ‘parts/footer’, apply_filters( ‘vantage_footer_type’, ” ) ); ?>

    <?php do_action( ‘vantage_after_footer’ ); ?>

    </div><!– #page-wrapper –>

    <?php do_action(‘vantage_after_page_wrapper’) ?>

    </body>
    </html>

    Brett

    (@bdeaton108)

    You could insert it before the </div><!-- #page-wrapper -->.

    Thread Starter rshaw876

    (@rshaw876)

    yeah it doesn’t work i still keep getting an error message

    Brett

    (@bdeaton108)

    what error message are you experiencing?

    Thread Starter rshaw876

    (@rshaw876)

    this one
    Fatal error: Call to undefined function loginout() in /home2/rshaw876/public_html/ImpecDigital.Com/wp-content/themes/vantage/footer.php on line 15

    Brett

    (@bdeaton108)

    My bad… I gave you the wrong template tag! The tag is:

    <?php wp_loginout(); ?>

    SORRY!

    Thread Starter rshaw876

    (@rshaw876)

    ok . i just inserted it before the</div><!– #page-wrapper –>.but nothing happens it just makes my navigation bar scroll down to the footer

    Brett

    (@bdeaton108)

    Okay… Looking at the footer.php file in between get_template_part and the do_action Place in the code below:

    <div style="margin:0 auto 20px;width: 200px;text-align:center;"><?php wp_loginout(); ?></div>

    You might also like to look at the “arts/footer.php” page template. It has the code for the theme attribution. Remember, if you were to edit any of these files, then choose to upgrade the theme later, those changes would be erased.

    Thread Starter rshaw876

    (@rshaw876)

    yeah it still doesn’t work is there a plugin i could use

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘How do i add an admin login link to footer in any wordpress theme?’ is closed to new replies.