Forums

[Plugin: Yoast Breadcrumbs] cant see all of " add the following code to your themes template" (6 posts)

  1. zimzum
    Member
    Posted 2 years ago #

    On the breadcrumbs install page the code that you need to add to your template seems to get cut off. Can someone fill in the ramainder of the codes for me please.

    <?php if ( function_exists('yoast_breadcrumb') ) { yoast_breadcrumb('<p id="breadcrumbs">',

    <?php if ( function_exists('yoast_breadcrumb') ) { $breadcrumbs = yoast_breadcrumb

  2. holliday22
    Member
    Posted 2 years ago #

    I'm having the same problem. Did you ever figure it out?

  3. josenk
    Member
    Posted 2 years ago #

    I'm not even getting that much code...
    So much for support... two weeks and no answer!?

    And please all plugin-writers... Why don't you include the code in the "readme" file?...

    Well, off to find another breadcrumb plugin...

  4. asplash
    Member
    Posted 2 years ago #

    By looking in the code of the install webpage I found the missing text for the link and took out the formatting - better still - it works! :)

    <?php if ( function_exists('yoast_breadcrumb') ) { yoast_breadcrumb('<p id="breadcrumbs">','</p>'); } ?>

  5. doggybiz
    Member
    Posted 2 years ago #

    sorry to be really stupid but which files do I put the code in?

  6. asplash
    Member
    Posted 2 years ago #

    Sorry not to have got back earlier.
    In page.php find where the post content begins. In my version it reads:
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <?php the_content("<p>__('Read the rest of this page')</p>"); ?>

    I then added the breadcrumb just before the content like this:

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <?php if ( function_exists('yoast_breadcrumb') ) { yoast_breadcrumb('<p id="breadcrumbs">','</p>'); } ?> <!-- [breadcrumb] -->
    <?php the_content("<p>__('Read the rest of this page')</p>"); ?>

    Jane :)

Topic Closed

This topic has been closed to new replies.

About this Topic