• i’ve been having issues editing html and css (less so with the css) when i’m wanting to further edit the layout on an added widget. When i inspect the website in chrome on my local server and find the code i want to manipulate i then navigate to the “source” tab in the inspector to find the location of the code to be changed and then it directs me to an index file in a folder in my htdocs folder (where i’m running my wordpress sites out of) and the file doesn’t actually exist there on my computer. This keeps happening over and over so there’s something i’m not getting here. Are widget files not stored on my computer/local server where they can be edited?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Well you can’t directly locate the php file containing the markup from the browser, as far as the browser is concerned it is only being served a single html file. You need to look in the plugins folder for the widget plugin you added and see if you can find the template.

    what widget?

    generally, there is little chance in editing the html of the default WordPress widgets (without haccking core code which is strongly discouraged);
    for some widgets, there might be plugin alternatives which you could edit.

    Thread Starter DavidJWall

    (@davidjwall)

    Thank you for the replies. I’m using the google maps widget. It has a <h3> for a title above the map. I don’t want anything above the map so I removed the text but now the map is still pushed down a bit. I want it to be inline with the content beside it. If i could just delete the <h3>, it would be pretty close. Is there a way to upload a screen shot here? I’ve looked through the widget file a bit. Pretty confusing for a beginner with only a basic understanding of css/html.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘editing widget html’ is closed to new replies.