Changing wordpress templates

14 replies
  • WEB DESIGN
  • |
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
#changing #templates #wordpress
  • Profile picture of the author Susan Hope
    Can't get the image to load, can you post a link to the site?

    Sue
    Signature
    One-to-One WordPress Coaching Service Available at Low Hourly Rate - Let the frustration end now! WordPress Installs, Theme Design, Site Tweaks & other WordPress services available
    Find me on Pinterest: PINTEREST
    {{ DiscussionBoard.errors[6537519].message }}
    • Profile picture of the author dgmufasa
      Originally Posted by Susan Hope View Post

      Can't get the image to load, can you post a link to the site?
      Sue
      Hello and thanks for responding
      It is here http://practicemysap.com
      {{ DiscussionBoard.errors[6537600].message }}
      • Profile picture of the author Susan Hope
        Originally Posted by dgmufasa View Post

        Hello and thanks for responding
        It is here http://practicemysap.com
        err well that link is leading me to a server login page.. sorry but it is late here now and I have to get to bed, very tired, hopefully someone will be along to help you soon.

        Sue
        Signature
        One-to-One WordPress Coaching Service Available at Low Hourly Rate - Let the frustration end now! WordPress Installs, Theme Design, Site Tweaks & other WordPress services available
        Find me on Pinterest: PINTEREST
        {{ DiscussionBoard.errors[6537640].message }}
        • Profile picture of the author dgmufasa
          Originally Posted by Susan Hope View Post

          err well that link is leading me to a server login page.. sorry but it is late here now and I have to get to bed, very tired, hopefully someone will be along to help you soon.

          Sue
          Hi Sue - sorry, I just thought of that now.

          *took out ID and pass since problem is solved*

          I just did not understand how to find the filename that had the item I wanted to change (using Firefox).
          Regards.
          {{ DiscussionBoard.errors[6537698].message }}
  • Profile picture of the author BillyW
    Dgmufasa, to make sure I understand the question, are you trying to figure out which .php file contains the code by using Firebug?
    Signature
    Qosso.com - Exceptional Branding At Affordable Prices
    {{ DiscussionBoard.errors[6537810].message }}
    • Profile picture of the author dgmufasa
      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
      {{ DiscussionBoard.errors[6539831].message }}
  • Profile picture of the author failideas
    maybe its your membership plugin that's putting that login thing
    Signature
    Dental WordPress Theme - Dentist WP Theme - Lawyer WordPress Theme

    ++ Theme Release News and Promotions > submit here
    Affiliates - wanna make good money. Subscribe here Affiliates List
    {{ DiscussionBoard.errors[6538184].message }}
    • Profile picture of the author dgmufasa
      Originally Posted by failideas View Post

      maybe its your membership plugin that's putting that login thing
      No - the login is done with a "Directory Protection". out of CPanel.
      {{ DiscussionBoard.errors[6539834].message }}
  • Profile picture of the author BillyW
    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.
    Signature
    Qosso.com - Exceptional Branding At Affordable Prices
    {{ DiscussionBoard.errors[6540949].message }}
    • Profile picture of the author rhinocl
      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.
      {{ DiscussionBoard.errors[6541055].message }}
      • Profile picture of the author rhinocl
        Originally Posted by dgmufasa View Post

        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.
        Yes if you are proficient enough you can find ways to search the files online. I just find that for the sake of a four minute download it is easier to do it off-line.
        {{ DiscussionBoard.errors[6542312].message }}
  • Profile picture of the author Istvan Horvath
    Don't ask for help if you force people to login just to help YOU!
    Signature

    {{ DiscussionBoard.errors[6541044].message }}
    • Profile picture of the author dgmufasa
      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.


      Originally Posted by Istvan Horvath View Post

      Don't ask for help if you force people to login just to help YOU!
      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!

      Originally Posted by rhinocl View Post

      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.
      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.
      {{ DiscussionBoard.errors[6542041].message }}
  • Profile picture of the author dgmufasa
    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!
    {{ DiscussionBoard.errors[6547532].message }}

Trending Topics