Overriding single-company and archive-company templates
-
Hello,
I am trying to override the single-company.php and archive-company.php templates using the Blocksy theme’s content blocks feature, together with GreenShift’s query builder block from their query blocks addon and the Search & Filter Pro plugin for advanced search options. I am able to override all the WP Job Manager templates, including their Resume Manager addon’s templates, however I am having issues overriding the templates of the MAS Companies plugin. I reached out to Blocksy first, given that I am overriding the templates with their Content Blocks feature, and they gave it an honest review but ultimately said:
“I have gotten word from the developers and unfortunately, this will not be fixable from our end. It was indeed discovered that the plugin that you have implemented to create these archives/singulars does forcefully replace our own templates, even if implemented via Content Blocks. The Content Blocks template features require all CPTs to be declared correctly, as per WordPress’ guidelines…As long as this forceful replacement is happening, we will not be able to change much from our end. The developers have advised to check out if the plugin has an option to correctly change the template.”
From what I gather from that, the MAS Company templates are either not standard CPT’s or are implementing functionality that forces the original templates to be used.I do already know that the Company Archive settings requires that we declare compatibility in the child theme’s functions.php file and I have successfully implemented that already. It would be great to learn how to now override MAS Company templates, and the single-company.php and archive-company.php templates in particular with php templates or FSE themes – and especially with Blocksy’s content blocks (typically if they are standard CPT’s that can be overridden with php templates than Blocksy Content Blocks should work too).
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.