最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

functions - Where do I go to edit this area?

programmeradmin0浏览0评论
Closed. This question is off-topic. It is not currently accepting answers.

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.
Improve this question

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. This question is off-topic. It is not currently accepting answers.

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.
Improve this question

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!

Share Improve this question edited Apr 5, 2019 at 20:46 Karun 1,3471 gold badge9 silver badges22 bronze badges asked Apr 5, 2019 at 17:54 CamCam 1 3
  • 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
Add a comment  | 

1 Answer 1

Reset to default 1

Welcome 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.

发布评论

评论列表(0)

  1. 暂无评论