• Resolved leilaaan

    (@leilaaan)


    how to I can add a section bottom of large-3 div (navigation) in account page?
    I use hook(woocommerce_after_account_navigation), but this is not work.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Mirko P.

    (@rainfallnixfig)

    Hi @leilaaan,

    In order to add a bottom section to your My Account page you could use a snippet like this:

    add_action( 'woocommerce_after_account_navigation', 'custom_content_after_account_navigation' );
    function custom_content_after_account_navigation(){ 
        $html = '<div><h3>Section bottom</h3>'; 
        $html.='<li><a href="link">Navigation Link 1</a></li>'; 
        $html.='<li><a href="link">Navigation Link 2</a></li></div>'; 
        echo $html; 
    }
    

    The snippet can be added to your functions.php file on your child theme or by using a plugin like Code Snippets.

    Hope this will put you on the right track, but if you need further help with customization I can recommend one of the customization experts listed at https://woocommerce.com/customizations/.

    Thanks.

    Thread Starter leilaaan

    (@leilaaan)

    this code not work, don’t add any thing.

    Mirko P.

    (@rainfallnixfig)

    Hi again,

    this code not work, don’t add any thing.

    The snippet is actually working pretty well and is adding custom HTML content at the bottom of the “My Account” page, as you can see here:


    Link to image: https://i.imgur.com/mT1yQ5W.png

    If that’s not working on your site, I could only think you have a customized “My Account” page and therefore should look for a customized solution. You could then hire a developer or one of the customization experts listed at https://woocommerce.com/customizations/.

    Cheers.

    Mirko P.

    (@rainfallnixfig)

    Hi there,

    We haven’t heard from you in a while, so I’m going to mark this as resolved. Feel free to start a new thread if you have any more questions!

    Cheers.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘add section bottom of account page navigation’ is closed to new replies.