Changing wordpress templates

by 14 replies
16
Hello all,

I am trying to change a Wordpress template that I downloaded. Attached is a pic I took while running Firebug. It shows a button that I want to delete as well as the coded that is associated with it.

My problem is: What is the name of the file that has the code in it? How can I find this?

TIA
#website design #changing #templates #wordpress
  • Can't get the image to load, can you post a link to the site?

    Sue
    • [1] reply
  • Dgmufasa, to make sure I understand the question, are you trying to figure out which .php file contains the code by using Firebug?
    • [1] reply
    • Hello and thanks for the response

      Yes, that is what I was looking for.
      I see the code (pointed to by the arrow). But I dont know which file the code was in. If I knew where, then I could change it myself and not wait for the fellow I hired to do it.

      Regards, Casey
  • maybe its your membership plugin that's putting that login thing
    • [1] reply
    • No - the login is done with a "Directory Protection". out of CPanel.
  • Well I don't know where or how to exactly find which file it's in using Firebug, but I do know that typically in Wordpress templates there will be a file named "main.php", "front-page.php", or something along the lines of such. With the button being on the main page, I would suggest looking for one of those file names and browsing through it. Simply open up the file and hit ctrl + f. A search box should pop up. Enter <div class="call-to-action"> and then enter. It should highlight the code you are looking for.

    I know it may seem like a shot in the dark, but the more familiar you become with Wordpress and the general files of themes, it becomes easier to find the coding you're looking for.

    Let me know if this helped.
    • [1] reply
    • Here's a brute force method to find which file.
      1) Download the whole WP-Content|Theme|Your Active Theme Folder to your local machine with FTP.
      Open every file (skip the image files or just select them too and close them later) in a program Like NoteTab Light (free) You can select a whole folder full at a time.

      Search on a small snippet of the code you want (some of the code you see in Firebug may be html code that is generated by PHP so you have to play with the exact search snippet to make this method work)
      Check global and count occurrences.
      Now you know how many times that snippet occurs search for it keeping global box checked.Look through each occurrence and find the appropriate page.
      • [ 1 ] Thanks
      • [1] reply
  • Don't ask for help if you force people to login just to help YOU!
    • [1] reply
    • Hello all an d thanks for the responses

      I found some of the answer here from an old thread:
      From what I can see (or have seen online), editing takes place mostly through the style.css file. I did not see any editing going on on the side of the HTML file.


      Ivan,

      It is quite interesting that you suggest something nefarious from my side. I had sometimes wondered if you were a real person or an alter-ego for someone else :p Anywho, this is not a login to the site. This is on Hostgator which uses CPanel. As part of CPanel, there is an option to protect a directory (when one does not feel like making adjustments to the .htaccess file).

      If you look above, I had posted a picture of what I meant (as a picture is worth a thousand words). When someone asked me for the link, I sent it to them I sent it out quickly because the person was in a country that was 6-7 hrs ahead of US time. (I remembered that because I worked as a software programmer in Germany for 5 years ).

      It was not until a little bit later that I remembered that the directory had been protected and sent out the ID/password as well. Sorry, did not know that adding an ID/password for a protected directory was a crime against humanity (otherwise I would have taken the protection off). Will do so next time though.

      Cheers!

      Thanks - I guess that is what it must come down to. On the Unix side, there is a functionality called "find" that will allow you to check the contents of every file. I suppose I can do what you have suggested and look for an equivalent in the "windows" environment.
  • Banned
    [DELETED]
  • Thanks all, I went to a WP user's meeting and got the problem solved Changes were supposed to be made in the header.php file.

    Cheers!

Next Topics on Trending Feed

  • 16

    Hello all, I am trying to change a Wordpress template that I downloaded. Attached is a pic I took while running Firebug. It shows a button that I want to delete as well as the coded that is associated with it.