I am using a plugin called Document Library Pro. It adds documents using functionality which is similar to adding a blog articles.
I also have a blog.
My problem is that the documents are being added using News in the title.
Can you please advise on how to correct?
More information in the private content.
Hey,
Thanks for contacting us!
Could you please try adding following code to bottom of Functions.php file of your child theme (https://kriesi.at/documentation/enfold/child-theme/) in Appearance > Editor
add_filter('avf_title_args', 'av_custom_tax_title', 10, 2);
function av_custom_tax_title($args,$id)
{
if ('is_singular')
{
$args['title'] = get_the_title($id);
}
return $args;
}
Regards,
Yigit
Yiit, as always you are amaze!
One more thing… is there a way I can ensure that the subdirectory shows in the breadcrumb trail?
Ideally it should be Home / Library documents / …
:-)
Hi,
Could you please create temporary FTP and WP admin logins and post them here privately so we can look into it? :)
Best regards,
Yigit
Hi Yigit
I have posted it privately.
:-)
Hi,
I added following code as a new snippet
add_filter('avia_breadcrumbs_args', 'avia_change_home_breadcrumb', 10, 1);
function avia_change_home_breadcrumb($args){
if ( get_post_type( get_the_ID() ) == 'dlp_document' ) {
$args['show_home'] = __( 'Home / Library documents', 'avia_framework' );
}
return $args;
}
This basically just replaces “Home” with “Home / Library documents” :)
Best regards,
Yigit