detect a div class and remove it from WP site

Degen

Elite Member
Joined
Apr 9, 2016
Messages
2,604
Reaction score
2,900
I've found a div class with the inspect tool (chrome) which contain a certain link, which I want to remove.. Only problem is I can't find where it is made :S
 

Attachments

  • div class.png
    div class.png
    49.5 KB · Views: 162
Goto appearance --> editor

Edit the respective php file

Fin.
 
Goto appearance --> editor

Edit the respective php file

Fin.
that is the problem right there, I can't find the div class in any of the the php files, it is not created in theme footer.php or any..
 
that is the problem right there, I can't find the div class in any of the the php files, it is not created in theme footer.php or any..
Search if any js file is generating it.

If not, am afraid my limited web dev skills won't be enough to help you.

Maybe some of the professionals here can help figure it ouy for you.
 
Search if any js file is generating it.

If not, am afraid my limited web dev skills won't be enough to help you.

Maybe some of the professionals here can help figure it ouy for you.
haven't found anything noteworthy.. but then again I could be searching for the wrong thing
 
haven't found anything noteworthy.. but then again I could be searching for the wrong thing
Look in footer.php or functions.php and do a search for the class name altadefinizione.

Is this an Italian website? Asking because it could be that the classname dynamically gets generated. (%s)

If you can’t find it, send over the theme and I’ll let you know which file and line you need to edit.

But keep in mind that if it’s the parent theme, it will return when you update.

Perhaps it’s possible to create a filter and remove it that way, but I would need to see the code.
 
Is this a movie website? Your using a script to scrape info?
 
download the complete code then keep it into a folder after that use notepad++ and find it via selecting folder
 
Back
Top