Hi Kriss,
Unfortunately I’m not able to help out with theme specifik implementations since this is a free plugin I just develop during spare time š
However I’m guessing Avada does not use the regular post loop. The automagic insertion option relies on a hook that WordPress fires when a query loop is run. In the case of BTF it checks if the query loop is also the default post archive loop (to make sure it’s not inserting itself in the wrong loops).
So I think you have to either use the widget or place the do_action snippet yourself in the template file in your theme.
<?php do_action( 'show_beautiful_filters' ); ?>
Thread Starter
kkriss
(@kkriss)
Hi Jonathan. Thank you for your answer. I thought this issue was already solved for others, as Avada has 370,000 users. I tried to add the snippet but don’t know exactly in which file it has to be added, so it broke my site. Could you suggest me how to use it? I’d like to use it so much! š
Well, it’s not impossible that there are others using Avada and BTF but I’ve not come across anyone requesting help for it š
Have you read the Help section in the plugin settings?
It should be added above the loop in archive.php or archive-cptslug.php (cptslug would be the slug of the post type you want the filter on).
It’s also possible to set the cptslug manually in the call <?php do_action( 'show_beautiful_filters', 'cptslug' ); ?>
Just placing this in your theme would not be able to break your site. Unless you place <?php do_action( 'show_beautiful_filters' ); ?> inside already existing <?php ?> tags. If so you should just paste do_action( 'show_beautiful_filters' );.
Thread Starter
kkriss
(@kkriss)
Avada: you lucky guy…
So hard to add the do_action in Avada theme, as templates structures are not so clear and I can’t detect which one is the right one, that’s what I already tried with no luck. But probably there’s a simply way to get this, please have a look to this image and that’s exactly what I need: I’m using a page builder so I can create a top section above the single portfolio content and add there your filter as a widget. What I’m asking you is some css rules to display it horizontally. Thank you very much for your help.
portfolio page
Haha.. I don’t do purchased themes. Always develop from a barebone theme and use curated plugins and code our own if needed. š
Ok so, I’m not sure what/if you need any more help? Seems you got it working with the widget? I was thinking of adding a shortcode to BTF but with Gutenberg knocking on the door it feels like a dumb idea.
Thread Starter
kkriss
(@kkriss)
Hi Jonathan.
The image with horizontal filter I sent you in my previous mail is made with Photoshop … to let you see what I mean. I can create a section with Elementor and add your plugin as a widget, but it will display vertically, while I need it horizontally. Could you suggest me how to reach this with some css rules? I’m not so advanced and can’t do it myself. As the shortcode it would be sooooooooo useful š always if horizontal layout would be possible too. Not sure if Gutenberg is so close, considering all the problems encountered, while surely many users are already using Elementor, Visual Composer, Site Origin, King Composer, Beaver Builder and many other pages builders and could actually enjoy your “horizontal” filter. Please let me know if I could use your plugin horizontally in some way, it would be precious for my site. Thanx a lot
Hi,
You can get this done with some basic CSS really.
Something like this might do the trick:
.beautiful-taxonomy-filters-select-wrap {
display:flex;
}
.beautiful-taxonomy-filters-widget.widget .beautiful-taxonomy-filters-tax {
width: auto;
}
Thread Starter
kkriss
(@kkriss)
@tigerton.
Thank you very much for your help: that code did the trick! but the filters wrapper is not responsive and the search button should be in the same row of the other elements, I tried to get it but no luck. Could you help me again? Thanx a lot
@jonathan: so are you going to create the shortcode? even if Gutenberg will arrive, the shortcode would allow so many ways to use it. Thanx
@kkriss I will look into it š
Thread Starter
kkriss
(@kkriss)
Awesome Jonathan! I look forward to using it!