Group Details Private

administrators

Member List

  • [Solved] EduMall theme does not show Smart Excerpts and broken the search results page

    The famous and beautiful EduMall theme for WordPress has a little incompatibility with the WPFTS's Smart Excerpt. The reason for this is simple - the authors of this theme use their own way of shortening article text to generate excerpts and do not offer a workaround method within the code using hooks.

    Well, we'll have to use a tougher method to fix this incompatibility than simply installing an addon (as we do in most other cases).

    So, first of all, we have to switch to the child theme EduMall Child Theme. Technically, we could make fixes in the main theme as well, but in this case any update of the theme would result in the loss of all changes, and we don't need that.

    So, go to the child theme folder, edumall-child, and create a subfolder tree there:

    template-parts/blog/loop/

    Then go to the same folder in the main theme, find files excerpt.php and excerpt-long.php and copy only these two files to the new created folder in the child theme.

    Now we need to "patch" both files.

    Open the first file, excerpt.php, find two calls of the method Edumall_Templates::excerpt and comment it out with parameters, using /* */ operator.

    Then add this line below the "*/":

    the_excerpt();

    Do this in both places in this file.

    When done, move to the second file excerpt-long.php and do exactly the same in it, patch in two places.

    Finally your files should look like this:

    excerpt.php:

    <?php
    /**
     * The template for displaying loop excerpt.
     *
     * @link    https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
     *
     * @package Edumall
     * @since   1.0
     */
    
    defined( 'ABSPATH' ) || exit;
    
    $post_title = get_the_title();
    ?>
    <div class="post-excerpt">
    	<?php if ( empty( $post_title ) ) : ?>
    		<a href="<?php the_permalink(); ?>">
    			<?php /*Edumall_Templates::excerpt( array(
    				'limit' => 11,
    				'type'  => 'word',
    			) );*/ 
    			the_excerpt(); ?>
    		</a>
    	<?php else: ?>
    		<?php /*Edumall_Templates::excerpt( array(
    			'limit' => 11,
    			'type'  => 'word',
    		) );*/ 
    		the_excerpt();	?>
    	<?php endif; ?>
    </div>
    

    and excerpt-long.php:

    <?php
    /**
     * The template for displaying loop excerpt.
     *
     * @link    https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
     *
     * @package Edumall
     * @since   1.0
     */
    
    defined( 'ABSPATH' ) || exit;
    
    $post_title = get_the_title();
    ?>
    <div class="post-excerpt">
    	<?php if ( empty( $post_title ) ) : ?>
    		<a href="<?php the_permalink(); ?>">
    			<?php /*Edumall_Templates::excerpt( array(
    				'limit' => 42,
    				'type'  => 'word',
    			) );*/
    			the_excerpt(); ?>
    		</a>
    	<?php else: ?>
    		<?php /*Edumall_Templates::excerpt( array(
    			'limit' => 42,
    			'type'  => 'word',
    		) );*/
    		the_excerpt(); ?>
    	<?php endif; ?>
    </div> 
    

    All Done.

    After this, the useful Smart Excerpt of WPFTS should be visible on the Search Results pages.

    If it does not work - please let us know!

    posted in Recipes and Known Solutions
  • RE: [Solved] Avada theme excerpt do not show

    There is a simpler way for fix the Avada Theme search results issue in case you're using Avada Theme 7.0+.

    In this version the authors enabled to override the output of search results by the hook. So using the simple addon become possible.

    Just download it and install. And enjoy the Smart Excerpts 🙂

    wpfts-addon-avada-theme.zip

    posted in Recipes and Known Solutions
  • RE: How long should indexing take?

    @paulf Hi, yes, please. You can put me a message directly to my email [hidden] also

    posted in General Discussion
  • RE: How long should indexing take?

    @paulf What is DM?

    Please write me at https://fulltextsearch.org Live Chat so we can communicate faster.

    Thanks!

    posted in General Discussion
  • RE: How long should indexing take?

    Hi @paulf

    Sometimes indexing process can be broken internally by 3rd-party plugins or theme code or custom code that makes internal redirects on shortcodes or something. It's hard to say which thing is blocking indexing.

    However, we always can solve this via the short TeamViewer session. It is possible?

    posted in General Discussion
  • RE: How long should indexing take?

    Hi @paulf

    The problem is, the WP script should call the URL on the same domain to run the cron job planner at https://youdomain.com/wp-cron.php

    When the website is running on external hosting, it works fine usually.

    However, for local installations (mostly dev environments), there is a problem. Because you have no actual domain, you simulate it via the "hosts" file.

    This file is usually located in %WINDIR%/system32/drivers/etc/hosts on Windows or /etc/hosts on Linux-based OS.

    While OS and browser can read this file and execute fake domains from there, Apache and PHP often have a problem with it. For example, this file "hosts" can be marked as "read-only by admin" or something else so Apache and PHP can not read it.

    So, basically, you have to enable read access to the hosts file for "all users" and it should help.

    If not - please contact me again, we can have a short TeamViewer session so I can check what exactly goes wrong on your installation.

    Thanks.

    posted in General Discussion
  • RE: How long should indexing take?

    Hi @PaulF

    It should be indexed in minutes normally.

    If you have some strange delays, please do this:

    1. Try to open WP Admin on the WPFTS Settings page for some time and notice if the number of indexed documents increases. If not, it should be a bug in the code that appears in error.log - please check this file if there are some error messages.

    2. Try to follow this recipe to fix the DNS problem (normally indexing should go transparently without WP admin open).

    Let me know what you found, I also could help you via the short TeamViewer session.

    Thanks!

    posted in General Discussion
  • RE: Custom Directory

    Hi @rgm_b

    Currently, the plugin works with the database, not with the physical location of the files. Actually, it does not matter where the file is stored - it will index all the files that are in WP Media Library.

    So the best way to index the folder with files - just to upload these files into the WP Media Library. Is it a problem to do that with your app?

    posted in General Discussion
  • RE: metadata filter in WPFTS widget

    Hi @pfb6736

    1. Yes, you can do this via CSS, either by adding a new rule to your Theme custom CSS block, or you can use WPFTS Settings / Search & Output / Display / Smart Excerpts CSS editor block.
      I hope it's .widget.widget-search rule, you can set 'width: 100%' to extend widget's width to all available room.

    2. The plugin is growing, but we have not yet a powerful system to make customized search widgets. What I can propose to you is (depending on your PHP/WP knowledge): there is a file /includes/widgets/wpfts_widget.class.php which is actually a native WP search widget with some changes for Live Search functionality.
      I would recommend you to copy this file to your child theme and create your own widget (by adding a select input to existing code). In case you think your knowledge of PHP is not that good, I can gladly help you, but you need to explain to me what exactly you need.

    3. Yes, it's possible via the small code addition. Do you want to show a path to the file instead of the file title? Or it should be an additional line in the search result item? Do you think showing a local path to the file is OKAY and maybe it's better to show Category instead?

    4. As I can see they are highlighted (bolded) but you can change this again in the Smart Excerpts CSS block. For example, this rule will make found words RED and YELLOW highlighted.

    .wpfts-result-item .wpfts-smart-excerpt b {	
    	/* Excerpt text */
    	color: red;
    	background-color: #ff3;
    }
    

    Thanks.

    posted in Recipes and Known Solutions
  • RE: PDFs not appearing in search result

    Hi @blixhavn

    Do you remember which plugins you've installed recently? Some of them may conflict with WPFTS Pro, especially when making a search at the front end. Please try to disable those plugins temporarily.

    If it does not help, let's connect with TeamViewer so I can solve this issue faster (write me a private message or via Live Chat at the main page).

    posted in Bugs and Fixes