• Resolved apoorvsukumar

    (@apoorvsukumar)


    Every post has a category link just above the title of the post. This includes for pages also.
    But, I want to replace the existing “category name with link” to “BreadCrumbs generated by Yoast plugin”.

    If I place the breadcrumbs codes in last of header.php file, then the breadcrumbs are coming above Category Title which looks odd.

    Please provide the way, or file name where I can penetrate my breadcrumb code so that, the “category” above the posts title, gets replaced by Yoast generated breadcrumbs. Pages doesn’t are in categories so they can be left with default setting.

    The 2 lines of codes which needs to be inserted are

    <?php if ( function_exists('yoast_breadcrumb') ) 
    {yoast_breadcrumb('<p id="breadcrumbs">','</p>');} ?>
    • This topic was modified 7 years ago by apoorvsukumar. Reason: More descriptive
    • This topic was modified 7 years ago by apoorvsukumar.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter apoorvsukumar

    (@apoorvsukumar)

    Now I have written some css to hide the default category name coming above post title and brought my breadcrumb text over there. But it only looks good on posts but not pages and homepages. Also if I click the breadcrumb to previous level link, it gives bad UX because breadcrumbs are lost as my css will only work on posts.

    Thread Starter apoorvsukumar

    (@apoorvsukumar)

    I waited for an answer and didn’t got any reply. So I did my own hack.

    I added css to remove displaying category name inside posts and added yoast breadcrumb code over there. The look and feel was not good so made the breadcrumb roll over the header image of the theme. It looks somewhat odd, but I achieved the desired SEO practice.

    You can see the breadcrumbs style anywhere on my blog.
    https://www.wantextra.com

    Hi,
    the theme developer has added this featue to the theme.
    But it is a major update and we don’t know when it will be released.
    https://github.com/presscustomizr/hueman/issues/643

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to setup Breadcrumbs above post title?’ is closed to new replies.