• Resolved venomxnl

    (@venomxnl)


    Hi, first of: GREAT PLUGIN man! Truly appreciate it, it seriously saved me A LOT of time????

    Your Kadence compatibility fix also works like a charm for 99% of the issues with Kadence & bbPress.

    My problem however is: When I go to the search page (or search results for that matter) of bbpress (so not the forum search, which I want to keep separate), then the (bbpress) search page renders in the most annoying way possible.

    It will render one of the two side bar’s on the right, it will show a title header but not the background I have setup using the Kadence Customizer. And I’m unfortunately not able to disable the sidebar either because to make it go away, I would actually have to to go to customizer, then on archives turn off the sidebar (NOT in the bbpress options for kadence), which will result in not having the (needed) sidebar in the blog post archive either anymore.

    The Title header (with image) I’m not able to setup at all?????♀?

    Do you have ANY tip on how I could make/force Kadence to just use the same layout/template as for the forum index or the topic (pages)?

    Something like: add_filter, do_action, remove_filter() or what ever?

    I have a highly customized website, with child theme, already tried to run the plain (parent) kadence, tried figuring out how and where kadence is determining how to display which templates for (dynamic?) pages like bbpress etc… And it’s been 3 days wasted of searching through both the kadence and bbpress files, and I really hope I’m just overlooking a ‘simple call’ like “Register template” is you understand what I mean.

    Hope you have a solution or idea on how I can make kadence use the normal forum template for the bbpress search results ??

    OR if that is really messed up so to speak, if you know a way how to override the entire search url of bbpress so I could for example make my own page for it (would not be a problem for me either).

    Thanks for your time.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter venomxnl

    (@venomxnl)

    Small update: I tried to find a method to ‘overrule’ the bbpress search url (the page it’s go’s to for the search query post to display the results), but it seems like it (or I’m missing something) that I would have to edit the core files of bbpress to get it to work effectively. Which is obviously a terrible idea.

    Plugin Author Robin W

    (@robin-w)

    ok, so can you explain your method please, bbpress ahs many hooks and templates we can use to overwrite without changing core

    Thread Starter venomxnl

    (@venomxnl)

    Well I just tried to use filters to ‘override’ bbp_get_search_results_url for example.

    Also tried to create actual pages to ‘override’ the dynamically created slug created by bbPress, and while this works for the page/slug Forums, this doesn’t have any effect if i would for for example create a child page for forums/search.

    The main solution I would basically need is either one of these two:
    1: Force kadence to use the same template as the forum index or the topic template (which can both be customized in the Customizer (editor)

    or 2: A way to make bbPress go to a different search page for the forum search results page (for example: mydomain.com/forumsearch (instead of mydomain.com/forum/search

    And indeed like you mentioned; while doing so in my own functions/theme without having to alter any of the core files (either in Kadence or bbPress).

    I do definitely realize this is not a bbPress style pack issue in itself, but considering your plugin is the only one which works this amazingly well, and even fixed most of the issues with kadence & bbpres, I figured you might be the best hope for my sanity with this issue ??

    I truly appreciate that you took the time to reply, and if i would for example need to make a schreenshot or so to show the problem for example, just let me know.

    I will recap the problem in short once more (just in case):
    Currently the search results page of bbpress shows a sidebar which I can’t turn off without also turning off the sidebar of my blog archive, and it refuses to change the page header image/cover image which is part of Kadence. All other pages work perfectly fine after activating the Kadence Theme Fix in your plugin ??

    Plugin Author Robin W

    (@robin-w)

    ok, so on my test site I’ve activated Kadence, but I get a full page for search.

    So to let me replicate and save me spending hours looking at Kadence for the settings, can you tell me step by step how I get blog archives to have a sidebar, so I can see what you are seeing

    Thread Starter venomxnl

    (@venomxnl)

    Sure no problem:
    – I will go to the page itself while being logged-in as admin, so that it shows the (black) wordpress toolbar at the top

    – There I click on Customize
    – Then Posts/Pages Layout
    – Then Archive Layout
    – Then when scrolling down a bit you should see: Archive layout
    There I have set the option Right Side bar

    Underneath that option you can choose which side bar to use (the archive one which is Sidebar 2, and the WooCoomerce one (Sidebar 1).

    I have set it to Sidebar 2

    HOWEVER here comes the weird part: When I have the archive layout set to Right Sidebar and to use Sidebar 2 (for the blog archive that is)

    Then it shows the Sidebar 1 on the forum side results, but the sidebar on the forum search results will dissapear when I turn off the sidebar on the archive layout ?????♀?

    As you maybe can imagine I’m completely lost in where kadence is messing it up ??

    I even have spend the last two hours (and still am) using ChatGPT (something I usually never ever use) to see if i can get it to analyze the behaviour of Kadence to override the layout it’s forcing onto the bbpress search results page, but i’m kinda reaching mental insanity at this point haha ??

    Thread Starter venomxnl

    (@venomxnl)

    To confirm that it really isn’t my own kadence child theme (because it is quite large and complicated and thus could have caused an issue), I have briefly switched my website to the plain kadence theme. And indeed when enabling the sidebar for the blog archive, I get the exact same issue on the bbPress search results.

    And same goes for the header/cover image. It’s just a ‘light blue’ background block with white text on it. Can’t set the image.

    All I basically want it to do is to have a full page search like you’ve mentioned and to be able to make sure that the header image is the same as the one set for the forum archive (index) as set in the customize. Then the website is basically done.

    Thread Starter venomxnl

    (@venomxnl)

    Update: Well ChatGPT wasn’t any help at all (considering that it after about two hours suddenly randomly told that it was just ‘making up’ function and filter hook names for kadence ??, while using ‘general assumptions’ in regards to wordpress development).

    It for example recommended to use something like:
    add_filter(‘kadence_sidebar_position’, function() { return ‘none’; // No sidebar for normal layout });

    I however did found dynamic CSS chunks in one of the kadence files which are used for the bbpress pages (where there wasn’t a section for the search results page indeed).
    Which can be found in: kadence/inc/components/bbpress/component.php

    However I haven’t figured out yet how to make kadence render the output of /forums/search
    the same style as either /forums or /forums/topic pages. Which is basically all it needs to do for me (obviously keeping the search page working, but the layout that is, but I figured you understood that part ??).

    Will update if I have found a solution of course, and please let me know if you need more info or details.

    Thread Starter venomxnl

    (@venomxnl)

    After spending (wasting) WAAYY to many hours on finding a way to properly implement a clean (and dynamic) ‘fix’ for this issue, I decided to give up and do it (quite a bit) more dirty like this:


    add_filter('template_include', 'Custom_bbpress_SearchResults');

    function Custom_bbpress_SearchResults($template) {
    if (bbp_is_search()) {
    $custom_template = get_stylesheet_directory() . '/bbpress/custom_search_results_template.php';

    if (file_exists($custom_template)) {
    return $custom_template;
    }

    }
    return $template;
    }

    NOTE: I simplified the code above a bit for readability because my own uses different functions tied to my own theme and sites functions.

    Where I created a template based on the main template of the theme, and then included the search results php from bbpress.

    And in that template i renamed some classes to I could ‘inject’ my own CSS from/via the customizer.

    I know that this (by far) isn’t perfect or pretty, but after wasting about three to four days on this issue ?? i had to move on to finish it. At least it is now working on the front-end. And if a better solution, update or whatever ever comes out, i can easily revert back by out-commenting the code above, removing one file and some additional css lines.


    I hope you find a way to fix it with your amazing style pack, if not, it’s not your fault either to be honest ?? It’s bascially kadence messing up big time here for bbPress?????♀?. And if you did found a proper/cleaner solution already please let me know of course??.

    If you would like to resolve it in your plugin then feel free to leave this one open until you have done so, otherwise you can close it if you prefer to do so ??

    Thank you VERY much for your time and again plug-in, your effort is GREATLY appreciated

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.