Using include( get_stylesheet_directory with Ethos

Hello Support,

I’m trying to integrate FacetWp in Ethos stack of Pro. I know it’s a third party plugin and you don’t provide support but I think the solution I’m looking for is easier than expected and you’ve always been extremely nice.

I summarize the situation:

I inserted my customized facets in a global sidebar and the plugin works perfectly inside the blog. However, I need to create “another blog” with articles that should not appear in the basic one and I have seen that FacetWp is able to do it via shortcode. My problem is that basically the list of posts created by FacetWp lacks any style, while I would need to keep the layout of Ethos. In their guide I found this:

Using advanced mode

If you browse to Settings > FacetWP and click “Add template”, FacetWP will default to using the Layout Builder. However, if more flexibility is required and you’re experienced in WordPress coding, you can switch your template to advanced mode.

Display Code

When the “Display” tab is active, click the Switch to advanced mode link.
you could put your display code into a PHP template file:
<?php
include( get_stylesheet_directory() . ‘/loop-index.php’ );
?>

Correct me if I’m wrong: I can replace /loop-index.php with the php file that generates the specific loop of Ethos.

If my guess is correct: what is the right syntax to be able to edit include (get_stylesheet_directory?

Should I use the _index.php file inside views/ethos or the one inside global/ethos?

If my guess is wrong, can you point me in the right direction?

Thanks for your time, have a wonderful day!

Hello Fabio,

Thanks for writing in! Regretfully, this particular customization request is outside the scope of our support as this is not related to an issue with the theme and instead has to do with your customization of it. As such, you will need to investigate this particular issue on your own or seek help from a developer should you not feel comfortable making these changes yourself. If you have any further questions about the theme, we are more than happy to provide you with assistance on these inquiries.

Meanwhile, please be advised that the blog index and all the archive pages were being displayed using the index.php.

Thank you for your understanding.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.