S
S
Samalamadoit2020-05-15 09:43:57
WordPress
Samalamadoit, 2020-05-15 09:43:57

How to find the right file in a WordPress theme?

You need to find a file in the Wordpress theme in order to change the visual and the location of the blocks on the page (by loading through a child theme). Specifically, the user 's personal account file . Can someone tell me the algorithm how to do this or where it can be located. Sweet Data topic, if that matters.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
Orkhan Hasanli, 2020-05-15
@Samalamadoit

Hello!

Need to find file in wordpress theme

Option 1
If it helps, then use the Query Monitor plugin. It will show the template being used on the current page. It is possible that it will show a general template - for example, page.php, which in turn will have other templates (template parts). Then just follow the logic chain until you find the template you need
Option 2
Download all theme files, open a text editor (Sublime Text 3, Notepad++ or even an IDE - PhpStorm for example). Look for strings that your template might contain. It can be css class, html tags, text, etc. Use ctrl + shift + f (sublime text 3) to easily search across all templates. Use regex if necessary.

Can someone tell me the algorithm how to do this or where it can be located

search algorithms given above. Where it might be, I can't tell you. Maybe this functionality is implemented by a plugin and then look for templates in plugins, frameworks, etc.

A
Alex, 2020-05-15
@Kozack

Ctrl+Fand search by tags, classes, any other elements that you want to change.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question