Home Forums WoodMart support forum Horizontal scroll on Mobile with Rankmath

Horizontal scroll on Mobile with Rankmath

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #637340

    scholtobos
    Participant

    Hi,

    I replaced the standard breadcrumb by overriding breadcrumb.php in the woodmart child theme with the Rankmath breadcrumb.

    Most important function part is:

    <em>if ( function_exists('rank_math_the_breadcrumbs') ) {
    	rank_math_the_breadcrumbs();
    	return;
    }</em>

    Everything is working well except for horzitontal scrolling on mobile devices.

    For example, with your standard settings hor-scroll is working on your demo pages:
    https://snipboard.io/AwHT1z.jpg

    By replacing the standard function with the rankmath breadcrumb the horizontal scrollbar is disappeared:
    https://snipboard.io/GTK9nr.jpg

    Could you please advise or help me out?

    Thanks in advance, Scholto

    • This topic was modified 15 hours, 22 minutes ago by scholtobos.
    • This topic was modified 15 hours, 21 minutes ago by scholtobos.
    #637528

    Luke Nielsen
    Keymaster

    Hello,

    Did you try to add the same CSS classes to your updated breadcrumbs?

    Thank you for your time.

    Kind Regards

    #637529

    scholtobos
    Participant

    No, what are these classes?

    #637569

    Luke Nielsen
    Keymaster

    Hello,

    Just add the code below in Theme Settings -> Custom CSS.

    .rank-math-breadcrumb {
        overflow-x: auto;
    }

    https://prnt.sc/SpNzMV-K4xEg

    Clear the cache and check how it works.

    Kind Regards

    #637575

    scholtobos
    Participant

    great, works like a charm. you can close the ticket.

    #637577

    Luke Nielsen
    Keymaster

    Hello,

    In case you need any additional help, I’d be more than happy to assist you.

    Wish you all the best.

    Kind Regards

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Horizontal scroll on Mobile with Rankmath’ is closed to new replies.