[Resolved] how to get rid of breadcrumb on mobile devices

Home Forums Support [Resolved] how to get rid of breadcrumb on mobile devices

Home Forums Support how to get rid of breadcrumb on mobile devices

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1585140
    PING Yao

    Hi there,
    I use code to have breadcrumb from this forum by support team
    But I do not wanna breadcrumb be shown on mobile device
    https://tiedown.com.tw/product/retractable-motorcycle-straps/

    Would you please tell me how to do that
    thanks
    Best regards,
    Henry

    #1585212
    Ying
    Staff
    Customer Support

    Hi Henry,

    Can you first confirm that you are adding the breadcrumb using this method?
    https://docs.generatepress.com/article/adding-breadcrumbs/#using-hooks-element

    Let me know 🙂

    #1585229
    PING Yao

    Hi Ying,

    #1585272
    Ying
    Staff
    Customer Support

    It’s never a good idea to modify the theme’s function.php file, as the modifications will be erased during updates.

    Using the hook element is the best method to add the breadcrumbs:
    https://docs.generatepress.com/article/adding-breadcrumbs/#using-hooks-element

    In step 2, add your short code like this:

    <div class="grid-container grid-parent hide-on-mobile">
        yoast short code here
    </div>

    In step 3, use generate_after_header instead of generate_before_entry_title.

    In step 5, select Entire site instead of Post.

    Let me know if it works!

    #1585362
    PING Yao

    Hi Ying,

    Do you mean this

    <div class="grid-container grid-parent hide-on-mobile">
    Support  how to get rid of breadcrumb on mobile devices
    </div>

    It seems like something wrong.
    breadcrumb still can be seen on mobile device

    thanks
    Best Regards,
    Henry

    #1585557
    David
    Staff
    Customer Support

    Hi there,

    i just checked your site and the Breadcrumb has been removed on Mobile.
    Try clearing your browser caches or check the site in a private/incognito browser.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.