Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Title and Canonical Code Location
Title, Canonical and other Meta is pulled into default.master.php via:
Where is this code exactly?
Thanks, Bryan
<head>
<?php $this->RenderAsset('Head'); ?>
</head>
Where is this code exactly?
Thanks, Bryan
0
Comments
CanonicalUrl()
andTitle()
methods.You can start by calling those methods in a plugin or you can do the same thing in your theme hooks.
Add a function like this:
For now, I would like to dig into the actual code, this project isn't a concern for me to upgrade.
I'd really like to modify the actual code if you can point me to where the actual
<title></title>
code is stored.Thanks, Bryan
Here's something you may not know: If you want to modify a class without having to worry about updating the core later you can do the following:
1. Create a plugin. The plugin itself doesn't have to do anything.
2. In the plugin's folder copy the current class.headmodule.php.
3. Modify the file to your heart's content.
4. Now when you enable the plugin from the dashboard your HeadModule will be used instead of Vanilla's.
We do this type of thing internally a lot to test out some more drastic changes to core objects.
Thanks, Bryan