Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Here is a quick solution. For me it works with the Yoast SEO breadcrumbs. Neve already has the code for Yoast SEO breadcrumbs – only it doesn’t insert it on every page.

    Include this PHP code for every frontend page. You can use the WPCode Lite plugin for example.

    PHP:

    add_filter( 'neve_breadcrumbs_locations', 'filter_breadcrumb_locations', 1 );
    
    function filter_breadcrumb_locations( $content ) {
      return array(
        'neve_after_header_hook'
      );
    }

    CSS:

    header .neve-breadcrumbs-wrapper {
      display: block;
      width: 100%;
      padding-right: 15px;
      padding-left: 15px;
      padding-top: 15px;
      margin: 0 auto 25px;
      max-width: var(--container);
      font-size: .8em;
    }

    The original code in the Neve theme is less than ideal. The original locations cover only some pages – it’s inconsistent. But, as you see, it’s customizable to some extent.

    This code will make Neve insert the breadcrumb into the header, at the bottom of the header, on every page except home.

    The 'neve_breadcrumbs_locations' filter expects a list of existing hooks to be returned to it. It will register the breadcrumbs insertion code at these hooks by itself… so the breadcrumbs block will be inserted automatically at these places. And as every page has a header, the 'neve_after_header_hook' will be called on every page. Except for the home page, which is hard excluded in the code in Neve (in breadcrumbs.php).

    This CSS will make it align identically as the header itself. You can change it to your needs, of course.

    Neve has breadcrumb code integration ready to use for Yoast SEO, SEOPress and Rank Math. No custom breadcrumbs option. These 3 should work.

    I like Neve and I like NavXT, so I’ll look into making work the NavXT breadcrumbs plugin, too.

    Thread Starter Gabriel Cséfalvay

    (@havierpxblck)

    Update: Also the variable names are distinct. Each variable seems to become 3 distinct variables.

    Thread Starter Gabriel Cséfalvay

    (@havierpxblck)

    Yes, it sounds like exactly what I’m searching for. I’m open to trying out the feature. Let me know how to proceed.

    Thread Starter Gabriel Cséfalvay

    (@havierpxblck)

    Hi, sorry for the late reply, I just noticed your msg.

    I don’t translate my site, it’s going to be a one-language site. I just set the site language in settings.

    G.

Viewing 4 replies - 1 through 4 (of 4 total)