• Hi – I have not seen this reported elsewhere in any support posts but I have an issue using the Divi theme. I am aware that?AWS plugin does not create its own search results page layout but add its search results to the existing layout the theme, however the Search Results Page URL that AWS directs to in my case leads to a ‘broken’ page. IE. It does not use the main theme header and footer created in the Divi Theme Builder. You can see this in the examples below from my site…

    WORKS FINE:?https://www.ampswinemerchants.co.uk/?s=red
    BREAKS THEME:?https://www.ampswinemerchants.co.uk/?s=red&post_type=product
    BREAKS THEME:?https://www.ampswinemerchants.co.uk/?s=red&post_type=product&type_aws=true

    I contacted Divi support and this is what they told me that it is to do with the URL they the plugin produces…?
    ————————–
    “…the problem is that the ADV Woo Search adds &post_type=product as a parameter to the search query, because of that result page will become a normal archive page instead of a search results page. ?

    The issue is tracked as a Divi bug although it is more of an incompatibility issue, as for the ETA we do not have any information when the issue is expected to be fixed. ?Unfortunately, there is no ETA on a solution that I can provide at this time. Though I can assure you that issues are addressed as quickly as possible based on our development team’s current workload and the severity of the issue when compared to the severity of other open issues.

    You can also contact the third party plugin authors to see if they have a hotfix for the issue”
    ————————-

    So is there anything that can be done at AWS or is there a “hot fix” that you can suggest trying here? Divi seems to be saying that it is something they will get around to looking at sometime but it is not a priority – IE. us Divi users could be waiting months/years? NB.?It all worked fine a few months ago, so not sure what has changed.

    Any advice appreciated as the AWS plugin is awesome and I?(and I’m sure other Divi users)?don’t want me to have to swap it out. Thanks – JJ

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter Jarstan

    (@jarstan)

    update… I have now updated to the latest Divi and also updated with a patch from Body Commerce (my chosen WC customiser)to address this. As such only the search page header & footers are broken now. Happy to hear of any ideas from your perspective but for now it looks like progress is being made towards a fix from the theme side of things. Thanks JJ

    Plugin Author ILLID

    (@mihail-barinov)

    Hello,

    Well, it is strange that everything becomes broken when using post_type=product inside the page URL because it is the default parameter to show WooCommerce search results.

    Anyway if you are looking for solution of how to remove this part from the search page URL – then you can use following code snippet:

    add_filter( 'aws_searchbox_markup', 'my_aws_searchbox_markup' );
    function my_aws_searchbox_markup( $markup ) {
        $hidden = '<input type="hidden" name="post_type" value="product">';
        $markup = str_replace( $hidden, '', $markup );
        return $markup;
    }

    You need to add it somewhere outside the plugins folder. For example, inside functions.php file of your theme or use some plugin for adding code snippets.

    Regards

    I also have the same problem with Divi.

    It doesn’t work, it just generates an error where it doesn’t open the search page.

    `add_filter( ‘aws_searchbox_markup’, ‘my_aws_searchbox_markup’ );
    function my_aws_searchbox_markup( $markup ) {
    $hidden = ‘<input type=”hidden” name=”post_type” value=”product”>’;
    $markup = str_replace( $hidden, ”, $markup );
    return $markup;
    }

    Plugin Author ILLID

    (@mihail-barinov)

    @salamanca2010

    Please tell me – what exactly error message do you see?

    Plugin Author ILLID

    (@mihail-barinov)

    Maybe the problem is caused by that issue – WooCommerce 5.5.1 issue with Divi Search.

    I can’t determine the error as the page just stays loading.

    Plugin Author ILLID

    (@mihail-barinov)

    Can you follow the steps that described in this article?

    Well it worked for me. Using a custom theme layout for the search since it’s products only but the post_type some how messed things up after the update. By removing it with code below in functions PHP its works again as supposed to :)..

    Thanks!

    add_filter( 'aws_searchbox_markup', 'my_aws_searchbox_markup' );
    function my_aws_searchbox_markup( $markup ) {
        $hidden = '<input type="hidden" name="post_type" value="product">';
        $markup = str_replace( $hidden, '', $markup );
        return $markup;
    }
    Plugin Author ILLID

    (@mihail-barinov)

    Well be using this code your search results page will not shows plugin search results but only some theme default ones.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Search results page breaks in Divi Theme – URL issue’ is closed to new replies.