skip to Main Content

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


  1. 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!

    Login or Signup to reply.
  2. If you are referring to the built-in editor in cPanel, the shortcut to search code in an individual file is:

    Control + F
    

    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.

    grep $search-term /home/$username/public_html/file.php
    

    https://forums.cpanel.net/threads/how-to-find-a-line-of-code.446762/

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search