Closed. This question is off-topic. It is not currently accepting answers.admin管理员组文章数量:1025269
Closed 6 years ago.
- Questions that are too localized (such as syntax errors, code with restricted access, hacked sites, hosting or support issues) are not in scope. See how do I ask a good question?
- Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.
I need to edit the area shown in my photo. I am using a child theme. I am unable to ask the question to the theme's website as I don't have a proper subscription. I have tried looking at both the theme customization and the functions.php
and could not find this anywhere. Any help from you guys would be great!
Closed 6 years ago.
- Questions that are too localized (such as syntax errors, code with restricted access, hacked sites, hosting or support issues) are not in scope. See how do I ask a good question?
- Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.
I need to edit the area shown in my photo. I am using a child theme. I am unable to ask the question to the theme's website as I don't have a proper subscription. I have tried looking at both the theme customization and the functions.php
and could not find this anywhere. Any help from you guys would be great!
- Look in header.php. – Qaisar Feroz Commented Apr 5, 2019 at 18:02
- Theme normally will have a theme options page. Look for it. Probably under Appearance. – Karun Commented Apr 5, 2019 at 18:06
- I have been told that it is under the framework/legacy/cranium/headers/views/{your stack}/global/_navbar.php area. I do not know php so I do not know how to change it there. Thank you all for your help though. – Cam Commented Apr 5, 2019 at 18:24
1 Answer
Reset to default 1Welcome to the site :)
Since you already know that the item you want to change is in framework/legacy/cranium/headers/views/global/_navbar.php
then the matter of changing it is very easy and straightforward.
First:
Create a child theme (if you haven't already). A child theme will allow you to change just the things you want while preserving the other features of the original theme.
Next:
Once you have your child theme, copy the _navbar.php
file to your child theme directory: but make sure to follow the folder organization of the parent theme. So in this case, the copied _navbar.php
file should be in a directory like this:
your-child-theme/framework/legacy/cranium/headers/views/global/_navbar.php
And finally:
Open the _navbar.php
of your child theme in your preferred code editor, and change the text you need and save it. Your theme will load it in place of the original file in the parent theme.
Last notes: even though the file has a .php
extension, you should still be able to read it and find what you need to change. I encourage you to try it :)
P.S. If you have any problems, let us know here. If you would like, you can even edit your original question to add details to clarify it. For example, you can also post the code of _navbar.php
if you need help with it.
Closed 6 years ago.
- Questions that are too localized (such as syntax errors, code with restricted access, hacked sites, hosting or support issues) are not in scope. See how do I ask a good question?
- Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.
I need to edit the area shown in my photo. I am using a child theme. I am unable to ask the question to the theme's website as I don't have a proper subscription. I have tried looking at both the theme customization and the functions.php
and could not find this anywhere. Any help from you guys would be great!
Closed 6 years ago.
- Questions that are too localized (such as syntax errors, code with restricted access, hacked sites, hosting or support issues) are not in scope. See how do I ask a good question?
- Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.
I need to edit the area shown in my photo. I am using a child theme. I am unable to ask the question to the theme's website as I don't have a proper subscription. I have tried looking at both the theme customization and the functions.php
and could not find this anywhere. Any help from you guys would be great!
- Look in header.php. – Qaisar Feroz Commented Apr 5, 2019 at 18:02
- Theme normally will have a theme options page. Look for it. Probably under Appearance. – Karun Commented Apr 5, 2019 at 18:06
- I have been told that it is under the framework/legacy/cranium/headers/views/{your stack}/global/_navbar.php area. I do not know php so I do not know how to change it there. Thank you all for your help though. – Cam Commented Apr 5, 2019 at 18:24
1 Answer
Reset to default 1Welcome to the site :)
Since you already know that the item you want to change is in framework/legacy/cranium/headers/views/global/_navbar.php
then the matter of changing it is very easy and straightforward.
First:
Create a child theme (if you haven't already). A child theme will allow you to change just the things you want while preserving the other features of the original theme.
Next:
Once you have your child theme, copy the _navbar.php
file to your child theme directory: but make sure to follow the folder organization of the parent theme. So in this case, the copied _navbar.php
file should be in a directory like this:
your-child-theme/framework/legacy/cranium/headers/views/global/_navbar.php
And finally:
Open the _navbar.php
of your child theme in your preferred code editor, and change the text you need and save it. Your theme will load it in place of the original file in the parent theme.
Last notes: even though the file has a .php
extension, you should still be able to read it and find what you need to change. I encourage you to try it :)
P.S. If you have any problems, let us know here. If you would like, you can even edit your original question to add details to clarify it. For example, you can also post the code of _navbar.php
if you need help with it.
本文标签: functionsWhere do I go to edit this area
版权声明:本文标题:functions - Where do I go to edit this area? 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745620356a2159534.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论