Make WordPress Core

Opened 20 months ago

Closed 20 months ago

Last modified 20 months ago

#56715 closed feature request (worksforme)

New Feature for the WordPress Core

Reported by: lucifer37666's profile lucifer37666 Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: ui, administration Cc:

Description

Hi,

My name is Joseph M. (Lucifer37666) I'm working with WordPress long time now. But I decided to join to the community recently. So, in all this year, I saw a lot of improvement, but what I do not see, and I thought someone will come up with this, but after long time of development of WordPress no one come I decided to do it myself. Not know if this Ticket will go to the right team of WordPress or not, but at least I give a try. Yah. Why not!

Most of the time, I do some basics website for the clients. The problem, is if I use a Theme when Theme update, the code I modify (Google Analytics, Custom codes in Head or Footer or any other I have to insert) will go away. So I have to go and do again the job, after every update. This is on the theme side. Now loads of other will say why not go with child theme. Yah. there are some problem as well. Some child theme are so basic they do not have place where to insert the customs code if need.

My suggestions are if WordPress have in Settings a special section, where you can add this customs codes, Like Google Tag Manager, Google AdSense Code, Or Google Analytics and a section to add your own custom code. (Preferable to be able to chose to be added in Body section, Head Section, Footer Section)

If core of WordPress will update, that info will still be available to the user, and is on site, not deepening on themes if switch themes and so on or Plugins.

Hope someone capable will take into consideration my Feedback and hope we will see this future soon in the WordPress core.

Best regards
Iosif M.

Change History (9)

#1 follow-up: @knutsp
20 months ago

  • Component changed from General to Themes
  • Focuses accessibility performance privacy coding-standards removed
  • Severity changed from major to normal
  • Version trunk deleted

Hello, welcome to Trac.

Thank you for this suggestion. I strongly felt this issue many years ago, when working with customizing themes. Later the concept of a child theme was introduced. Have you tried using a child theme?

#2 @joyously
20 months ago

  • Component changed from Themes to General
  • Focuses template removed

The sort of code you are adding belongs in a plugin, not a theme, so that it is independent (of updates and switching themes).
There are already plugins for interfacing with Google, but also plugins that allow you to put whatever code you want into the page. Especially for some code that is needed all the time, you can make it a mu-plugin, so your client can't accidentally deactivate it.

#3 follow-up: @jrf
20 months ago

  • Keywords close added; needs-design-feedback removed

I agree with both the above replies. The desired functionality can already be achieved by either using a child theme, by using a (combination of existing plugin(s) or by creating a custom plugin.

I'd suggest closing this issue as this is a feature request for a feature which effectively already exists.

#4 in reply to: ↑ 3 @lucifer37666
20 months ago

Hi, Thanks for the fast reply.

Do not get me wrong or take as an offence. But if I put in the theme child.. and switch? Code will be on site?

Why I can put some code into WP core, and I know is there and no waist more time to go grab the code and paste again. Why need plugin for everything? this is the issues. Why not make WordPress a better CMS if is possible? I did ask the impossible? Is irritated to see how everyone … "yah... just add another plugin" and later you guy come and say, "do not install to many as make site slow". yah... Thanks.

I'm 100% sure, I'm not the only one having this feeling, for everything we need plugin .. this is what WordPress begin to be … long time ago apparently.

Best regards.

Replying to jrf:

I agree with both the above replies. The desired functionality can already be achieved by either using a child theme, by using a (combination of existing plugin(s) or by creating a custom plugin.

I'd suggest closing this issue as this is a feature request for a feature which effectively already exists.

#5 in reply to: ↑ 1 @lucifer37666
20 months ago

Hi,

Yes I know is working. But if the customer want to change theme, will not be anymore in the code. And is not as tech … as we are.

My suggestion was to make this into WordPress Core. In the last years the concept go from … "we need plugin for everything" and later … "but in the same time" … "ooo keep site simple, keep site at minimum plugin and remove unused themes, and website to run smooth".

This is not good practice. And I'm not a programmer, I'm a advance user. And you all know and feel. Just because Programmers have ability to create a plugin, (Ok, I can do a simple plugin as well); not mean everyone MUST DO like you. And on top of that, use Plugins for everything. Naaaaa Bro.

Thanks.

Replying to knutsp:

Hello, welcome to Trac.

Thank you for this suggestion. I strongly felt this issue many years ago, when working with customizing themes. Later the concept of a child theme was introduced. Have you tried using a child theme?

#6 @knutsp
20 months ago

  • Keywords reporter-feedback 2nd-opinion close removed
  • Resolution set to worksforme
  • Status changed from new to closed

Either a child theme or a plugin. Your enhancement is already supported, just do things the right way.

#7 follow-up: @jrf
20 months ago

Why I can put some code into WP core, and I know is there and no waist more time to go grab the code and paste again. Why need plugin for everything?

My suggestions are if WordPress have in Settings a special section, where you can add this customs codes, Like Google Tag Manager, Google AdSense Code, Or Google Analytics and a section to add your own custom code. (Preferable to be able to chose to be added in Body section, Head Section, Footer Section)

Just to clarify why this request is not a good candidate for Core.

Have a look at your own suggestion. You are asking for three specific fields to be added, each of which is related to an external vendor. There are hundreds of external vendors out there.

If WordPress Core would add these three fields, within a day, the next vendor will be saying - "vendor A (Google) now has an unfair advantage, so I want a field for my custom codes to be added to WordPress Core as well".

In the end, there will be hundreds of fields for codes in every single site, users will not be able to find the field they want anymore and most users will only use one or two of the fields anyway (if at all).

Also think about this - adding a field like this for one vendor could even lead to the WordPress Foundation (a non-profit) being sued in court and stock market regulators getting involved about WordPress unfairly influencing the market by giving one vendor an unfair advantage over another.

So, this is why this is plugin territory. Users can install the plugins which are relevant for their integrations. This is something WP Core should stay far away from.

#8 in reply to: ↑ 7 @lucifer37666
20 months ago

Yah. Make sense now. After this explanation. Thanks.

Replying to jrf:

Why I can put some code into WP core, and I know is there and no waist more time to go grab the code and paste again. Why need plugin for everything?

My suggestions are if WordPress have in Settings a special section, where you can add this customs codes, Like Google Tag Manager, Google AdSense Code, Or Google Analytics and a section to add your own custom code. (Preferable to be able to chose to be added in Body section, Head Section, Footer Section)

Just to clarify why this request is not a good candidate for Core.

Have a look at your own suggestion. You are asking for three specific fields to be added, each of which is related to an external vendor. There are hundreds of external vendors out there.

If WordPress Core would add these three fields, within a day, the next vendor will be saying - "vendor A (Google) now has an unfair advantage, so I want a field for my custom codes to be added to WordPress Core as well".

In the end, there will be hundreds of fields for codes in every single site, users will not be able to find the field they want anymore and most users will only use one or two of the fields anyway (if at all).

Also think about this - adding a field like this for one vendor could even lead to the WordPress Foundation (a non-profit) being sued in court and stock market regulators getting involved about WordPress unfairly influencing the market by giving one vendor an unfair advantage over another.

So, this is why this is plugin territory. Users can install the plugins which are relevant for their integrations. This is something WP Core should stay far away from.

#9 @desrosj
20 months ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.