admin管理员组文章数量:1392050
I'm using a WP theme and want to simply rename a label. The search query shows 'search jobs' whereas I want 'search' only.
Here is a link to the page:
/?search_keywords=Circle&search_location=&search_category=
I've accessed the theme editor in WP but this only shows the PHP files, I believe the PHP calls on the HTML. In file editor on my cpanel, under the theme, I can only see a list of php files. I've done an overall search of the div class and still cannot find it.
I'm using a WP theme and want to simply rename a label. The search query shows 'search jobs' whereas I want 'search' only.
Here is a link to the page:
https://serialphotography/events/?search_keywords=Circle&search_location=&search_category=
I've accessed the theme editor in WP but this only shows the PHP files, I believe the PHP calls on the HTML. In file editor on my cpanel, under the theme, I can only see a list of php files. I've done an overall search of the div class and still cannot find it.
Share Improve this question asked Feb 1, 2020 at 21:07 MaestroMaestro 32 bronze badges 1- possibly from the plugin wordpress/plugins/wp-job-manager - please ask in their forum – Michael Commented Feb 1, 2020 at 21:49
1 Answer
Reset to default 0Welcome to wordpress development. :)
So most content that's visible from your browser is generated from a combination of two things:
- The Database (MySQL)
- The PHP Application (Wordpress)
Wordpress reaches out to the database and passes the relevant data to the appropriate function to create the pages you see.
In order to change the text you're seeing, you need to know whether that text primarily lives in the database (Like a setting for a plugin) or if it's scripted. (Generated by PHP on the server)
From looking through the resources served on that page, I can tell that you're using this plugin: https://wordpress/plugins/wp-job-manager/
If the plugin is well designed (from their site it appears to be well documented), then you ought to be able to leverage wordpress functionality to get what you want.
Unfortunately, without more information regarding your setup and this page, there's little more I can do to help you other than make an educated guess. We're lacking critical information like what the page content is, if you're using a template file, if you're in a child-theme, if this is built into the theme, etc.
From what I can gather from the plugin's site, it would appear that the page listing is being added to your page using the [jobs]
shortcode for the plugin? If this is the case, then you can EASILY override the contents by creating a new template file.
Create a new template file
To create the template file, first add the following line to your theme's functions.php
add_theme_support( 'job-manager-templates' );
This will enable support for the template you're going to make in your theme.
Then, create a new file called job-filters.php
and upload it to your-theme/job_manager/
. This will be empty at the moment, but we'll use the code from the original plugin, then you can edit that code however you wish.
So, then duplicate the code from wordpress-site/wp-content/plugins/wp-job-manager/templates/job-filters.php
and paste it into the new file.
You should now be able to edit the contents of that form.
Just look for
<input type="submit" value="<?php esc_attr_e( 'Search Jobs', 'wp-job-manager' ); ?>">
Change the value to what you want.
Keep in mind, that this means that you're OVERRIDING the template used by the plugin, so you may need to manually update this template if it's changed by the plugin in a future update.
Good luck!
(Tested on localhost to confirm solution. 2020-02-01)
本文标签: htmlHow can I locate the HMTL or Class definitions of a particular template on my wordpress site
版权声明:本文标题:html - How can I locate the HMTL or Class definitions of a particular template on my wordpress site? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744782804a2624815.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论