Como Posted November 7 Posted November 7 I'm probably missing something obvious (running a low-grade fever here), but how do I access theme templates in v5? I wish to investigate adding a button in the mobile footer menu. Thanks.
Como Posted November 7 Author Posted November 7 Just now, SeNioR- said: You can't edit theme templates. Does this apply only to beta installations, or will it apply to the full release version?
Como Posted November 7 Author Posted November 7 (edited) Oh. I see. It is in Pages. Brain fart - I thought it was in Customization. Edited November 7 by Como
Marc Posted November 7 Posted November 7 This applies to all releases. Templates are no longer something that can be edited on version 5. (other than pages of course)
Como Posted November 7 Author Posted November 7 Just now, Marc said: This applies to all releases. Templates are no longer something that can be edited on version 5. (other than pages of course) I'm confused. I'll take a proper look - it probably will become more transparent to me then. Thanks.
Como Posted November 7 Author Posted November 7 Oh. Right. I understand now. So, how would I go about adding an extra button the mobile footer menu? There is nothing obvious in Pages => Templates, but I assume there are methods/options to make these kinds of changes.
Marc Posted November 7 Posted November 7 Template hook points is what you would be looking for Como 1
HighlanderICT Posted November 8 Posted November 8 Is that to say we are now unable to remove certain elements we do not need? For example, I don't need the yellow highlighted area on my front page. My editors don't add articles from front end and with us wanting to put some blocks above the content this pushes the actual content down too far (IMHO). I cant move or remove it from the page editor or theme editor it would seem.
Daniel F Posted November 8 Posted November 8 You can hide/remove it via custom JS or css. All Astronauts and SeNioR- 1 1
Donnie95 Posted December 8 Posted December 8 On 11/7/2024 at 4:36 PM, Marc said: This applies to all releases. Templates are no longer something that can be edited on version 5. (other than pages of course) Can we access the templates via SFTP and edit them there, or will it cause problems? I need to edit the templates to restore the reputation points under the post author's profile picture and also add a custom fonts to my header.
All Astronauts Posted December 9 Posted December 9 Turn on advanced mode for your theme in question - this is in the ACP, not the front end. You have options to create new templates and to also insert stuff in certain locations in all existing templates. This system lets you insert pretty much anything, anywhere, as long as it is "around" and "between" template structures and not cutting/pasting portions of them. In short, you can add template stuff more or less anywhere now, but you can't hack at the templates (or remove stuff from templates) any longer. If you don't see a hook point in a place you need one just ask the staff (politely...). They are more than willing to stick them in where ever they are needed. BTW this applies to third-party apps as well. If you need a hook point in someone's app, just ask, it's just a boilerplate line of code to insert at that place in the template you need to hook into. Your custom fonts can be inserted by editing the the theme in the ACP and selecting header/footer - insert whatever you need there. Donnie95 and Marc 1 1
Marc Posted December 9 Posted December 9 11 hours ago, Donnie95 said: Can we access the templates via SFTP and edit them there, or will it cause problems? I need to edit the templates to restore the reputation points under the post author's profile picture and also add a custom fonts to my header. No. You would not edit templates any longer. Rather you would use template hooks and CSS to achieve things like this. Its a new way of working, but you can do most things in this way. Please see what was posted here, which would be the correct way to achieve this 9 hours ago, All Astronauts said: Turn on advanced mode for your theme in question - this is in the ACP, not the front end. You have options to create new templates and to also insert stuff in certain locations in all existing templates. This system lets you insert pretty much anything, anywhere, as long as it is "around" and "between" template structures and not cutting/pasting portions of them. In short, you can add template stuff more or less anywhere now, but you can't hack at the templates (or remove stuff from templates) any longer. If you don't see a hook point in a place you need one just ask the staff (politely...). They are more than willing to stick them in where ever they are needed. BTW this applies to third-party apps as well. If you need a hook point in someone's app, just ask, it's just a boilerplate line of code to insert at that place in the template you need to hook into. Your custom fonts can be inserted by editing the the theme in the ACP and selecting header/footer - insert whatever you need there. Donnie95 1
Recommended Posts