Jump to content

Recommended Posts

Posted

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.

Posted
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?

Posted

This applies to all releases. Templates are no longer something that can be edited on version 5. (other than pages of course) 

Posted
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.

Posted

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.

Posted

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. 

 

Could contain: File, Webpage, Text 

  • 1 month later...
Posted
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.

Posted

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.

image.png.3cad2e8e2b2b949b4e81cfa90e114137.png

image.thumb.png.097d52b136321c1b08e44ee911fbb194.png

image.png.18c7e45c0137056d5fb6fc42e7833a62.png

image.png.8fa9a5dca85e4b10bb705da4040887f6.png

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.

 

Posted
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.

image.png.3cad2e8e2b2b949b4e81cfa90e114137.png

image.thumb.png.097d52b136321c1b08e44ee911fbb194.png

image.png.18c7e45c0137056d5fb6fc42e7833a62.png

image.png.8fa9a5dca85e4b10bb705da4040887f6.png

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.

 

 

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...