Forums › Forums › Search & Filter Pro › Admin bar not working on custom role, only on results.php using Beaver Themer
Tagged: admin bar, beaver themer
- This topic has 11 replies, 2 voices, and was last updated 6 years, 5 months ago by Anonymous.
-
Anonymous(Private) June 20, 2018 at 8:23 am #180753
Hello!
I am experiencing a strange problem.
We are using S&F Pro for displaying a CPT. The CPT is using custom roles that I’ve added using Pods and it is making use of a custom capability.
The active page is displayed using a Beaver Themer layout, as we need different Search and filter objects depending on the current user role.When logging in as our custom admin, the admin bar is not showing and we also get a fatal error cannot redeclare function. This ONLY happens with the custom role, not on the administrator or our other custom roles. I am not sure what to do, but as the admin bar works when S & F Pro is deactivated I am reaching out to you first.
Regards,
Trevor(Private) June 20, 2018 at 4:19 pm #180805In the results.php template file, what happens if you comment out or remove lines 162 to 165:
function shorten_image_title( $title, $settings ){ return substr( $title, 0, (int)$settings['archive_title_length'] ); }
OR, change the function name (also twice in the code above), to sf_shorten_image_title?
If this function is used also by your theme, that may be the conflict.
-
AuthorPosts