Home › Forums › Weaver Xtreme Theme › Weaver Xtreme [WP, actually] does not have appearance>editor option
- This topic has 11 replies, 4 voices, and was last updated 2 years, 6 months ago by
r1bryan.
-
AuthorPosts
-
February 14, 2024 at 22:10 UTC - Views: 62 #73902
r1bryan
ParticipantAm wanting to edit a wordpress page template. I keep reading about how to do this and all the instructions I find say to go to wordpress admin section and select appearance – Editor to edit page templates. Weaver Xtreme appears to not have this option. Do I need to use a different theme to get this option?
Thanks,
Randy
February 14, 2024 at 22:53 UTC - Views: 62 #73903scrambler
ModeratorIf you are going to edit PHP templates, you must do it Via a Child Theme.
I suggest you read about how to create a child theme.
The child theme will contain among other things, the modified template created from a copy of the original.
You should NEVER edit the original template directly, as these changes would be lost in the next update.
February 15, 2024 at 01:11 UTC - Views: 59 #73905r1bryan
ParticipantThanks Scrambler, will check out child themes. May be just what I need to continue my project.
rb
February 15, 2024 at 01:23 UTC - Views: 54 #73906User
ModeratorPersonally, I have found Weaver Xtreme to be almost infinately customizable.
So I am just curious as the what changes you seek, which are not contained in or allowed for in the Xtreme Customizer tab?
Regards!
February 15, 2024 at 01:42 UTC - Views: 56 #73907r1bryan
ParticipantIm reading about ACF, advanced custom fields plugin which can be used to provide a front end user method to create and edit posts. I read about entering php code in a page template which will allow a user to edit content and pictures in a post without interacting with the back end.
February 15, 2024 at 03:53 UTC - Views: 50 #73908r1bryan
ParticipantA child theme seems more global than what I need. I think I just want to adjust one page template, but seems there is no way to do that. There are several types of page templates available on weaver xtreme but apparently no way to modify them.
February 15, 2024 at 05:30 UTC - Views: 48 #73909scrambler
ModeratorA child theme is simple and fine even if you only need one file changed.
it is the way to do it
February 15, 2024 at 08:14 UTC - Views: 46 #73910User
ModeratorWhat @scrambler says is correct.
To be honest, it is not a big job and it should only take a few minutes to set up a Weaver Xtreme child theme, as Xtreme already supplies a sample one containing all that is need to set up the Child.
Once set up, typically one then just needs paste in the required php code, and it is done.
Personally I only use the Child to hold changes to the contents of the Comments Box, as it is a WP asset, not a theme one. Any and all CSS site changes are done in the Xtreme Customizer, not in the Child.
Regards!
February 16, 2024 at 19:41 UTC - Views: 45 #73914Weaver
KeymasterYou should NEVER, EVER modify theme files. WordPress has hidden that option from the Dashboard. I think one can re-enable it, but it is because it is such a bad idea that WP has intentionally made it fairly hard to do that.
I haven’t done this, but I think it might even be possible to add your own custom page type by adding a file called page-mypagetype.php (with appropriate header comments) to the child theme.
Another important note: if you are trying to make it easy or possible for users (site contributors or better) to create pages or posts from the front end, that is a seriously dangerous thing to do. It is a big security hole. ONLY trusted Admins, and perhaps Editors should be allowed to do anything that allows them to add javasript or php. Custom Post fields that allow text entry without proper capability filtering (which is very complex process) makes it easy for any user of Contributor or higher to hack your entire site. Do you trust everyone?
Weaver Xtreme previously had a custom post field that allowed that (very deeply buried, but there if you knew the option to use) which was removed because of the security issue.
So, fillable custom post fields are very bad. Maybe ACF has a good security wrapper around their fields, but be sure that is the case. Better to restrict users to just the standard post (and page for more trusted users) editors. Better than getting your site hacked.
February 17, 2024 at 02:37 UTC - Views: 33 #73920r1bryan
ParticipantJust reading up on child themes, but have a fillable form to create a standard post that will be used by 3 known persons who are required to log in to use the form.
rb
February 18, 2024 at 21:35 UTC - Views: 18 #73933Weaver
KeymasterIf you have Weaver Xtreme Plus, you can use the showif short code with an usercan value to show only if one of your trusted users can seen the form.
February 19, 2024 at 01:31 UTC - Views: 17 #73934r1bryan
ParticipantThat looks useful, hadn’t seen the Plus listing of shortcodes before. Thanks.
I’m using a menu option to show the menu item “Post a Hike” if user is logged in as Editor.
rb
-
AuthorPosts
- You must be logged in to reply to this topic.

