Title: doowayne's Replies | WordPress.org

---

# doowayne

  [  ](https://wordpress.org/support/users/doowayne/)

 *   [Profile](https://wordpress.org/support/users/doowayne/)
 *   [Topics Started](https://wordpress.org/support/users/doowayne/topics/)
 *   [Replies Created](https://wordpress.org/support/users/doowayne/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/doowayne/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/doowayne/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/doowayne/engagements/)
 *   [Favorites](https://wordpress.org/support/users/doowayne/favorites/)

 Search replies:

## Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Relevanssi Live Ajax Search] 404 error on custom post search results caused by the plugin](https://wordpress.org/support/topic/404-error-on-custom-post-search-results-caused-by-the-plugin/)
 *  Thread Starter [doowayne](https://wordpress.org/support/users/doowayne/)
 * (@doowayne)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/404-error-on-custom-post-search-results-caused-by-the-plugin/#post-18285555)
 * Thank you for your response.
 * Deactivating WPML doesn’t help because the problem only impacts the translated
   versions of the website. I can’t reproduce it in any other case, and the translation
   is a critical feature of the website.
 * I did more investigation on what I could, and observed something interesting :
   I tried replacing Relevanssi Live Ajax Search with SearchWP Live Ajax Search,
   and it appears that the bug also occurs with that plugin. This means that the
   problem might not be caused by Relevanssi Live Ajax Search specifically, but 
   a wordpress feature used by both plugins.
 * I also found what seems to cause the bug on custom post-types : the problem only
   occurs when the post type’s slug is rewritten (in my case, ‘tutorials’ is rewritten
   as ‘knowledge-base’ for the urls). If the slug isn’t rewritten, everything works
   properly.
 * With all those elements, I will contact WPML support and try asking on the main
   worpdress forum, as it definitely doesn’t seem specific to Relevanssi Live Ajax
   Search plugin, but common to several plugins doing the same thing.
 * Thank you again for your help.
    -  This reply was modified 1 year, 4 months ago by [doowayne](https://wordpress.org/support/users/doowayne/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Relevanssi Live Ajax Search] search result template not overridden](https://wordpress.org/support/topic/search-result-template-not-overridden/)
 *  Thread Starter [doowayne](https://wordpress.org/support/users/doowayne/)
 * (@doowayne)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/search-result-template-not-overridden/#post-18221923)
 * I used the filter like this :
 *     ```wp-block-code
       add_filter( 'relevanssi_live_search_results_template', function(){ return dirname( __file__) . "/relevanssi-live-ajax-search/search-results.php";} );
       ```
   
 * But the following error occurs when using the search bar :
 *     ```wp-block-code
       Warning: include(C:\wamp64\www\doc_center\wp-content\themes\knowledgebase\relevanssi-live-ajax-search\search-results.php): Failed to open stream: No such file or directory in C:\wamp64\www\doc_center\wp-content\plugins\relevanssi-live-ajax-search\includes\class-relevanssi-live-search-client.php on line 76
       ```
   
 * It also doesn’t work on the online version.
 * Am I not using the correct path ?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Relevanssi Live Ajax Search] search result template not overridden](https://wordpress.org/support/topic/search-result-template-not-overridden/)
 *  Thread Starter [doowayne](https://wordpress.org/support/users/doowayne/)
 * (@doowayne)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/search-result-template-not-overridden/#post-18221692)
 * This is what I get when using this filter hook :
 *     ```wp-block-code
       [01-Jan-2025 19:18:13 UTC] C:\wamp64\www\doc_center\wp-content\plugins\relevanssi-live-ajax-search/templates/search-results-query.php
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Relevanssi Live Ajax Search] search result template not overridden](https://wordpress.org/support/topic/search-result-template-not-overridden/)
 *  Thread Starter [doowayne](https://wordpress.org/support/users/doowayne/)
 * (@doowayne)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/search-result-template-not-overridden/#post-18219671)
 * Thank you for your response.
 * I double-checked and the repertory is correctly named, and the website is not
   using any other Ajax search.
 * I tried modifying the templates directly from the extension repertory on a local
   environment, and it appears that the on that is used to display the results is
   search-results-query.php. But it also doesn’t work when I put search-results-
   query.php in my theme’s repertory.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Relevanssi Live Ajax Search] Search box alignment](https://wordpress.org/support/topic/search-box-alignment-2/)
 *  Thread Starter [doowayne](https://wordpress.org/support/users/doowayne/)
 * (@doowayne)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/search-box-alignment-2/#post-18177772)
 * It works ! Thank you for your help !
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Relevanssi Live Ajax Search] Search box alignment](https://wordpress.org/support/topic/search-box-alignment-2/)
 *  Thread Starter [doowayne](https://wordpress.org/support/users/doowayne/)
 * (@doowayne)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/search-box-alignment-2/#post-18175917)
 * Thank you for your response !
 * If I put top: 86px it does display correctly on my desktop, but it’s not responsive.
   I was hoping there was a way to fix it without having to define a specific value
   manually for every display (and without having to change it if I modify anything
   in this section of the website).
    -  This reply was modified 1 year, 6 months ago by [doowayne](https://wordpress.org/support/users/doowayne/).
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Custom Block CSS not applied on front-end](https://wordpress.org/support/topic/custom-block-css-not-applied-on-front-end/)
 *  Thread Starter [doowayne](https://wordpress.org/support/users/doowayne/)
 * (@doowayne)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/custom-block-css-not-applied-on-front-end/#post-17959101)
 * My code now looks like this :
 *     ```wp-block-code
       if ( ! function_exists( 'theme_setup' ) ) :	function theme_setup() {		wp_enqueue_style( 			'custom-style', 			get_template_directory_uri() . '/assets/css/search-bar.css' );	}endif;add_action( 'wp_enqueue_scripts', 'theme_setup' );
       ```
   
 * And it works ! Thank you so much for your help !
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Custom Block CSS not applied on front-end](https://wordpress.org/support/topic/custom-block-css-not-applied-on-front-end/)
 *  Thread Starter [doowayne](https://wordpress.org/support/users/doowayne/)
 * (@doowayne)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/custom-block-css-not-applied-on-front-end/#post-17956532)
 * Thank you for your response !
 * I am working with a child theme of Twenty Twenty-Four for this project, I made
   sure to use the **function.php** file of my child theme.
 * For the theme_setup function I actually forgot the last line when quoting my 
   code :
 *     ```wp-block-code
       add_action( 'init', 'theme_setup' );
       ```
   
 * I actually tried to replicate the way it is done in the parent theme, to customize
   the CSS for the button block.
 *     ```wp-block-code
       if ( ! function_exists( 'twentytwentyfour_block_stylesheets' ) ) :	/**	 * Enqueue custom block stylesheets	 *	 * @since Twenty Twenty-Four 1.0	 * @return void	 */	function twentytwentyfour_block_stylesheets() {		/**		 * The wp_enqueue_block_style() function allows us to enqueue a stylesheet		 * for a specific block. These will only get loaded when the block is rendered		 * (both in the editor and on the front end), improving performance		 * and reducing the amount of data requested by visitors.		 *		 * See https://make.wordpress.org/core/2021/12/15/using-multiple-stylesheets-per-block/ for more info.		 */		wp_enqueue_block_style(			'core/button',			array(				'handle' => 'twentytwentyfour-button-style-outline',				'src'    => get_parent_theme_file_uri( 'assets/css/button-outline.css' ),				'ver'    => wp_get_theme( get_template() )->get( 'Version' ),				'path'   => get_parent_theme_file_path( 'assets/css/button-outline.css' ),			)		);	}endif;add_action( 'init', 'twentytwentyfour_block_stylesheets' );
       ```
   
 * I replaced the code with your suggestion, but the result remains the same : the
   CSS is applied in the editor, but not on the front-end.
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Custom block not listed in Gutenberg block list](https://wordpress.org/support/topic/custom-block-not-listed-in-gutenberg-block-list/)
 *  Thread Starter [doowayne](https://wordpress.org/support/users/doowayne/)
 * (@doowayne)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/custom-block-not-listed-in-gutenberg-block-list/#post-17924038)
 * I am not sure what fixed this issue but it is now solved, my custom blocks now
   appear in the editor.
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [How to group post by subcategories in archive pages build with Gutenberg](https://wordpress.org/support/topic/how-to-group-post-by-subcategories-in-archive-pages-build-with-gutenberg/)
 *  Thread Starter [doowayne](https://wordpress.org/support/users/doowayne/)
 * (@doowayne)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/how-to-group-post-by-subcategories-in-archive-pages-build-with-gutenberg/#post-17903124)
 * Thank you for your response (and sorry for the lateness of mine).
 * Reading the article you linked I think I understand fairly well what I can do
   to customize the query loop block, but I am not sure if that would work for my
   case.
 * The way I did it with a classic theme is by running a wp_query loop within a 
   get_terms loop that fetches and display all the subcategories available. From
   what I understand I can customize the query and its parameters, and I could include
   the subcategory notion and use it as a parameter for my query, but that wouldn’t
   allow me to group posts by subcategory and display the subcategory name the same
   way as in my example.
 * Or I am misunderstanding and it is possible to customize the query loop block
   by including the post query in another loop ?
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [How to get WP_Query() to return posts from a subcategory](https://wordpress.org/support/topic/how-to-get-wp_query-to-return-posts-from-a-subcategory/)
 *  Thread Starter [doowayne](https://wordpress.org/support/users/doowayne/)
 * (@doowayne)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/how-to-get-wp_query-to-return-posts-from-a-subcategory/#post-17761123)
 * You were right, this behavior was caused by the plugin **WP JV Post Reading Groups**,
   which doesn’t seem to be maintained so I guess it’s a good opportunity to change
   it.
 * Thank you so much for your help !

Viewing 11 replies - 1 through 11 (of 11 total)