• Resolved ZeroGravity

    (@zerogravity)


    I have created a testimonial page using a listing view shortcode. When viewing the single testimonial is there a way to change the breadcrumb so it links back to the testimonial listing page?

    Currently the breadcrumb is:
    You are here: Home / Testimonials / <<testimonial title>>

    Home links to the home page but Testimonials isn’t linked.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Chris Dillon

    (@cdillon27)

    That is your theme’s single post template. It is mostly out of the plugin’s reach. I plan to provide more read-more options that are theme-independent.

    Meanwhile, with some coding skills and knowledge of the WordPress template hierarchy, it is possible to create and customize a single testimonial template in your theme.

    I can point you in the right direction if you want to try that. Otherwise, consider hiring a developer for 1-2 hours.
    https://www.fiverr.com/search/gigs?query=wordpress
    https://www.upwork.com/o/profiles/browse/?q=wordpress

    Thread Starter ZeroGravity

    (@zerogravity)

    It would be great if you could point me in the right direction. I have experience with PHP, WordPress and Genesis. Could probably work it out but if you can point me in the right direction that would be a lot quicker.

    I went looking for the single template in the plugin files but couldn’t find one. Originally the Name and Company details weren’t showing on a single testimonial. I created a Single Template view which added the fields at the bottom of the testimonial so thought the breadcrumbs might be controlled there in the view somehow.

    Love your plugin!

    Plugin Contributor Chris Dillon

    (@cdillon27)

    Thanks!

    Here’s a example child theme for Twenty Seventeen.
    https://github.com/cdillon/twentyseventeen-testimonial

    In that theme, two template files have been copied:
    single.php –> single-wpm-testimonial.php
    content-single.php –> content-wpm-testimonial.php

    single-wpm-testimonial.php loads the other file via get_template_part.

    content-wpm-testimonial.php prints a custom field via the function wpmtst_field.

    Tip: Use an app like WinMerge to compare files between parent and child themes.

    Breadcrumbs is where it gets tricky. The /testimonial part of the URL should be a post archive page but the plugin does not enable it by default. (I admit I did not think that through very well when I added the read-more option.)

    Genesis? You’re on your own. ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Link breadcrumb to Testimonial Page’ is closed to new replies.