Author Archive

I can’t see Booking, Reviews, Gallery, Pricing Menu, Social Links, Opening Hours or Coupons Module

  • I can't see booking! How to enable booking?

  • I can't see reviews! How to enable reviews?

  • I can't see images in listing! How to enable gallery?

  • I can't see pricing menu! How to enable pricing table in a listing?

  • I can't see social links on a listing! How to display social links?

  • I can't see opening hours! How to enable opening hours?

  • I can't see coupons! How to enable coupons?

  • I can't see FAQ section! How to enable FAQs?

 

 

Redirecting to custom login page unlogged users

If you would like to redirect unlogged user to custom login page (instead default login page) when he visits a page that requires being logged in (e.g. dashboard, messages, add listing etc.) you can use following PHP snippet.

You can add code into your functions.php file in child-theme or use WP Code plugin:

How to add PHP snippets?

Here’s PHP snippet.

add_action('template_redirect', function() {
    if (is_user_logged_in()) {
        return;
    }
    
    $restricted_pages = ['dashboard', 'my-profile', 'messages', 'bookmarks'];
    
    global $post;
    
    if (is_page() && $post && in_array($post->post_name, $restricted_pages)) {
        // Save the current URL to redirect back after login
        $_SESSION['redirect_after_login'] = $_SERVER['REQUEST_URI'];
        
        wp_redirect(home_url('/registration/'));
        exit;
    }
});

In following line add all pages you want to redirect:
$restricted_pages = [‘dashboard’, ‘my-profile’, ‘messages’, ‘bookmarks’]; 

and destination page: wp_redirect(home_url(‘/custom-login/’)); 


Custom Login Page

You can create custom login page using Elementor and login form shortcodes:

  1. [listeo_login_form] – displays both login and register in a tabs
  2. [listeo_login] – only login form
  3. [listeo_registration] – only register forms

You can place these shortcodes on any page where you want the respective forms to appear. For more details, you can refer to the Shortcodes section in the Listeo Knowledge Base.

Can’t install theme – missing the style.css stylesheet error

Video Tutorials for Begginers

We’re thrilled to see the amazing community around the Listeo sharing their knowledge and experiences! There are various video tutorials available online created by fellow Listeo users. These tutorials cover a wide range of topics and provide practical insights into using the theme.

These videos are not official and have not been produced by Purethemes.



How to fix error, warning and notice showing on my website

Notifications you’re seeing in WordPress are not errors, so there’s nothing to be concerned about. These messages/warnings are usually intended for developers to assist with debugging and do not impact the functionality of your website..

If you’d prefer not to see these messages, you can easily disable them by turning off debugging in WordPress. You can either contact your hosting provider for assistance or do it yourself by following these steps:

  1. Connect to your website via FTP or using the file manager in your hosting control panel.
  2. Find and open the wp-config.php file.
  3. Look for the following line:
    define(‘WP_DEBUG’, true);
    and replace with:
    error_reporting(0);
    @ini_set(‘display_errors’, 0);
    define(‘WP_DEBUG’, false);
    define(‘WP_DEBUG_LOG’, false);
    define(‘WP_DEBUG_DISPLAY’, false);
  4. Save the file.

After doing this, the warnings should no longer appear.
Let me know if you need any further assistance!

Changing “add listing” button URL

In your child theme functions.php file add this code.

add_filter('listeo_submit_page', 'listeo_submit_page_change');
function listeo_submit_page_change($submit_page)
{
	$submit_page = 99; // where 99 is the page id you want to use	
	return $submit_page;
}