Forum Moderators: rogerd & travelin cat

Message Too Old, No Replies

Plugin telling me what file I need to change

         

Matko

10:43 am on Oct 31, 2024 (gmt 0)

Top Contributors Of The Month



Hi guys,

please is there any wordpress plugin that can show me what file do I need to change if I want to change ... whatever on my wordpress site.

Example:
I want to change H1 to H3 on /author/ page.
Plugin would tell me: Go to function.php file and rewrite it there.

Thank you for any help

not2easy

11:19 am on Oct 31, 2024 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Hi Matko and welcome to WebmasterWorld [webmasterworld.com]

Unfortunately, I don't know of a plugin that would be able to guess what you want to change. It is a simple matter to open your author page and just edit it to use H3 instead of H1. WP is an excellent CMS platform that does just what you tell it to do, but it is not a good idea to seek plugins for everything you might need to deal with things, like text editing. Relying on plugins helps can give you better ways to manage tasks, but you should understand enough HTML to be able to edit your content.

We don't recommend plugins here, as explained in our WP Charter: [webmasterworld.com...] but you could search through the Wordpress.org Plugins Repository: [wordpress.org...] for a HTML editor.

The function you are looking at is a CSS change. If it were changed in your in your functions.php file it would affect every <H1> tag on your site, not just the one you want to change. Adding more steps to loading every page isn't what you want to do.

It could help if you learn enough about HTML to learn to edit your pages for things you want to change. For a novice, I'd suggest a visit to w3schools site (free) to learn by trying things out.

tangor

11:21 pm on Oct 31, 2024 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Sounds more like "what's a good tutorial" rather than a plug-in. As noted above, some knowledge of HTML and CSS is very useful for TWEAKING on page results rather than messing with the functionality of WP at the core.

lexipixel

9:05 am on Nov 9, 2024 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



No need for a plugin if you really do want to edit at the theme level and be able to identify which TEMPLATE is being used to render a given page.

I find it easy to add something like <div id="mydivname">Template: thisfile.php</div> into all the templates in the theme during development.

These would include common templates like:

home.php
index.php
page.php
single.php
singular.php
category.php
archive.php

...found in folder: \wp-content\themes\{active theme}\

For more complete list see:

WP TEMPLATE HIERARCHY
[developer.wordpress.org...]

NOTE: "author" is somewhat reserved keyword and is associated with specific template hierarchy and may use --

author.php
author-{id}.php
author-{nicename}.php

(or archive.php or index.php if no variation of "author.php" exists).

,

Featured image: webmasterworld
developer.wordpress.org
Template Hierarchy - Theme Handbook Developer.WordPress.org
As discussed, template files are modular, reusable files, used to generate the web pages on your WordPress site. Some template files (such…