• Resolved dimal

    (@dimalifragis)


    Hello.

    Can you please point me to the right file, to add NavXT breadcrumbs php code?

    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter dimal

    (@dimalifragis)

    I have done that in my theme (Kadence) using the code below, but it works only for the first page of Geo Directory. Not deeper.

    
    <?php if(function_exists('bcn_display') && is_page(15509) ): ?>
    
     
    <div class="breadcrumbs" typeof="BreadcrumbList" vocab="https://schema.org/">
    
    <?php bcn_display();?>
    
    </div>
    
    <?php endif; ?>
    
    
    Plugin Author Paolo

    (@paoltaia)

    Hi Dimal,

    that function adds the breadcrumbs to 1 page, which is the page with ID 15509.

    I would use the geodir_is_geodir_page() function. In this case, you would be adding the breadcrumbs to all GeoDirectory pages.

    Or use the geodir_is_page($gdpage) function to add it to a specific page.

    The possible $gdpage vars are:
    ‘add-listing’
    ‘preview’
    ‘listing-success’
    ‘detail’
    ‘listing’
    ‘location’
    ‘author’
    ‘search’

    https://wpgeodirectory.com/support/topic/check-if-is-geodir-page/#post-28662

    Let me know if that works for you.

    Thanks,

    Paolo

    Thread Starter dimal

    (@dimalifragis)

    Yes it works GREAT.

    Many thanks

    Plugin Author Paolo

    (@paoltaia)

    Always a pleasure Dimal.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘NavXT breadcumbs addition’ is closed to new replies.