Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @masurana

    You simply should enter the ID of this page through the “Exclude loading screen from” attribute, in the settings page of the plugin (accessible through the menu option: “Settings > Loading Page”)

    Best regards.

    Thread Starter masurana

    (@masurana)

    Okay thanks. But I want to know page id of single product page.

    Plugin Author codepeople

    (@codepeople)

    Hello @masurana

    If you want to know the id of a page, product, or post, you simply should move the mouse over its title in WordPress. Please, look the screenshot below:

    Best regards.

    Thread Starter masurana

    (@masurana)

    Thanks.
    But this is product post id & each product have different ids. I want to exclude single product page from loading screen so I want to know single product page id. Or if any css or code for this purpose. Thanks.

    Plugin Author codepeople

    (@codepeople)

    Hello @masurana

    I’m sorry, but do you want to disable the loading screen in a single product’s page, or from all products’ pages?

    For disabling the loading screen in a product’s page, you simply should to enter its ID through the “Exclude loading screen from” attribute in the settings page of the plugin.

    Best regards.

    Thread Starter masurana

    (@masurana)

    Sorry sir I want to exclude loading screen from all products pages. Not for any single product. I defines this page as “Single product page”

    Plugin Author codepeople

    (@codepeople)

    Hello @masurana

    I’m sorry, in the current version of the plugin there is not possible to exclude the loading screen by post type. However you can get it editing the plugin’s code as described below (it is very simple):

    1. Open the “/wp-content/plugins/loading-page/loading-page.php” file, with the text editor of your choice.

    2. Go to the piece of code:

    
    !empty( $op['enabled_loading_screen'] )
    

    and edit it as follows:

    
    !empty( $op['enabled_loading_screen'] ) && $post->post_type != 'product'
    

    and that’s all.
    Best regards.

    Thread Starter masurana

    (@masurana)

    Thanks for your great support. I will try this.

    Plugin Author codepeople

    (@codepeople)

    Hello @masurana

    I’m working in include an attribute in the plugin’s settings to exclude the loading screen by post type.

    Best regards.

    Thread Starter masurana

    (@masurana)

    Oh, that’s good. I”ll Wait for this. Thanks.

    Plugin Author codepeople

    (@codepeople)

    Hello @masurana

    I’ve published an update of the plugin that includes this feature.

    Best regards.

    Thread Starter masurana

    (@masurana)

    Yes, I updated it. Thank you so much. What is the post type of this page? (“single product page”)

    Plugin Author codepeople

    (@codepeople)

    Hello @masurana

    WooCommerce uses the post type: product for the products’ pages.

    Best regards.

    Thread Starter masurana

    (@masurana)

    Okay sir, it’s done. Thanks.:)

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘exclude loading screen from single product page’ is closed to new replies.