I am trying to find a line of code in my public html cpanel. I am trying to search for this line of code in one of my wordpress template. Is there any tool in Cpanel to search for this line of code? Grep command?
<div id="masthead-sticky-wrapper" class="sticky-wrapper" style="height: 110.787px; min-height: 312px;"><header id="masthead" class="site-header">
I can’t even change the min-height using Customised CSS since they have hard code to the html file.
2
Answers
You can use any FTP program such as FileZila. Connect to your FTP Server, download all files and open this project in Web IDE such as PhpStorm. In this IDE you can search!
if it’s util, vote up!
If you are referring to the built-in editor in cPanel, the shortcut to search code in an individual file is:
If you are referring to searching the entire codebase for a file containing a line of code, I don’t believe this is possible using the cPanel search bar.
According to this cPanel support page, it is possible using SSH and a grep command.
https://forums.cpanel.net/threads/how-to-find-a-line-of-code.446762/