• Hi everyone,

    I am not an expert with WordPress and I would like your help.

    I would like to change the display of few pages of my website. In order to do it, I need to find the related PHP file. I usually don’t have any problems but I can’t find the related PHP file for one of my page.
    This is an email sent to my customers with a secure payment link, when the customer click on it, a page is opened with the description of the payment procedure. I would like to change few things on this page (payment procedure) but impossible to find the correct php file.

    I have installed the plugin “what the file” but it doesn’t seem working.

    If you have any suggestions or solutions, that would be great.

    Thank you for your time !

    Kevin

    • This topic was modified 4 years, 8 months ago by Jan Dembowski.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Anonymous User 14808221

    (@anonymized-14808221)

    This is most likely a template of yet another plugin that handles your checkout / shop process, very likely it is WooCommerce, and if that is the case, you would be best off asking the WooCommerce Support folks how to customize said template.

    However, what I can suggest is installing WP Query Monitor plugin, and activate it.
    Then, visit the page that you will have your clients visit and check in the WP Query Monitor Debug Bar what “template” is used.

    That will indicate the PHP file (possibly within the plugin) that is used to display this content.

    It might also be a normal page of course, in which case the content is eventually added with ShortCodes or hooks or Blocks or anything else

    But if it is a template, a specific one or even a general, then said plugin will indicate it in the debug bar and help you locate the file.

    Remember that altering files of WordPress, themes or plugins is not recommended. You should either create Child Themes, or use filters or hooks, or ask the plugin developers (or consult their DOC) if they offer templating system for their features/templates.

    Hope this helps for a starter!

    Thread Starter kev42

    (@kev42)

    Dear Beda,

    Thank you for your message and the explanation. It’s pretty clear.

    I will have a look tomorrow 🤞

    Thank you again for your time.

    Kevin

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

The topic ‘Find the related PHP file’ is closed to new replies.