Please or Register to create posts and topics.

Breadcrumbs at the top and bottom of the page

Hello,

I tried to find the answer by myself and also tried some css code but without success until now. I would like to display the breadcrumbs at the top AND at the bottom of a page in order to ease the user navigation when pages are long. How could I do that ?

Thanks in advance,

Regs,
Felipe

Hey @felipe,

can you please try the following code:

add_action('asgarosforum_bottom_navigation', 'add_breadcrumbs');

function add_breadcrumbs(){
    global $asgarosforum;

    $asgarosforum->breadcrumbs->breadcrumbs_links = array();

    $asgarosforum->breadcrumbs->show_breadcrumbs();

}

This should show second breadcrumbs on the bottom. But it’s not ideal since breadcrumbs are using an ID that should be unique. To get rid of that you would have to rewrite the whole function for the breadcrumbs and copy the CSS that applies to the breadcrumbs.

Need professional help with Asgaros Forum? Book an appointment with us at domra Web Solutions for setup and customization services. Learn more about our Toolbox for Asgaros Forum plugin to enhance your forum experience.

Hello @qualmy91

Thank you for your complete answer. I remember reading something about the duplicate breadcrumbs ID and issue about SEO. I will try the code just for fun but will avoid to use it in production. And I’m not able to rewrite the breadcrumbs function 🙂 At least for a moment.

Thanks a lot for your help,

Regs,
Felipe

You could rewrite the code of Asgaros Forum. But you will need two unique IDs and also copy the ID. You could also change the ID to a class and rewrite the CSS.

Need professional help with Asgaros Forum? Book an appointment with us at domra Web Solutions for setup and customization services. Learn more about our Toolbox for Asgaros Forum plugin to enhance your forum experience.